Coder Social home page Coder Social logo

jexm's Projects

b-site icon b-site

soft-forking from openbilibili/go-common

for-neko icon for-neko

nekotools server to start up a local server for the current project. The server will be available by visiting http://localhost:2000 in a web browser. Syntax to use: nekotools server -p 2000 -h localhost -d c:\your\web\root\ -rewrite

nekotimer icon nekotimer

package; class NekoTimer { private static var threadActive:Bool = false; private static var timersList:Array<TimerInfo> = new Array<TimerInfo>(); private static var timerInterval:Float = 0.1; public static function addTimer(interval:Int, callMethod:Void->Void):Int { //setup timer thread if not yet active if (!threadActive) setupTimerThread(); //add the given timer return timersList.push(new TimerInfo(interval, callMethod, Sys.time() * 1000)) - 1; } public static function delTimer(id:Int):Void { timersList.splice(id, 1); } private static function setupTimerThread():Void { threadActive = true; neko.vm.Thread.create(function() { while (true) { Sys.sleep(timerInterval); for (timer in timersList) { if (Sys.time() * 1000 - timer.lastCallTimestamp >= timer.interval) { timer.callMethod(); timer.lastCallTimestamp = Sys.time() * 1000; } } } }); } } private class TimerInfo { public var interval:Int; public var callMethod:Void->Void; public var lastCallTimestamp:Float; public function new(interval:Int, callMethod:Void->Void, lastCallTimestamp:Float) { this.interval = interval; this.callMethod = callMethod; this.lastCallTimestamp = lastCallTimestamp; } }

onsenui icon onsenui

Custom Elements-Based HTML5 UI Framework for Building Your Mobile Front End

openbili-go-commom icon openbili-go-commom

听说这是来自 https://github.com/openbilibili/go-common/ 的 “哔哩哔哩 bilibili 网站后台工程 源码”,不过咱也不知道这是啥。

openbilibili icon openbilibili

https://github.com/openbilibili/go-common 备份(反正是啥咱也不知道,咱也不敢问)

wego icon wego

A forum system for Go written by tango & xorm

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.