This file contains hidden or 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
function query() { | |
var | |
// HN is done with very unsemantic classes. | |
job_list = Array.prototype.slice.call(document.querySelectorAll('.c5a,.cae,.c00,.c9c,.cdd,.c73,.c88')), | |
query_list = Array.prototype.slice.call(arguments), | |
shown = 0, total = job_list.length; | |
// Traverses up the dom stack trying to find a match of a specific class | |
function up_to(node, klass) { | |
if (node.className === klass) { |
This file contains hidden or 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
Hi there |
This file contains hidden or 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
PaperByFiftyThree://creations/12345 | |
PaperByFiftyThree://users/12345 |
This file contains hidden or 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
UIImage *image = [UIImage imageNamed:@"Images/thun-stockhornkette-1904 1600.jpg"]; | |
UIImageView *background = [[UIImageView alloc] initWithImage:image]; | |
[demoModel.rootView addSubviewWithCustomLayout:[[background setStretches] | |
setIgnoreDesiredSize]]; |
This file contains hidden or 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
UIImage *image = [UIImage imageNamed:@"Images/thun-stockhornkette-1904 1600.jpg"]; | |
UIImageView *background = [[UIImageView alloc] initWithImage:image]; | |
WeView *backgroundWrapper = [[WeView alloc] init]; | |
[[backgroundWrapper addSubviewWithFillLayoutWAspectRatio:background] | |
setVAlign:V_ALIGN_TOP]; | |
// The background will exceed the backgroundWrapper's bounds, so we need to clip. | |
backgroundWrapper.clipsToBounds = YES; | |
[demoModel.rootView addSubviewWithCustomLayout:[backgroundWrapper setStretches]]; |
This file contains hidden or 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
WeView *pillboxButtonsView = [[WeView alloc] init]; | |
pillboxButtonsView.layer.cornerRadius = 5.f; | |
pillboxButtonsView.clipsToBounds = YES; | |
[pillboxButtonsView addSubviewsWithHorizontalLayout:@[ | |
[self createFlatUIPillboxButton:@"Prev"], | |
[self createFlatUIPillboxSpacer], | |
[self createFlatUIPillboxButton:@"Details"], | |
[self createFlatUIPillboxSpacer], | |
[self createFlatUIPillboxButton:@"Next"], | |
]]; |
This file contains hidden or 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
UIActivityIndicatorView *activityIndicatorView = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge]; | |
[activityIndicatorView startAnimating]; | |
[rootView addSubviewWithCustomLayout:activityIndicatorView]; |
This file contains hidden or 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
WeView *rootView = [[WeView alloc] init]; |
This file contains hidden or 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
WeView *headerView = [[WeView alloc] init]; | |
headerView.backgroundColor = [UIColor colorWithWhite:0.5f alpha:0.5f]; | |
headerView.opaque = NO; | |
[[headerView addSubviewWithCustomLayout:[DemoFactory createLabel:@"Ferdinand Hodler" | |
fontSize:20.f]] | |
setMargin:5]; | |
[[[[headerView addSubviewWithCustomLayout:[DemoFactory buttonWithImageName:@"Glyphish_Icons/14-tag.png"]] | |
setHMargin:10] | |
setVMargin:5] | |
setHAlign:H_ALIGN_RIGHT]; |
This file contains hidden or 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
$('div[class=container]').css({'width': '1200px'}) | |
$('div[class^=repository-content]').css({'width': '1140px'}) |
NewerOlder