Skip to content

Instantly share code, notes, and snippets.

View rummelonp's full-sized avatar
🐈‍⬛
ニャーン

Kazuya Takeshima rummelonp

🐈‍⬛
ニャーン
View GitHub Profile
@rummelonp
rummelonp / config_store.rb
Created July 29, 2012 15:31 — forked from clicube/config_store.rb
change icon
# original Ruby Twitter Gem : example/helper/config_store.rb
# modified at 2009/08/13
require 'yaml'
class ConfigStore
attr_reader :file
def initialize(file)
@file = file
javascript:location.href="yorufukurou://pasteurl/"+ encodeURIComponent(document.title+" - "+location.href);
@rummelonp
rummelonp / reblogmachineopendoor.user.js
Created July 9, 2012 15:42 — forked from syoichi/reblogmachineopendoor.user.js
reblog machine で "o" キーで tumblelog を、"r"キーで reblog ページを開く
// ==UserScript==
// @id reblogMachineOpenDoor
// @name reblogMachineOpenDoor
// @namespace http://taizooo.tumblr.com/
// @author taizooo
// @version 0.0.2
// @update 2012-03-17T04:11:26.895Z(GMT+09:00)
// @description reblog machine で "o" キーで tumblelog を、"r"キーで reblog ページを開く
// @include http://reblog.machine.mamemomonga.com/dashboard*
// @run-at document-end
@rummelonp
rummelonp / autopagerize_filter_for_.user.js
Created May 29, 2012 11:51 — forked from t-f-m/autopagerize_filter_for_.user.js
[GM script]AutoPagerize Filter for NAVER matome / NAVERまとめに、AutoPagerizeが適用されるようにします。
// ==UserScript==
// @name AutoPagerize Filter for NAVER matome
// @namespace http://d.hatena.ne.jp/kurumigi/
// @description NAVERまとめに、AutoPagerizeが適用されるようにします。(Apply "AutoPagerize" to NAVER matome.)
// @include http://matome.naver.jp/*
// @include http://matome.naver.jp/odai/*
// @version 0.1
// ==/UserScript==
// Idea of this script based on "misc.AutoPagerize"(http://d.hatena.ne.jp/os0x/20090109/1231489489).
PS1='`~/.current_rb_ver`'
$:.unshift("/Library/RubyMotion/lib")
task :default => [:check_syntax, :simulator]
require 'motion/project'
Motion::Project::App.setup do |app|
# Use `rake config' to see complete project settings.
app.name = 'test'
end
desc "Checks the syntax"
# -*- coding: utf-8 -*-
lambda {|w, e, u, c, v|
c.times.map {
rand(v).times.map { w[rand(w.size)] }.join + e[rand(e.size)]
}.map.with_index {|t, o|
"#{u[o % u.size]}「#{t}」"
}.join
}.call %w{にゃ にゃあ にゃん}, %w{? ! ー 〜}, %w{ねこ ぬこ}, 5, 5
@rummelonp
rummelonp / xcode4shortcut.md
Created March 20, 2012 12:29 — forked from dnpp73/xcode4shortcut.md
Xcode 4 で @dnpp がよく使うショトカまとめ

作業エリアのショトカなど


  • 左のエリアのアレ切り替え
    Cmd + [0-7]

  • 右のエリアのアレ切り替え
    Cmd * Option + [0-2]

  • 下のエリアの表示非表示トグル

\               ¦         /
  \             ¦        /
             / ̄ ̄ ヽ,
            /        ',      /     _/\/\/\/|_
    \    ノ//, {0}  /¨`ヽ {0} ,ミヽ    /     \          /
     \ / く l   ヽ._.ノ   ', ゝ \       < ttmtmy の バーカ! >
     / /⌒ リ   `ー'′   ' ⌒\ \    /          \
     (   ̄ ̄⌒          ⌒ ̄ _)    ̄|/\/\/\/ ̄
      ` ̄ ̄`ヽ           /´ ̄
           |            |  
@rummelonp
rummelonp / elixir.rb
Created March 6, 2012 05:42 — forked from huffman/elixir.rb
Elixir Homebrew recipe
# Install this recipe with:
# brew install --HEAD https://raw.github.com/gist/1955470/c58bda92f07147afff64a86d0c2d8ef65adb9cd6/elixir.rb
require 'formula'
class Elixir < Formula
homepage 'http://elixir-lang.org/'
head 'https://github.com/elixir-lang/elixir.git'
depends_on 'erlang'