Skip to content

Instantly share code, notes, and snippets.

@dictav
dictav / gistdeck.md
Created October 31, 2012 03:08
GistDeck example

Crafting a presentation can be difficult

Too many tools

tools

@dictav
dictav / sicp2.md
Created December 22, 2012 04:11
SICP2

データによる抽象の構築

2.1

2.2 階層データ構造と閉包性

2.1 データ抽象入門

  • 例:有理数の算術演算
  • 抽象の壁
@dictav
dictav / NDS30_LT.md
Last active December 11, 2015 18:18
@dictav
dictav / gist:5149647
Last active December 14, 2015 21:18
Niigata.LL 資料

MONO Ruby 行ってきました

MONO Ruby とは

  • mruby ともの作りのコラボイベント。
  • 3Dプリンターの話とか多くて面白かった。
  • 既にmruby組込んだ製品とかいくつもあってアグレッシブすぎる印象w

感想

  • mruby の近況を知る事ができた
  • matzさんとかmasudriveさんとか見れた(ミーハー)
@dictav
dictav / dynamic.rb
Last active December 15, 2015 07:08
悔しかったらDynamic!
# Ruby には OpenStruct (require 'ostruct') もあるから微妙だけど。
#
module Dynamic
def method_missing(action, *args)
if args.empty?
self[action]
elsif action.match(/=$/)
self[action.to_s.chop.to_sym] = args.first
end
@dictav
dictav / rpython_LT.md
Last active December 15, 2015 07:49
RPython

RPython

RPython 知っていますか?

知っている人いたら教えて

RPython っていうのがあるらしいです

  • Restricted Python
  • PyPy のツールチェイン
@dictav
dictav / 0.txt
Last active December 15, 2015 08:59
これギスト
0
@dictav
dictav / first_backbonejs.md
Last active December 15, 2015 17:38
2013/04/06 NDS no.31 に寄せて

はじめての Backbone.js

2013/04/06 NDS no.31 に寄せて by @dictav

Ruby on Rails

Ruby on Rails の思想

  • Don't Repeat Yourself (原則を徹底する)
  • Conversion Over Configuration (設定よりも規約)
  • ジェネレータによってフレームワークが開発者をドライブする
#! /usr/bin/env ruby
# coding:utf-8
require 'net/https'
require 'json'
origin_url = `git config remote.origin.url`
matches = origin_url.match %r,git@(github.com|bitbucket.org):(.+)/(.+).git,
@dictav
dictav / auto_increment_bundle_version.sh
Last active December 17, 2015 16:59
auto increment CFBundleVersion in Xcode project
InfoPlist="${SRCROOT}/${PROJECT_NAME}/${PRODUCT_NAME}-Info.plist"
bn=`/usr/libexec/PlistBuddy -c "Print CFBundleVersion" ${InfoPlist}`
IFS='.'
arr=[]
arr=($bn)
last_num=$((${#arr[*]}-1))
echo $last_num
arr[$last_num]=$((arr[$last_num]+1))
bn="${arr[*]}"
IFS=''