Skip to content

Instantly share code, notes, and snippets.

View cognitom's full-sized avatar

Tsutomu Kawamura cognitom

View GitHub Profile
> perl -E 'say "生" & "死"'
生 Life U+751F \xe7\x94\x9f 11100111 10010100 10011111
死 Death U+6B7B \xe6\xad\xbb 11100110 10101101 10111011
愛 Love u+611B \xe6\x84\x9b 11100110 10000100 10011011
@ayumin
ayumin / HerokuTutorial.md
Created May 3, 2012 11:26
2012-05-03に実施したHerokuチュートリアル

2012-05-03 Ikezawa

heroku

HerokuアプリケーションはDynoごとに分割された環境で実行される。 Dynoの種類(プロセスタイプ)はProcfileで定義される。

web: bundle exec thin -p $PORT -e $RACK_ENV start
clock: clockwork likes.rb
@nicerobot
nicerobot / README.md
Last active June 18, 2024 19:46
Mac OS X uninstall script for packaged install of node.js from https://stackoverflow.com/a/9287292/23056

To run this, you can try:

curl -ksO https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh
chmod +x ./uninstall-node.sh
./uninstall-node.sh
rm uninstall-node.sh
@colrichie
colrichie / parsrc.sh
Last active September 14, 2017 09:00
[MOVED] CSV & JSON & XML file scraping tools
#! /bin/sh
#
# parsrc.sh
# CSV(Excel形式(RFC 4180):ダブルクォーテーションのエスケープは"")から
# 行番号列番号インデックス付き値(line field indexed value)テキストへの正規化
# (例)
# aaa,"b""bb","c
# cc",d d
# "f,f"
# ↓
@ytomino
ytomino / romantable_jisx6004.txt
Last active April 21, 2024 01:47
JIS-X-6004 for Google日本語入力
- -
-- ―
―- ― ―
~ ~
・< ・・
・・< …
・- ←
さ- ↓
^- ↑
-> →
@chsh
chsh / suppress_deprecation_errors.js
Created May 12, 2013 08:03
Suppress browser error in jQuery 1.9.
(function(jQuery) {
var matched, browser;
// Use of jQuery.browser is frowned upon.
// More details: http://api.jquery.com/jQuery.browser
// jQuery.uaMatch maintained for back-compat
var uaMatch = function( ua ) {
ua = ua.toLowerCase();
#!/usr/bin/ruby
# Create display override file to force Mac OS X to use RGB mode for Display
# see http://embdev.net/topic/284710
require 'base64'
data=`ioreg -l -d0 -w 0 -r -c AppleDisplay`
edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten
vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten
@LeCoupa
LeCoupa / nodejs-cheatsheet.js
Last active June 30, 2024 04:14
Complete Node.js CheatSheet --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
/* *******************************************************************************************
* THE UPDATED VERSION IS AVAILABLE AT
* https://github.com/LeCoupa/awesome-cheatsheets
* ******************************************************************************************* */
// 0. Synopsis.
// http://nodejs.org/api/synopsis.html
@peterbraden
peterbraden / index.js
Created September 25, 2014 08:50
Retina.js with browserify
var retina = require('retina.js')
retina.Retina.init(window); // <-- Necessary to initialise with window.