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
import UIKit | |
protocol CommonProtocol { | |
func commonFunc() | |
} | |
protocol ProtocolA: CommonProtocol { | |
func sameName() | |
} |
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
wget --no-check-certificate --content-disposition https://github.com/joyent/node/tarball/v0.7.1 | |
# --no-check-cerftificate was necessary for me to have wget not puke about https | |
curl -LJO https://github.com/joyent/node/tarball/v0.7.1 |
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
#import <Foundation/Foundation.h> | |
#import <Accelerate/Accelerate.h> | |
int main(int argc, const char * argv[]) { | |
@autoreleasepool { | |
NSLog(@"start"); | |
int count = 10000000; | |
float *x = malloc(count * sizeof(float)); | |
float initial = 0; | |
float increment = drand48()*count; |
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
// | |
// ViewController.h | |
// runtime_special_case | |
// | |
// Created by tonyli on 4/10/18. | |
// Copyright © 2018 tonyli. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> | |
#import <objc/runtime.h> |
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
sudo /Applications/Install\ macOS\ High\ Sierra\ Beta.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath /Applications/Install\ macOS\ High\ Sierra\ Beta.app |
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
/** | |
* This is a thrid party component created by Tony Li | |
* | |
* all right reserved by @author Tony Li | |
* | |
*/ | |
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
import ReactDrawer from '../src/ReactDrawer'; |
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
'use strict'; | |
import React, { Component, StyleSheet } from 'react-native'; | |
import { bindActionCreators } from 'redux'; | |
import { connect } from 'react-redux/native'; | |
import { | |
actions as routerActions, | |
NavBar, | |
Route, | |
Router, |