Skip to content

Instantly share code, notes, and snippets.

View ympbyc's full-sized avatar
💭
Lisping in the mountains.

Minori Yamashita ympbyc

💭
Lisping in the mountains.
View GitHub Profile
@haru067
haru067 / mikutterAdventCalendar2012.md
Created December 10, 2012 05:16
mikutter Advent Calendar 10日目

mikutter Advent Calendar 10日目

(´へεへ`*) < 10日目だよ〜

(´へεへ`*) < 昨日は@penguin2716氏、明日は@teshi04氏だよ〜

 

(´へεへ`*) < ………

@ympbyc
ympbyc / Compiler.scm
Created November 21, 2012 16:59
A compact SECD virtual machine implementation
;;;; S-expression to SECD instruction Compiler ;;;;
;;; 2012 Minori Yamashita <ympbyc@gmail.com> ;;add your name here
;;;
;;; reference:
;;; http://www.geocities.jp/m_hiroi/func/abcscm33.html
;;;
(load "./SECD.scm")
;;; Helpers ;;;
@kkosuge
kkosuge / お祝いください.md
Created November 21, 2012 16:12 — forked from rummelonp/転職しました.md
転職してません
@kkosuge
kkosuge / intelligent.rb
Created October 17, 2012 10:05
会話できる人工知能のプログラム (Ruby)
# coding: utf-8
puts %w(ワロタ ? それな).sample while gets != "\n"
@hiratara
hiratara / monad.js
Created July 11, 2012 23:01
A sample of IO monad.
// IO a -> a
function unsafePerformIO (io) {
var tuple = io({"memo" : "This is the real world!!"});
var newWorld = tuple[0];
var value = tuple[1];
return value;
}
// IO a -> (a -> IO b) -> IO b
function bind (io1, f) {
require 'regparsec'
module HTMLParsers
extend RegParsec::Regparsers
ValidTags = ->(state) { one_of(*state.valid_tags) }
OpenTag = between('<', '>', ValidTags)
CloseTag = between('</', '>', ValidTags)
Line = try /[^\<\n]+/, &:to_s
@ympbyc
ympbyc / Ym.js
Created May 10, 2012 15:18
よく使うものだけまとめる
function Ym (obj) {
// Ym() returns an instance of this Constructor
var Constructor = function (obj) {
if (obj)
for (key in obj)
if (obj.hasOwnProperty(key))
this[key] = obj[key]
}
// Copy the prototype of the object given to our Ym object's prototype
// javascript 1.8.2 or lator
@oidong1
oidong1 / gist:1986480
Created March 6, 2012 14:11
KOBA789botのsource
Twitterでは正しい情報のみをつぶやく義務はない。情報を見るやつはこれを頭に入れておけ。Twitterでは嘘を信じる奴がいて、それによって人が死ぬこともある。情報を流す奴はこれを頭に入れておけ。高校生クラスタは彼女作ろうよ。必要なことは3つ。想い続けること。自分を直視すること。真似事ではない自分に自信を持つこと。
プログラミングなんて学ぼうとして学ぶものじゃない。何か楽をするために、何か楽しいことをするために学ぶんだ。目的は学習じゃないよ。プログラミングはあくまで手段だ。ゲームが作りたい、ツールが作りたい、チャットが作りたい、そういう気持ちが必要。
彼女と友達は比較できないだろ。
知ってるか? Pentium Dの'D'は'暖房'の頭文字なんだ
Twitter は Follow 'する'ものであって Follow 'される'ものではないと思ってる
VPS は添い寝できないからなぁ
Twitter は実はすごい人が馬鹿言ってるから怖いんだよ
バイナリは素直だから変態じゃない
告白する勇気がでないとか、話しかける勇気がでないとか言ってるやつは一週間くらい我慢してみろよ。いろいろ捗るぞ。
技術がなければ彼女を作ればいいじゃない。技術があるなら彼女を作れるじゃない。
@itopoid
itopoid / favorite.rb
Created March 1, 2012 12:56
favorite
# encoding: utf-8
require 'rubygems'
require 'twitter'
Twitter.configure do |config|
config.consumer_key = ""
config.consumer_secret = ""
config.oauth_token = ""
config.oauth_token_secret = ""
@itopoid
itopoid / hello
Created March 1, 2012 12:53
あいさつ
こんにちは。gistってたのしいね。