Skip to content

Instantly share code, notes, and snippets.

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

Kazuya Takeshima rummelonp

🐈‍⬛
ニャーン
View GitHub Profile
@rummelonp
rummelonp / cperl-imenu.el
Created March 15, 2024 06:12 — forked from syohex/cperl-imenu.el
my own perl imenu. Default imenu provides too many information for me
(defun my/cperl-imenu-create-index ()
(let (index)
;; collect subroutine
(goto-char (point-min))
(while (re-search-forward "^\\s-*sub\\s-+\\([^ ]+\\)" nil t)
(push (cons (format "Function: %s" (match-string 1))
(match-beginning 1)) index))
;; collect subtest
(goto-char (point-min))
@rummelonp
rummelonp / amazon-calc.js
Last active June 13, 2017 16:35 — forked from polamjag/amazon-calc.js
Amazon で使った金額の合計を出す奴 (2014-2016 年バージョン) (月枚に出すよう変更)
// Amazon で使った金額の合計を出す奴
//
// 使い方:
// 1. 全部コピーする (右上の Raw をクリックした先でやるのが楽)
// 2. Amazon の注文履歴ページ ( https://www.amazon.co.jp/gp/css/order-history/ ) を開く
// 3. F12 または 右クリ→要素の検証 とかで出てくる開発者ツールのコンソール (JavaScript REPL) にペースト
// 4. エンターで実行
// (Firefox はなんか allow pasting とタイプしろみたいなことを言われるので従う)
// 5. しばらく待つと alert で合計金額を表示
//
@rummelonp
rummelonp / GIF-Screencast-OSX.md
Created December 24, 2015 05:27 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

twitterの検索術 (search/tweetssearch/universal)

search/tweets では一週間以上前のツイートは検索できないので注意

search/universal は公式のConsumerKey/ConsumerSecretでないと使用できない

当方では一切の責任を負いません

@rummelonp
rummelonp / vimrc
Created November 24, 2015 12:11 — forked from r00k/vimrc
A minimal vimrc for beginners
" A minimal vimrc for new vim users to start with.
"
" Referenced here: http://www.benorenstein.com/blog/your-first-vimrc-should-be-nearly-empty/
" Original Author: Bram Moolenaar <[email protected]>
" Made more minimal by: Ben Orenstein
" Last change: 2012 Jan 20
"
" To use it, copy it to
" for Unix and OS/2: ~/.vimrc
@rummelonp
rummelonp / nyan.rb
Created February 9, 2014 08:20 — forked from Shinpeim/nyan.rb
def try_something
nyan
rescue
wan rescue piyo
end
#!/bin/bash
set -e
# Usage:
# rsync_parallel.sh [--parallel=N] [rsync args...]
#
# Options:
# --parallel=N Use N parallel processes for transfer. Defaults to 10.
#
# Notes:

ChangeLog を支える英語

ChangeLog を書く際によく使われる英語をまとめました。

ほとんど引用です。

基本形

いろんなコンシューマーキー

夜フクロウ

Consumer key: WfEZ02WzcqZMvs4HJMZLA
Consumer secret: 69zIxwA9KSuY4IDYRT2Bfk1rq62Nq1csspXOfSRKhg

ShootingStar

Consumer key: Eb8hyAEUju1f2g0i2iSwTQ
Consumer secret: lOBgiyGJcYK4jsUc2It38ORlsJC0a60USShZrosMTlw

twicca

Consumer key: 7S2l5rQTuFCj4YJpF7xuTQ
Consumer secret: L9VHCXMKBPb2eWjvRvQTOEmOyGlH4W50getaQJPya4
@rummelonp
rummelonp / command.rb
Last active December 15, 2015 20:09 — forked from takkkun/command.rb
#!/usr/bin/env ruby
require 'thor'
class Command < Thor
class Example < Thor
::Command.register(self, :example, 'example [COMMAND]', 'example namespace')
class App < Thor
Example.register(self, :app, 'app [COMMAND]', 'app namespace')