Skip to content

Instantly share code, notes, and snippets.

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

st44100 st44100

🗯️
渋̸̰̘̭̻ͧ͢谷̡̟で̶̨̖͔̲́̎͆͜͡働ͭい̤̟ͬ͊͠て̵͚́い̝̌̊͋҉ま͍̟͋͊͏̬̦͂҉̤͙͊ͪ̂す̡̨͎̭͕̖̝͈̙ͮ̍̚͠
  • Shibuya, Japan
View GitHub Profile
@st44100
st44100 / .hgignore
Created July 7, 2011 09:30
Mercurial で ignoreするとき
syntax: glob
*.gif
*.jpg
*.png
.DS_Store
#Switch Regexp
syntax: regexp
^\.
^build/
@st44100
st44100 / gist:1177764
Created August 29, 2011 04:13
カレント以下の.svnみんな消えて
find ./ -type d -name '.svn' | xargs rm -rvf
@st44100
st44100 / ImgBaseRokuyon.sh
Created September 20, 2011 02:32
Base64 encoding sh for PNG,GIF image.
#!/bin/sh
HEADER_STR=""
if [ $# -eq 0 ] ; then
echo "usage: ${0} [IMAGE_FILE_PATH]..."
exit 1
fi
for I in $@ ; do
HEADER_STR=`/usr/bin/file -bI ${I} | /usr/bin/sed "s# .*##g"`
@st44100
st44100 / app.scss
Created September 20, 2011 04:56
Customizing Sencha Touch Sass Basic
// Define variable in sass
// Base Color
$base-color: #af2584;
// Base Gradient Style
$base-gradient: 'glossy'; //matte, bevel,glossy,recessed
// Custome Panel Color
$page-bg-color: #EFEFEF;
@st44100
st44100 / changeDirName.sh
Created October 14, 2011 03:05
Change Ubuntu Japanese Dir Name to English.
$ LANG=C; xdg-user-dirs-gtk-update
@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 / .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 / 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 / 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 / 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;