mkdir chromium && cd chromium
fetch --nohooks chromium --nosvn=True
gclient sync --with_branch_heads --nohooks # May not even need this.
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
const path = require('path'); | |
// Don't forget to everything listed here to `package.json` | |
// modulePathIgnorePatterns. | |
const sharedBlacklist = [ | |
/node_modules[/\\]react[/\\]dist[/\\].*/, | |
'downstream/core/invariant.js', | |
/website\/node_modules\/.*/, |
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
// for an updated version see https://github.com/jsdf/react-native-refreshable-listview | |
var React = require('react-native') | |
var { | |
ListView, | |
ActivityIndicatorIOS, | |
StyleSheet, | |
View, | |
Text, | |
} = React |
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
// | |
// RecipePageRenderer.swift | |
// (c) 2014 Nate Cook, licensed under the MIT License | |
// | |
import UIKit | |
import AVFoundation | |
/// Units for printing content insets | |
let POINTS_PER_INCH: CGFloat = 72 |
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
// | |
// CollectionViewDataSource.swift | |
// | |
// Created by Bill Richards on 10/1/14. | |
// Copyright (c) 2014 Bill Richards. All rights reserved. | |
// | |
import Foundation | |
typealias CollectionViewCellConfigureBlock = (cell:UICollectionViewCell, item:AnyObject?) -> () |
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
CoinEx API | |
# All timestamps are in UTC | |
# All currency amounts and exchange rates are multiplied by 10^8 to get rid of floating point numbers | |
# All API requests should contain HTTP header 'Content-type: application/json' | |
# Private API methods should have API-Key and API-Sign headers | |
# API-Key header should contain your API access key which can be generated | |
# at your account settings page | |
# API-Sign header should contain request's POST data signed by your account's |
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
NSArray *albums = @[[Album albumWithName:@"Random Access Memories" price:9.99f], | |
[Album albumWithName:@"Clarity" price:6.99f], | |
[Album albumWithName:@"Weekend in America" price:7.99f], | |
[Album albumWithName:@"Weekend in America" price:7.90f], | |
[Album albumWithName:@"Bangarang EP" price:2.99f]]; | |
// Reversing an Array | |
__unused NSArray *reversed = albums.reverseObjectEnumerator.allObjects; | |
// PREDICATES |
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
sudo kill `ps -ax | grep 'coreaudiod' | grep 'sbin' |awk '{print $1}'` | |
# or... | |
sudo killall coreaudiod |
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
@implementation AppDelegate | |
void SwapMethodImplementations(Class cls, SEL left_sel, SEL right_sel) { | |
Method leftMethod = class_getInstanceMethod(cls, left_sel); | |
Method rightMethod = class_getInstanceMethod(cls, right_sel); | |
method_exchangeImplementations(leftMethod, rightMethod); | |
} | |
+ (void)initialize { | |
if (self == [AppDelegate class]) { | |
#ifdef __IPHONE_6_0 |
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
// | |
// Copyright © 2011 Yuri Kotov | |
// | |
#import <Foundation/Foundation.h> | |
@interface ADVNetworkActivityIndicator : NSObject | |
+ (ADVNetworkActivityIndicator *) sharedIndicator; |