Skip to content

Instantly share code, notes, and snippets.

View Pazzilivo's full-sized avatar
🎯
Working

Pazzilivo

🎯
Working
View GitHub Profile

##Twitter for Andriod

key: 3nVuSoBZnx6U4vzUxf5w 
secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys 

##Twitter for iPhone

key: IQKbtAYlXLripLGPWd0HUA
secret: GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU
# Numerous always-ignore extensions
*.diff
*.err
*.orig
*.log
*.rej
*.swo
*.swp
*.zip
*.vi
@Pazzilivo
Pazzilivo / gradient.css
Created November 5, 2012 02:15
gradient.css
.gradient
{
width:300px;
height:150px;
/*
上面的滤镜代码主要有三个参数,依次是:startcolorstr, endcolorstr, 以及gradientType。
其中gradientType=1代表横向渐变,gradientType=0代表纵向淅变。startcolorstr=”色彩” 代表渐变渐变起始的色彩,endcolorstr=”色彩” 代表渐变结尾的色彩。
*/
filter:alpha(opacity=100 finishopacity=50 style=1 startx=0,starty=0,finishx=0,finishy=150) progid:DXImageTransform.Microsoft.gradient(startcolorstr=red,endcolorstr=blue,gradientType=0);
/*
@Pazzilivo
Pazzilivo / doubanfm.js
Created October 19, 2012 06:45
doubanFM to twitter
javascript:(function(){var m=window.FM;var o=m.getCurrentSongInfo();var p='♫ '+o.songName+' - '+o.artistName;var D=550,A=250,C=screen.height,B=screen.width,H=Math.round((B/2)-(D/2)),G=0;if(C>A){G=Math.round((C/2)-(A/2))}window.twttr.shareWin=window.open('https://twitter.com/intent/tweet/?text='+p+'&hashtags=NowPlaying,DoubanFM&url='+encodeURIComponent(o.url),'','left='+H+',top='+G+',width='+D+',height='+A+',personalbar=0,toolbar=0,scrollbars=1,resizable=1');}());
@Pazzilivo
Pazzilivo / gist:3489435
Created August 27, 2012 15:19 — forked from hileon/gist:1311735
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Windows)

General

Ctrl+KB toggle side bar
Ctrl+Shift+P command prompt
Ctrl+` python console
Ctrl+N new file

Editing