Skip to content

Instantly share code, notes, and snippets.

View st44100's full-sized avatar
🗯️
渋̸̰̘̭̻ͧ͢谷̡̟で̶̨̖͔̲́̎͆͜͡働ͭい̤̟ͬ͊͠て̵͚́い̝̌̊͋҉ま͍̟͋͊͏̬̦͂҉̤͙͊ͪ̂す̡̨͎̭͕̖̝͈̙ͮ̍̚͠

st44100 st44100

🗯️
渋̸̰̘̭̻ͧ͢谷̡̟で̶̨̖͔̲́̎͆͜͡働ͭい̤̟ͬ͊͠て̵͚́い̝̌̊͋҉ま͍̟͋͊͏̬̦͂҉̤͙͊ͪ̂す̡̨͎̭͕̖̝͈̙ͮ̍̚͠
  • Shibuya, Japan
View GitHub Profile
@st44100
st44100 / gist:3366791
Created August 16, 2012 04:18
iOS grab version
NSString *version = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"];
NSString *minorVersion = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"];
@st44100
st44100 / textmate_preview_right.sh
Created August 23, 2012 06:51
Textmate Rreview Right
defaults write com.macromates.TextMate.preview htmlOutputPlacement right
@st44100
st44100 / base_git.sh
Created September 3, 2012 16:55
git config base
git config --global alias.co checkout
git config --global alias.st 'status'
git config --global alias.ci 'commit -a'
git config --global alias.di 'diff'
git config --global alias.br 'branch'
git config --global color.diff auto
git config --global color.status auto
git config --global color.branch auto
@st44100
st44100 / bazooka.js
Created December 19, 2012 08:58
R Bazooka
javascript:(function($) {
var c = 0;
$(document).on('ajaxSuccess', function(data, xhr, opt) {
if(/shoot$/.test(opt.url) != -1) {
c = c + 1;
console.log('Bazooka Shoot:' + c);
console.log(data);
if (c > 40000) { c = 0;}
}
});
@st44100
st44100 / trackpadTap2Click.scpt
Last active December 10, 2015 13:58
Mac Bookでトラックパッド、タップしてクリックを設定するApple Script
display alert "タップでクリックを設定" message "" buttons {"Cancel", "タップクリックOFF", "タップクリックON"} cancel button 1
if (button returned of result) is "タップクリックON" then
set theValue to 1
else
set theValue to 0
end if
-- open trackpad preferences
tell application "System Preferences"
@st44100
st44100 / form.css
Created February 19, 2013 16:51
Android 2.3 系のキーボード対応
form {
-webkit-transform: translate3d(0px, 0px, 0px);
}
@st44100
st44100 / termcolor.coffee
Created May 8, 2014 02:33
Print terminal color using coffee-script
#
# termcolor.pl : http://h2plus.biz/hiromitsu/entry/674
#
# Usage:
# > coffee termcolor.coffee
#
sys = require "sys"
fg = "\x1b[38;5;"
bg = "\x1b[48;5;"
rs = "\x1b[0m"
@st44100
st44100 / brewfile.sh
Last active August 29, 2015 14:11
Brewfile
brew update
brew upgrade
brew tap phinze/cask
brew tap homebrew/versions
brew tap phinze/homebrew-cask
brew tap homebrew/binary
@st44100
st44100 / README.md
Last active August 29, 2015 14:12
Download Youtube Best Quality

Download Youtube Video Best Quality.

  • Download video@1080p without audio
  • Download audio@256k without video
  • Merge video and audio with ffmpeg
  • if 1080p video is not exists then select video quality automatically

Install and Usage: