Skip to content

Instantly share code, notes, and snippets.

View e-jigsaw's full-sized avatar

jigsaw e-jigsaw

View GitHub Profile
@e-jigsaw
e-jigsaw / contMap.coffee
Last active August 29, 2015 14:13 — forked from lotz84/contEach.js
contMap = (arr, f, g, ans) ->
if ans is undefined then ans = []
if arr.length is 0 and typeof g is 'function' then return g ans else return
f.apply @, [
arr.shift()
(item)-> contMap arr, f, g, ans.concat([item])
ans
]
# Example
set noautofocus
set cncpcompletion
set nosmoothscroll
let scrollduration = 10
let barposition = "bottom"
let locale="jp"
@e-jigsaw
e-jigsaw / pr.md
Created February 6, 2013 16:47 — forked from piscisaureus/pr.md

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

@e-jigsaw
e-jigsaw / 2011_06.csv
Created December 20, 2012 08:16 — forked from anonymous/2011_06.csv
ログインしてないの気付かなくてanonymousになっちゃってた〜
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 9 columns, instead of 8 in line 1.
"tweet_id","in_reply_to_status_id","in_reply_to_user_id","retweeted_status_id","retweeted_status_user_id","timestamp","source","text","expanded_urls"
"86448894229217280","","","","","2011-06-30 14:59:57 +0000","<a href=""http://sites.google.com/site/yorufukurou/"" rel=""nofollow"">YoruFukurou</a>","???????"
"86445444418379776","","","86445312020975616","10177512","2011-06-30 14:46:14 +0000","<a href=""http://sites.google.com/site/yorufukurou/"" rel=""nofollow"">YoruFukurou</a>","RT @abolabo: ?6???DJ?????????????DJ?????? ?????? http://lockerz.com/s/115613217"
.
.
.
@e-jigsaw
e-jigsaw / gist:2277968
Created April 1, 2012 19:31 — forked from asonas/gist:2277947
高専クリエイターズ
適当なコミュニティサイトをつくる。
そこで高専な人で普段からものづくりしてる人があつまる
誰かが企画書を投げると、その企画に参加したい人たちが参加していくある程度人数や役割がそろったら開発開始。
作業の内容は常にgitのコミットログがそのコミュニティサイトに流れてくる。
流動性をどんどん見せるための演出がすごくあるといいかも。
すべてのプロジェクトのコミットログがトップページに流れてくると脳汁やばい。
成果物もURLを付記してどんどん完成していく姿が見える
// ==UserScript==
// @name Social count(jigsaw tune)
// @namespace http://about.me/jigsaw
// @include http://*
// ==/UserScript==
(function() {
if (window.top != window.self) exit;
var body = document.body;