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
@marocchino
marocchino / Guardfile
Created October 31, 2013 05:24 — forked from thbar/Guardfile
require 'childprocess'
guard 'shell' do
watch %r{^app/(.+)\.rb$} do |m|
`killall rake`
# Why this:
# - spawn a child process to avoid locking Guard
# - make sure that the child process has stdout and stdin otherwise it crashes
# - bonus point: get REPL access in the simulator!
if [[ $BUILD_STATUS == "success" ]]
then
export STATUS="success"
else
export STATUS="failure"
fi
curl "https://api.github.com/repos/justincampbell/my_repo/statuses/$GIT_COMMIT?access_token=abc123" \
-H "Content-Type: application/json" \
-X POST \
import sys
import tweepy
import time
import urllib2
def send_to_twitter(msg):
CONSUMER_KEY = 'UvciBAguVW4UBYBkWeirKg'
CONSUMER_SECRET = 'eCPMIB4sMUDTfTExohS5PyzlIKMFGpWprMbgINqhU'
ACCESS_KEY = '196057523-d2RNDmy3YE5b5v0L59EKfYGIOS31Q9iEdLNdyE1u'
ACCESS_SECRET = 'Dvlg8M7HhS3DdJVjI13CBllFel1Ke9uhEv6VgbIoXg'

루비 코드 리딩

뭔가 좀 자기소개가 길다. 6분지났는데 아직 본론도 안들어감

자기 경력 소개 컨퍼런스 다닌거 등등..

이 세션은 기술적인 이야기는 없을거다

  1. 왜 루비 코드를 읽어야 하는가?
@marocchino
marocchino / test.rb
Last active December 17, 2015 07:39 — forked from anonymous/test.rb
module Yahoo
def say
"An"
end
end
class Base
include Yahoo
def say
def some_method
return false if aaaaaaaaaaaa && bbbbbbbbbbbb
return false if cccccccccccc || dddddddddddd
return false if eeeeeeeeeeee && ffffffffffff
do_something
end
@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)

Scaling Isomorphic Javascript Code

考えてみれば Model-View-Controller とか MVC ってよく聞くよね。実際どんなものか知ってる? 抽象的に言うなら「オブジェクト情報の保持されるグラフィック・システム (つまり、ラスターではないグラフィック。ゲームとか) 上に構築された、表示系を中心としたアプリケーションにおいて、主要な機能どうしの関わりをうまく分離すること」とでも言おうか。もう少し深く考えを押し進めてみれば、これは当然、他のさまざまなアプリケーションにもあてはまる言葉 (bucket term ?) だ。

#NoSQLデータモデリング技法

原文:NoSQL Data Modeling Techniques « Highly Scalable Blog

I translated this article for study. contact matope[dot]ono[gmail] if any problem.

NoSQLデータベースはスケーラビリティ、パフォーマンス、一貫性といった様々な非機能要件から比較される。NoSQLのこの側面は実践と理論の両面からよく研究されている。ある種の非機能特性はNoSQLを利用する主な動機であり、NoSQLシステムによく適用されるCAP定理がそうであるように分散システムの基本的原則だからだ。一方で、NoSQLデータモデリングはあまり研究されておらず、リレーショナルデータベースに見られるようなシステマティックな理論に欠けている。本稿で、私はデータモデリングの視点からのNoSQLシステムファミリーの短い比較といくつかの共通するモデリングテクニックの要約を解説したい。

本稿をレビューして文法を清書してくれたDaniel Kirkdorfferに感謝したいと思う

@marocchino
marocchino / app.js
Created November 19, 2011 10:55 — forked from ppcano/app.js
Express Boostrapping
var express = require('express')
, path = require('path');
process.on('uncaughtException', function (err) {
console.log('uncaught exception:--------------------------------------------- ' );
console.log( err + err.stack);
});
mainServer = module.exports = express.createServer();
mainServer.set('path', __dirname);