if ! type "brew" > /dev/null; then
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)";
fi
brew tap phinze/homebrew-cask && brew install brew-cask;
brew cask install vagrant;
brew cask install virtualbox;
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
| Number.prototype[Symbol.iterator] = function*() { | |
| for (let i = 0; i <= this; i++) { | |
| yield i; | |
| } | |
| }; |
This file has been truncated, but you can view the full file.
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
| Scanning 582 folders for symlinks in /Users/me/ReactNative/test/node_modules (4ms) | |
| Found Xcode project test.xcodeproj | |
| Launching iPhone 6 (iOS 10.0)... | |
| Building using "xcodebuild -project test.xcodeproj -configuration Debug -scheme test -destination id=C3C3B0EB-81FD-4F96-960A-4E7CFD2E1232 -derivedDataPath build" | |
| User defaults from command line: | |
| IDEDerivedDataPathOverride = /Users/me/ReactNative/test/ios/build | |
| === BUILD TARGET yoga OF PROJECT React WITH CONFIGURATION Debug === |
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
| generate_strings = (d, t, c, j, p, m, o) => { | |
| console.log( | |
| "c:", c, | |
| "c.length:", c.length, | |
| "j:", j, | |
| "p:", p, | |
| "m:", m, | |
| "o:", o | |
| ) | |
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
| string = ['abcdef'] | |
| result => [ | |
| ['abcdef'], | |
| ['a', 'bcdef'], | |
| ['ab', 'cdef'], | |
| ['abc', 'def'], | |
| ['abcd', 'ef'], | |
| ['abcde', 'f'], |
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
| AN StreetEasy Dev | |
| https://rink.hockeyapp.net/manage/apps/108149 | |
| AN StreetEasy Rentals Dev | |
| https://rink.hockeyapp.net/manage/apps/463050 | |
| IOS StreetEasy Dev/Enterprise | |
| https://rink.hockeyapp.net/manage/apps/103258 |
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
| diskutil list | |
| diskutil unmountDisk /dev/disk2 | |
| sudo dd bs=1m if=2015-11-21-raspbian-jessie.img of=/dev/rdisk2 (ctrl+t for progress) | |
| sudo diskutil eject /dev/rdisk2 | |
| RaspBerry | |
| pi raspberry |
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
| # Imagemagick has some nice filters for gray scale | |
| convert \ | |
| "$folder_artboards/$base_name" \ | |
| -grayscale rec601luma \ | |
| "$folder_grayscale/$base_name" |
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
| #!/bin/bash | |
| # The folders where the artboards and the result is stored | |
| folder_artboards="./artboards" | |
| folder_composite="./composite" | |
| # Phone case | |
| bg_name="phone_case.png" | |
| bg_size=`identify -format '%wx%h' "$bg_name"` |
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
| #!/bin/bash | |
| folder_artboards="./artboards" | |
| folder_grayscale="./grayscale" | |
| folder_grayscale_opt="./grayscale_opt" | |
| # find $folder_grayscale -name "*.png" -type f -delete | |
| for i in $(find $folder_artboards -name "*.png" -type f); | |
| do |