Make sure you have installed Homebrew and (Homebrew-Cask)[http://caskroom.io/].
# Install Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Install Homebrew-cask
brew install caskroom/cask/brew-cask
| import {Subject} from 'rxjs/Subject'; | |
| import {BehaviorSubject} from 'rxjs/BehaviorSubject'; | |
| import {Observable, ObservableInput} from 'rxjs/Observable'; | |
| import {concatMap, switchMap} from 'rxjs/operators'; | |
| enum QueueActions { | |
| RESET = 'RESET', | |
| ADD = 'ADD', | |
| } |
Make sure you have installed Homebrew and (Homebrew-Cask)[http://caskroom.io/].
# Install Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Install Homebrew-cask
brew install caskroom/cask/brew-cask
| public Bitmap saveSignature(){ | |
| Bitmap bitmap = Bitmap.createBitmap(this.getWidth(), this.getHeight(), Bitmap.Config.ARGB_8888); | |
| Canvas canvas = new Canvas(bitmap); | |
| this.draw(canvas); | |
| File file = new File(Environment.getExternalStorageDirectory() + "/sign.png"); | |
| try { | |
| bitmap.compress(Bitmap.CompressFormat.PNG, 100, new FileOutputStream(file)); |
facebook/react-native#1908 (comment) @alinz, @brentvatne & @jaygarcia
So lets say you want to add eval method to WebView component. What you have to do is: use category feature in objective-c.
// RCTWebView+WebViewExBridge.h
#import "RCTWebView.h"
@interface RCTWebView (WebViewExBridge)
| aria2c -c -x10 -s10 -U 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:33.0) Gecko/20100101 Firefox/33.0' --load-cookies=cookies.txt https://developer.apple.com/services-account/download\?path\=/iOS/iOS_9_beta_5/iOS_9_beta_5__iPhone_5s_Model_A1457_A1518_A1528_A1530__13A4325c.zip |
| # Xcode | |
| find ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins -name Info.plist -maxdepth 3 | xargs -I{} defaults write {} DVTPlugInCompatibilityUUIDs -array-add $(defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID) | |
| # Xcode beta | |
| find ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins -name Info.plist -maxdepth 3 | xargs -I{} defaults write {} DVTPlugInCompatibilityUUIDs -array-add $(defaults read /Applications/Xcode-beta.app/Contents/Info DVTPlugInCompatibilityUUID) |
| var initalArray = [1, 2, 3] | |
| let pointer: UnsafeMutablePointer<Int> = UnsafeMutablePointer(initalArray) | |
| let arrary = Array(UnsafeBufferPointer(start: pointer, count: initalArray.count)) | |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title>semantic-slider</title> | |
| <style> | |
| .ui.slider.range input[type="range"] { | |
| -webkit-appearance: none; | |
| border-width: 1px; |
| So you've cloned somebody's repo from github, but now you want to fork it and contribute back. Never fear! | |
| Technically, when you fork "origin" should be your fork and "upstream" should be the project you forked; however, if you're willing to break this convention then it's easy. | |
| * Off the top of my head * | |
| 1. Fork their repo on Github | |
| 2. In your local, add a new remote to your fork; then fetch it, and push your changes up to it | |
| git remote add my-fork [email protected] |
| var ITTrackKindFile = 1; | |
| var iTunesApp = WScript.CreateObject("iTunes.Application"); | |
| var deletedTracks = 0; | |
| var mainLibrary = iTunesApp.LibraryPlaylist; | |
| var tracks = mainLibrary.Tracks; | |
| var numTracks = tracks.Count; | |
| var i; |