Skip to content

Instantly share code, notes, and snippets.

View tksohishi's full-sized avatar
🌱

Takeshi tksohishi

🌱
  • Brooklyn, NY
  • 09:50 (UTC -04:00)
  • X @ohishi
View GitHub Profile

Keybase proof

I hereby claim:

  • I am tksohishi on github.
  • I am tksohishi (https://keybase.io/tksohishi) on keybase.
  • I have a public key ASDK2iHmH25_i9yjF2xlH_6jTeJb_aSSfAlaBPvtN8G0Hgo

To claim this, I am signing this object:

@tksohishi
tksohishi / test.json
Created October 9, 2013 18:12
test.json
{"contacts":{"total":3,"users":[{"id":"8099632_f77745","display_name":"Pau Tomàs"},{"id":"19560860_ebd78f","display_name":"Tom Woolway"},{"id":"19692091_df5987","display_name":"Tom Hamshere"}]}}
@tksohishi
tksohishi / wtf1.scala
Last active December 24, 2015 08:39
wtf scala ver.1
scala> val map = Map("One" -> "1", "Two" -> "2"); val v = for { one <- map("One"); two <- map("Two") } yield { one.toInt + two.toInt }
map: scala.collection.immutable.Map[String,String] = Map(One -> 1, Two -> 2)
v: scala.collection.immutable.IndexedSeq[Int] = Vector(99)
@tksohishi
tksohishi / gist:1460230
Created December 11, 2011 12:06 — forked from niw/tumblr-blog.niw.at.html
Tumbler Theme for blog.niw.at
We couldn’t find that file to show.
@tksohishi
tksohishi / install_homebrew.rb
Created October 13, 2011 18:53 — forked from mxcl/install_homebrew.markdown
Installs Homebrew to /usr/local so you don't need sudo to `brew install`
#!/usr/bin/ruby
# This script installs to /usr/local only. To install elsewhere you can just
# untar https://github.com/mxcl/homebrew/tarball/master anywhere you like.
module Tty extend self
def blue; bold 34; end
def white; bold 39; end
def red; underline 31; end
def reset; escape 0; end
def bold n; escape "1;#{n}" end
@tksohishi
tksohishi / gist:646298
Created October 26, 2010 04:14
Test for JSON.parse()
var json = "{ hoge: 1 }";
var obj = JSON.parse(json);
console.log(obj.hoge);
@tksohishi
tksohishi / .gitattributes
Created September 9, 2009 16:43 — forked from program247365/.gitattributes
Using git with Xcode project.
*.pbxproj -crlf -diff -merge