Skip to content

Instantly share code, notes, and snippets.

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

st44100 st44100

🗯️
渋̸̰̘̭̻ͧ͢谷̡̟で̶̨̖͔̲́̎͆͜͡働ͭい̤̟ͬ͊͠て̵͚́い̝̌̊͋҉ま͍̟͋͊͏̬̦͂҉̤͙͊ͪ̂す̡̨͎̭͕̖̝͈̙ͮ̍̚͠
  • Shibuya, Japan
View GitHub Profile
@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 / 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 / textmate_preview_right.sh
Created August 23, 2012 06:51
Textmate Rreview Right
defaults write com.macromates.TextMate.preview htmlOutputPlacement right
@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 / jqm.vscroll.js
Created June 12, 2012 13:14
jQM cancel capturing vertical scroll in scroll view.
//Edit _handleDragStart function.
_handleDragStart: function(e, ex, ey)
{
// Stop any scrolling of elements in our parent hierarcy.
$.each(this._getScrollHierarchy(),function(i,sv){ sv._stopMScroll(); });
this._stopMScroll();
var c = this._$clip;
var v = this._$view;
@st44100
st44100 / app.js
Created June 12, 2012 11:11
Titanium UI View 3D transform Sample
// this sets the background color of the master UIView (when there are no windows/tab groups on it)
Titanium.UI.setBackgroundColor('#000');
//
// create base UI tab and root window
//
var win1 = Titanium.UI.createWindow({
title: 'Tab 1',
backgroundColor: '#fff'
});
@st44100
st44100 / index.html
Created February 9, 2012 02:38
HTML5 Video looping
<video src="/video/pass-countdown.ogg" width="300" height="150" controls loop="loop">
<p>If you are reading this, it is because your browser does not support the HTML5 video element.</p>
</video>
@st44100
st44100 / .bashrc
Created February 8, 2012 02:11
Openn Application from terminal
alias firefox='open -a Firefox'
alias chrome='open -a Google\ Chrome'
alias safari='open -a Safari'
alias mvim='open -a MacVim'
@st44100
st44100 / compass-for-sencha-touch10-sass.sh
Created October 18, 2011 04:26
Setting Compass for old Sencha Touch scss files
# Compassのバージョンを確認
$ compass -v
Compass 0.11.5 (Antares)
# Compassのバージョンを下げる(0.10.6にする)
$ gem install compass --version=0.10.6
Fetching: compass-0.10.6.gem (100%)
@st44100
st44100 / changeDirName.sh
Created October 14, 2011 03:05
Change Ubuntu Japanese Dir Name to English.
$ LANG=C; xdg-user-dirs-gtk-update