I hereby claim:
- I am strd6 on github.
- I am danielx (https://keybase.io/danielx) on keybase.
- I have a public key ASC8LhNkWD02QHx2inQw_CTsDiy0iw2mBv4DPTaoTYVf1wo
To claim this, I am signing this object:
Hello this is a test |
I hereby claim:
To claim this, I am signing this object:
APIGenerator = require "./api_generator" | |
{extend} = require "../source/util" | |
module.exports = (ajax) -> | |
requester = (path, options={}) -> | |
options = extend | |
url: path | |
method: "GET" | |
dataType: "json" |
reflect = (normal, incident) -> | |
2 * normal - incident |
require 'faye/websocket' | |
require "sinatra/activerecord" | |
class Pubsub | |
KEEPALIVE_TIME = 15 # in seconds | |
def initialize(app) | |
@app = app | |
@clients = [] | |
@channel = "test" |
<meta charset="utf-8"> | |
<style >*{ | |
margin | |
:0;} | |
a {color : gold } | |
[e] {font-weight : bold } | |
[s] {white-space : pre } | |
[t] {text-decoration : overline } |
YELLOW="\[\033[0;33m\]" | |
GRAY="\[\033[0;34m\]" | |
RESET="\033[0;00m" | |
if [ -z "$COMP_SYM" ]; then | |
COMP_SYM="♥" | |
fi | |
PS1="\n\! \[\`if [[ \$? = "0" ]]; then echo '\e[32m\h\e[0m'; else echo '\e[31m\h\e[0m' ; fi\`\]:\w$YELLOW"'`__git_ps1`'"$GRAY \@$RESET\n$COMP_SYM " |
#!/bin/bash | |
set -e | |
cd component && git pull && cd .. | |
VERSION=`echo "console.log(require('./package').version)" | node` | |
script/update_version $VERSION | |
script/prepublish && script/test && script/standalone |
integrate = (array) -> | |
total = 0 | |
array.map (n) -> | |
total += n | |
zeros = (array) -> | |
array.reduce (zeros, n, i) -> | |
if !(array[i-1] > 0) and n > 0 | |
zeros.push i |