This file contains 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 "tester.h" | |
int test1(); | |
int test2(); | |
int test3(); | |
int main () | |
{ | |
test_start(); |
This file contains 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 coffee | |
# coding: utf-8 | |
########################## | |
# Utilities | |
########################## | |
type = do -> | |
classToType = {} | |
for name in 'Boolean Number String Function Array Date RegExp Undefined Null'.split(' ') |
This file contains 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 coffee | |
# coding: utf-8 | |
scheme = require './scheme.coffee' | |
########################## | |
# Tests | |
########################## | |
repl = scheme.repl | |
assert = (a,b) -> if a == b then console.log("ok") else console.log("ng\t a: " + a + "\t b: " + b) |
This file contains 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 <iostream> | |
template<class T> | |
TempClass<T>::TempClass(){ | |
std::cout << "new" << std::endl; | |
} | |
template<class T> | |
TempClass<T>::~TempClass(){ | |
std::cout << "delete" << std::endl; |
This file contains 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
class @FX | |
constructor: (@ctx) -> | |
@in = @ctx.createGain() | |
@in.gain.value = 1.0 | |
@out = @ctx.createGain() | |
@out.gain.value = 1.0 | |
@view = new FXView(this) | |
connect: (dst) -> @out.connect(dst) | |
disconnect: () -> @out.disconnect() |
This file contains 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
class @Panner | |
constructor: (@ctx) -> | |
@in = @ctx.createChannelSplitter(2) | |
@out = @ctx.createChannelMerger(2) | |
@l = @ctx.createGain() | |
@r = @ctx.createGain() | |
@in.connect(@l, 0) | |
@in.connect(@r, 1) | |
@l.connect(@out, 0, 0) | |
@r.connect(@out, 0, 1) |
This file contains 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
➜ Epic git:(es6-omikuji) ✗ for char in {a..z}; do; which $char; done; | |
a: aliased to atom-beta . | |
b not found | |
c not found | |
d: aliased to dirs -v | head -10 | |
e: aliased to /usr/local/bin/emacs -nw | |
f not found | |
g: aliased to git | |
h not found | |
i not found |
This file contains 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 perl | |
use strict; | |
use warnings; | |
use utf8; | |
my $line = $ARGV[0]; | |
my $margin = $ARGV[1] // 0; | |
open my $dst, '|-', "head -n @{[$line + $margin]} | tail -n @{[$margin * 2 + 1]}"; |
This file contains 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
#!/bin/sh | |
npm i -g nwb budo http-server pm2 forever nodemon | |
npm i -g strongloop | |
npm i -g gulp grunt-cli | |
npm i -g yo yeoman generator-eslint | |
npm i -g react babel babel-cli babel-preset-stage0 babel-preset-es2015 | |
npm i -g eslint eslint-plugin-react eslint-plugin-html eslint-plugin-fand babel-eslint | |
npm i -g browserify watchify babelify tsify node-emoji mocha fixpack dtsm david lodash | |
npm i -g electron electron-prebuilt electron-packager |
This file contains 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 Progress = require('progress'); | |
var bar = new Progress('姉ing [:bar] :percent', { complete: '姉', incomplete: ' ', width: 20, total: 100 }); | |
setInterval(() => bar.tick(1), 50); |