Skip to content

Instantly share code, notes, and snippets.

View marocchino's full-sized avatar
🏠
Working from home (7am~16pm JST)

marocchino

🏠
Working from home (7am~16pm JST)
View GitHub Profile

Github:E Casual Talk

이전의 세션은 늦게와서 적지 못했습니다.

Cookpad - GHE and AWS and me

  • 질문 타임 정도에 들어왔다.
  • 파비콘이 혼동하기 쉬워서 확장플러그인을 만듬
  • 방금 발표한 내용을 오픈소스로 만들 계획은 아직없음.
@marocchino
marocchino / 1_original.js
Created December 7, 2012 03:13
modularize
var async = require('async');
var p =
[ function (cb) { redis.get('key1', cb); }
, function (cb) { couchdb.get('key2', cb); }
];
async.parallel(p, function (err, results) {
console.log(results[0]);
console.log(results[1]);
});
@marocchino
marocchino / gist:3914717
Created October 18, 2012 21:04
find all comment in project
#!/usr/local/bin/fish
for file in (git grep -l -E "^ *#"); echo "# "$file; git --no-pager blame -L "/^ *#/" $file; end|grep -e "\(^\|)\) *#"
require File.expand_path(File.dirname(__FILE__) + '/edgecase')
# Greed is a dice game where you roll up to five dice to accumulate
# points. The following "score" function will be used to calculate the
# score of a single roll of the dice.
#
# A greed roll is scored as follows:
#
# * A set of three ones is 1000 points
#
@marocchino
marocchino / lp.en.md
Created October 4, 2012 03:31
LEARNABLE PROGRAMMING

LEARNABLE PROGRAMMING

Designing a programming system for understanding programs

Here's a trick question: How do we get people to understand programming?

Khan Academy recently launched an online environment for learning to program. It offers a set of tutorials based on the JavaScript and Processing languages, and features a "live coding" environment, where the program's output updates as the programmer types.

@marocchino
marocchino / rosetta_sync.sh
Created October 1, 2012 01:54
rosetta stone db3 file sync
# first one
mv /Library/Application\ Support/Rosetta\ Stone/TOTALe/tracking.db3 ~/Dropbox/Rosetta\ Stone/
ln -s ~/Dropbox/Rosetta\ Stone/tracking.db3 /Library/Application\ Support/Rosetta\ Stone/TOTALe/tracking.db3
# other
rm /Library/Application\ Support/Rosetta\ Stone/TOTALe/tracking.db3
ln -s ~/Dropbox/Rosetta\ Stone/tracking.db3 /Library/Application\ Support/Rosetta\ Stone/TOTALe/tracking.db3
@marocchino
marocchino / rt.md
Created September 17, 2012 17:48
rubykaigi2012 timetable
@marocchino
marocchino / gist-slide
Created September 13, 2012 05:25 — forked from xuwei-k/gist-slide
gist slide
!SLIDE
# 간단히 멋진 슬라이드를 만들수 있는 사이트를 만들었어!
!SLIDE
이런걸 했어↓
[Picture Show를 써보았어요.( ^ω^) ](http://d.hatena.ne.jp/xuwei/20110903/1315044919)
@marocchino
marocchino / schema.rake
Created August 28, 2012 08:24
rake db:schema:dump_all
namespace :db do
namespace :schema do
# desc 'Dump all database schema'
task :dump_all => [:environment, :load_config] do
ActiveRecord::Base.configurations.keys.grep(/_development$/).map{|o|o.sub "_development", ""}.each do |name|
begin
filename = "#{Rails.root}/db/#{name}_schema.rb"
File.open(filename, 'w:utf-8') do |file|
ActiveRecord::Base.establish_connection("#{name}_#{Rails.env}")
@marocchino
marocchino / jquery.socialbutton-1.9.0.coffee
Created August 15, 2012 08:53
socialbutton coffee script version
###
jquery.socialbutton - jQuery plugin for social networking websites
http://itra.jp/jquery_socialbutton_plugin/
Copyright 2010, Itrans, Inc. http://itra.jp/
Dual licensed under the MIT or GPL Version 2 licenses.
http://jquery.org/license
Version: 1.9.0