Init Redis
# config/initializers/redis.rb
$redis_onlines = Redis.new
# it's the simplest way, but i'd recommend:
# $redis_onlines = Redis.new path: "/tmp/redis.sock", db: 15, driver: :hiredisserialize :column, JSON realy faster then standart YAML serialize
class Some < ActiveRecord:BaseGet package from here
// import "golorize"
fmt.Println( golorize.Red("[FAIL] Some Errors Occurred") )| all: clean build run | |
| build: | |
| gcc -nostdlib -Wall -shared -fPIC hello_exit.S -Wl,-soname,libhelloexit.so.1 -o libhelloexit.so.1.0 | |
| ln -sv libhelloexit.so.1.0 libhelloexit.so.1 | |
| ln -sv libhelloexit.so.1.0 libhelloexit.so | |
| gcc -nostdlib -Wall -L. -I. hello.c -lhelloexit -Wl,-rpath,. -o hello | |
| @echo Done | |
| run: |
| /* | |
| // Creates a router without any middleware by default | |
| r := gin.New() | |
| r.Use(gin.Recovery()) | |
| r.Use(logger.Logger()) // use this logger without colors | |
| */ | |
| package logger |
| -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- | |
| -- -- | |
| -- mysql -- | |
| -- -- | |
| -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- | |
| -- | |
| -- mysql <http://sqlfiddle.com/#!9/91afb5/2> | |
| -- note: sqlfiddle is very stupid |
| package pool | |
| import ( | |
| "sync" | |
| "testing" | |
| "time" | |
| ) | |
| // perform: | |
| // go test -bench syncPool |
| %YAML 1.2 | |
| --- | |
| # See http://www.sublimetext.com/docs/3/syntax.html | |
| file_extensions: | |
| - S | |
| scope: source.S | |
| contexts: | |
| main: | |
| # comment multiline |