Skip to content

Instantly share code, notes, and snippets.

View notedit's full-sized avatar
🎯
Focusing

leeoxiang notedit

🎯
Focusing
View GitHub Profile
@notedit
notedit / gevent-multiprocess.py
Created August 25, 2011 03:45
gevent-multiprocess
import sys
from gevent import server
from gevent.monkey import patch_all; patch_all()
from multiprocessing import Process, current_process, cpu_count
def note(format, *args):
sys.stderr.write('[%s]\t%s\n' % (current_process().name, format%args))
def echo(socket, address):
@notedit
notedit / reccarpcserver.go
Created February 12, 2012 09:08
server.go
// Date: 2012-02-08
// Author: notedit <[email protected]>
// make a go rpc service
package rpc
import (
"fmt"
"log"
"net"
@notedit
notedit / gist:1807433
Created February 12, 2012 09:11
testServer.go
package main
import (
"fmt"
"recca/rpc"
)
type Args struct {
A,B int
}
@notedit
notedit / gist:1808849
Created February 12, 2012 14:33
test_server
package main
import (
"gogobservice"
"net/rpc"
"net"
"log"
)
func main() {
@notedit
notedit / gist:1808851
Created February 12, 2012 14:34
test_client
package main
import (
"fmt"
"gogobservice"
"net/rpc"
"log"
)
@notedit
notedit / gist:2016729
Created March 11, 2012 15:00
go pg.go
package main
import (
"log"
"database/sql"
_ "github.com/bmizerany/pq.go"
)
func main() {
职位描述:
  • 负责和参与服务端架构的设计
  • 负责和参与api的设计,程序的编写,测试,代码review
  • 负责服务器的配置维护优化
  • 负责技术管理
职位要求:
Framebuffer
Multisampled colour render buffer attached to a texture
Multisampled depth buffer
But you cannot do this. D: You have to have the following:
Multisampled framebuffer:
Framebuffer
Multisampled colour render buffer attached to a texture
Multisampled depth buffer
But you cannot do this. D: You have to have the following:
Multisampled framebuffer:
package main
import (
"encoding/json"
"net/http"
"time"
"./janus"
log "github.com/Sirupsen/logrus"
"github.com/bitly/go-simplejson"