This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//| ---------------------------------------------------------------------------- | |
// Called when the view is about to be displayed. May be called more than | |
// once. | |
// | |
- (void)willMoveToWindow:(UIWindow *)newWindow { | |
// Use the layer shadow to draw a one pixel hairline under this view. | |
[self.layer setShadowOffset:CGSizeMake(0, 1.0f/UIScreen.mainScreen.scale)]; | |
[self.layer setShadowRadius:0]; | |
// UINavigationBar's hairline is adaptive, its properties change with |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[\x{4e00}-\x{9fa5}] // used for match Chinese character | 用来匹配中文 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
/*! | |
*** prettyPre ***/ | |
(function( $ ) { | |
$.fn.prettyPre = function( method ) { | |
var defaults = { | |
ignoreExpression: /\s/ // what should be ignored? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("a[href*='magnet']").map(function() {return this.href}).get().join("\n") |
OlderNewer