Skip to content

Instantly share code, notes, and snippets.

View kt3k's full-sized avatar

Yoshiya Hinosawa kt3k

View GitHub Profile
@kt3k
kt3k / flare.json
Created February 21, 2015 03:04 — forked from mbostock/.block
{
"name": "domain",
"children": [
{
"name": "Level",
"children": [
{
"name": "id",
"children": [
{
@kt3k
kt3k / make-promise.js
Last active August 29, 2015 14:17
superagent-make-promise
var superagent = require('superagent');
var Promise = require('es6-promise').Promise;
superagent.Request.prototype.makePromise = function (request) {
var that = this;
return new Promise(function (resolve, reject) {
@kt3k
kt3k / spec.md
Last active August 29, 2015 14:19
RESTful API literate spec

POST /api/user

Creates a user

params

{
  "firstName": "John",
  "lastName": "Doe"
}
#! /usr/bin/env python
import time
import urllib2
import sys
def usage():
print """usage: python reponse_time.py [url]"""
def main():
@kt3k
kt3k / assert-json.md
Last active August 29, 2015 14:19
assert kind of json
{
  "id": "567",
  "name": "$exists",
  "description": "$string"
}
@kt3k
kt3k / main.md
Last active August 29, 2015 14:20
Open Source Software written in CoffeeScript
@kt3k
kt3k / frog-run.svg
Created June 15, 2015 13:09
frog-run.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kt3k
kt3k / browserify-multiple-destination.md
Last active November 7, 2015 08:39
browserify-multiple-destination.md

This example shows how to set up a task of bundling multiple entry points into multiple destinations using browserify.

The below js task bundles all the .js files under src/ as entry points and writes the results under dest/.

var gulp = require('gulp');
var plugins = require('gulp-load-plugins')();
var browserify = require('browserify');
var gutil = require('gulp-util');

.jshintrc

{
  "unused": true,
  "-W117": true
}

test.js

@kt3k
kt3k / gist:6dba2f0353031ee76452
Last active February 9, 2016 15:40
Typing effect 系 js library