➜ go-sqlite3 git:(master) ✗ go build -compiler gc
# github.com/mattn/go-sqlite3
gcc did not produce error at completed:1
on input:
#line 3 "/Users/shouding/dev/go/fis/src/github.com/mattn/go-sqlite3/sqlite3.go"
#include <sqlite3.h>
#include <stdlib.h>
#include <string.h>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"/> | |
<title>This is editor TEST</title> | |
<style type="text/css"> | |
#editor { | |
margin: 10px 0; | |
border: 1px solid #CCCCCC; | |
width: 400px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head lang="en"> | |
<meta charset="UTF-8"> | |
<title></title> | |
</head> | |
<body> | |
<canvas id="draw" width="400px" height="400px"></canvas> | |
<script type="text/javascript"> | |
// shim layer with setTimeout fallback |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// main.c | |
// os_base_socket | |
// | |
// Created by xiangshouding on 14-7-13. | |
// Copyright (c) 2014 xiangshouding. All rights reserved. | |
// | |
#include <stdio.h> | |
#include <stdlib.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <stdarg.h> | |
#include <time.h> | |
int debug(const char *rule, ...) { | |
int ret; | |
char *buf; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var _ = require('util'); | |
var Readable = require('stream').Readable; | |
function MyReader (options) { | |
if (!(this instanceof MyReader)) { | |
return new MyReader(options); | |
} | |
Readable.call(this, options); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
find . -type d -depth 1 | grep -e '^./[^.].*' | awk '{ | |
system("cd " $1 " && test -d .git && git pull origin master && cd -") | |
}' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var asyncMap = require('slide').asyncMap; | |
var http = require('http'); | |
asyncMap( | |
[ | |
"http://www.baidu.com", | |
"http://zhidao.baidu.com" | |
] , | |
function (url, cb) { |
FIS和FIS+的争议诞生之初就开始了,用FIS的同学一上来就会问“FIS和FIS+有什么区别呀?”。鉴于此,大概说一下FIS及FIS+的历史及其区别。
FIS产生之初定位就是做一个内核,提供一套编译体系以及一套静态资源管理的设计思路及其本地调试。编译体系可以简单通过配置+插件的方式任意扩展。FIS+就通过扩展实现了一套适合于后端是PHP+Smarty3的编译体系,然后在后端实现了静态资源管理,提出了诸如quickling
,i18n
,fis-plus(default)
之类的解决方案。这块值得说明以下的是解决方案fis-plus
其实它和编译体系的命令包取了相同的名字。下面详细说明编译体系、静态资源管理及本地调试。
整个编译体系还有很大一块内容是目录规范,还有一块是以文件类型为基础的插件体系。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Class = function (base, extend) { | |
var parent = null; | |
if (Object.prototype.toString.apply(base) == '[object Function]') { | |
parent = base; | |
} else { | |
extend = base; | |
} | |
var fn = function () { | |
this.initialize.apply(this, arguments); |