Skip to content

Instantly share code, notes, and snippets.

View Pazzilivo's full-sized avatar
🎯
Working

Pazzilivo

🎯
Working
View GitHub Profile
@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

@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 / 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);
/*
# Numerous always-ignore extensions
*.diff
*.err
*.orig
*.log
*.rej
*.swo
*.swp
*.zip
*.vi

##Twitter for Andriod

key: 3nVuSoBZnx6U4vzUxf5w 
secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys 

##Twitter for iPhone

key: IQKbtAYlXLripLGPWd0HUA
secret: GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU
[
{
name:"HTML5",
uri:"http://www.w3.org/TR/html5/single-page.html",
category:"markup"
},
{
name:"HTML 5.1",
uri:"http://www.w3.org/TR/html51/single-page.html",
category:"markup"
@Pazzilivo
Pazzilivo / progress-indicator.css
Last active December 19, 2015 18:19
Chrome-style progress-indicator with SVG and CSS animations
/**
* Attempt for Chrome-style progress-indicator with SVG and CSS animations
*/
@keyframes spin {
to {
stroke-dashoffset: -264;
}
}
@Pazzilivo
Pazzilivo / i-love-you.txt
Last active December 20, 2015 04:08
txt: find love
99669999996669999996699666699666999966699666699
99699999999699999999699666699669966996699666699
99669999999999999996699666699699666699699666699
99666699999999999966666999966699666699699666699
99666666999999996666666699666699666699699666699
99666666669999666666666699666669966996699666699
99666666666996666666666699666666999966669999996
@Pazzilivo
Pazzilivo / 0_reuse_code.js
Created April 22, 2014 14:05
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@Pazzilivo
Pazzilivo / surge.conf
Created March 7, 2016 16:11 — forked from soffchen/surge.conf
surge.conf
[General]
skip-proxy = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 100.64.0.0/10, localhost, *.local
bypass-tun = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12
# dns-server = 119.29.29.29, 223.5.5.5, 114.114.114.114
loglevel = notify
[Proxy]
BJ-All = custom
BJ-HK-Azure = custom
BJ-US-Azure = custom