Skip to content

Instantly share code, notes, and snippets.

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

Kazuya Takeshima rummelonp

🐈‍⬛
ニャーン
View GitHub Profile
@rummelonp
rummelonp / op.py
Created February 29, 2012 07:12
いかにしておっぱい画像をダウンロードするか〜2012 for Python
# -*- coding: utf-8 -*-
import os.path, re, hashlib, urllib, json
appid = ''
uri = 'http://api.bing.net/json.aspx'
dir = './data'
page_count = 0
download_count = 0
@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'
\               ¦         /
  \             ¦        /
             / ̄ ̄ ヽ,
            /        ',      /     _/\/\/\/|_
    \    ノ//, {0}  /¨`ヽ {0} ,ミヽ    /     \          /
     \ / く l   ヽ._.ノ   ', ゝ \       <   IE バーカ!  >
     / /⌒ リ   `ー'′   ' ⌒\ \    /          \
     (   ̄ ̄⌒          ⌒ ̄ _)    ̄|/\/\/\/ ̄
      ` ̄ ̄`ヽ           /´ ̄
           |            |  
\               ¦         /
  \             ¦        /
             / ̄ ̄ ヽ,
            /        ',      /     _/\/\/\/|_
    \    ノ//, {0}  /¨`ヽ {0} ,ミヽ    /     \          /
     \ / く l   ヽ._.ノ   ', ゝ \       < ttmtmy の バーカ! >
     / /⌒ リ   `ー'′   ' ⌒\ \    /          \
     (   ̄ ̄⌒          ⌒ ̄ _)    ̄|/\/\/\/ ̄
      ` ̄ ̄`ヽ           /´ ̄
           |            |  
@rummelonp
rummelonp / gist:2072913
Created March 18, 2012 13:47
イケメンの療養日記
風邪ひいた
体調が悪くなると何も面白くないし何もしたくなくなる
食事もゲームも全く楽しくない
本とかプログラムとか頭使うことはとても出来無い
昨日からほとんど布団にこもってる
だらだらと寝たりだらだらとツイッターしたりだらだらとタンブラーしてる
健康って大事だなって思った
@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]

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

@rummelonp
rummelonp / sum.c
Created March 26, 2012 04:49
変数は新たに宣言しない1から100までの整数の和を表示するプログラム
#include <stdio.h>
int main(int argc, char* argv[]) {
argc = 0;
argv[0] = 100;
while (argv[0] > 0) {
argc += argv[0];
argv[0] -= 1;
}
printf("%d\n", argc);
@rummelonp
rummelonp / undersky.bookmarklet.js
Created April 13, 2012 07:52
Instagram のパーマリンクから Undersky に遷移するブックマークレット
javascript:(function()%20{var%20profile%20=%20$(%27.profile-picture%27)[0],match%20=%20profile.src.match(/profiles\/profile_(\d+)/),id%20=%20match[1];location.href%20=%20%27http://undersky.mitukiii.jp/users/%27%20+%20id;}())
@rummelonp
rummelonp / tweet.rb
Created April 19, 2012 07:13
Ruby で Tweet するやつ
# -*- coding: utf-8 -*-
require 'rubygems'
require 'twitter'
require 'oauth'
require 'yaml'
require 'thor/group'
class Tweet < Thor::Group
include Thor::Actions