Skip to content

Instantly share code, notes, and snippets.

.WB_cardwrap { border-radius: 0; box-shadow: none; margin: 0; }
.WB_feed_handle .WB_row_line { border-bottom: 1px solid #f2f2f5; }
.WB_notes { margin: 0; padding: 3px 0; }
.send_weibo .key, .v6_pl_rightmod_updatev6, #v6_pl_rightmod_recominfo, #v6_trustPagelet_recom_member, #v6_pl_rightmod_noticeboard, #v6_pl_rightmod_updatev6, .WB_right_module, .PCD_mplayer, #WB_webim {
display: none; }
.send_weibo { border-radius: 0; margin: 0; }
@Sai
Sai / Coda Inverted.sss
Created May 24, 2012 16:33
Coda Inverted color schemes for Coda 2
comment {
color:#92dc93;
font-style:italic;
}
constant.numeric {
color:#04b7ff;
font-weight:normal;
}
if (typeof (AC) === "undefined") {
AC = {}
}
AC.ImageReplacer = Class.create({
_defaultOptions: {
listenToSwapView: true,
filenameRegex: /(.*)(\.[a-z]{3}($|#.*|\?.*))/i,
filenameInsert: "_☃x",
ignoreCheck: /(^http:\/\/movies\.apple\.com\/|\/105\/|\/global\/elements\/quicktime\/|_(([2-9]|[1-9][0-9]+)x|nohires)(\.[a-z]{3})($|#.*|\?.*))/i,
attribute: "data-hires",
@Sai
Sai / gist:1348075
Created November 8, 2011 15:37
Shaky Layer
#define degreesToRadian(x) (M_PI * (x) / 180.0)
+ (void)shakyWithLayer:(CALayer *)layer delegate:(id)object forKey:(NSString *)key {
CAKeyframeAnimation * animation;
animation = [CAKeyframeAnimation animationWithKeyPath:@"transform.rotation.z"];
animation.duration = 0.25;
animation.cumulative = YES;
animation.repeatCount = 9999;
animation.values = [NSArray arrayWithObjects:
[NSNumber numberWithFloat: 0.0],
[NSNumber numberWithFloat: degreesToRadian(-4.0)],
@Sai
Sai / saiColorTheme.dvtcolortheme
Created October 5, 2011 17:51
saiColorTheme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>DVTConsoleDebuggerInputTextColor</key>
<string>0 0 0 1</string>
<key>DVTConsoleDebuggerInputTextFont</key>
<string>Menlo-Bold - 11.0</string>
<key>DVTConsoleDebuggerOutputTextColor</key>
<string>0 0 0 1</string>
@Sai
Sai / gist:931387
Created April 20, 2011 13:54
Evaporation
javascript:var $li=$('li.user a.avatar'),all=$li.size(),already=$li.filter(function(){return /^s*[[u4e00-u9fa5]{3}]$/.test($(this).text());}).size();var r="好友中有"+parseInt(already/all*10000)/100+"%被感染!!";prompt('',r);
@Sai
Sai / Evaporation
Created April 20, 2011 13:52
By McFog
javascript:(function(){var $a=$('a[href*=user/]'); var t={};var me;$a.each(function(){var $t=$(this);if($t.text().length<=0)return;var id=$t.attr('href').match(/user\/([^\/]*)/);if(!id)return;id=id[1];t[id]=$(this).text().replace(/^\s+|\s+$/,'');if($t.closest('#idBadger').size()>0) me=id;});delete(t[me]);var all=0,cursed=0;for(d in t){all++;if(/^\[.+]$/.test(t[d]))cursed++;};var r=parseInt(cursed/all*10000)/100;prompt('','本页共找到'+all+'名用户,其中'+cursed+'被感染,占'+r+'%')})()