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
| // range 230¿¡ scope 170ÀÌ º¸Åë¸Ê ¼³Á¤ | |
| // range_IN : ¸Ê¿¡ ÁøÀԽà range | |
| // rotationFrom -360 , To : 360 ÀÌ º¸Åë¸Ê ¼³Á¤ | |
| // rotation_IN : ¸Ê¿¡ ÁøÀԽà rotation_IN À¸·Î ÁøÀÔ | |
| // altitudeFrom -50 , To : -65 ÀÌ º¸Åë¸Ê ¼³Á¤ | |
| // -25 ´Â º¸Åë¸ÊÀÇ ÃÖ´ëÇã¿ë¹üÀ§ | |
| // altitude_IN : ¸Ê¿¡ ÁøÀԽà altitude_INÀ¸·Î ÁøÀÔ |
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 DNAStrand(dna) { | |
| return dna.replace(/./g, function(c) { | |
| return DNAStrand.pairs[c] | |
| }) | |
| } | |
| // OR | |
| function DNAStrand(dna) { | |
| return dna.split('').map((item) => pairs[item]).join('') |
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
| var repeatStr = (n, s) => s.repeat(n) | |
| // e.g | |
| repeatStr(10, 'Fe') |
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/sh | |
| # ESLint Pre Commit Check | |
| # put to `.git/hooks/pre-commit` | |
| eslint_check() { | |
| files=$(git diff --cached --name-only --diff-filter=AM | grep '\.jsx\?$') | |
| if [[ $files = "" ]] ; then | |
| return | |
| fi | |
| failed=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
| git checkout master && git branch | grep -v “master” | xargs git branch -D |
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
| ps ax | grep httpd | grep -v grep // To see what httpd process do you have | |
| apachectl configtest // Return some erros and logs |
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
| eval "$(ssh-agent -s)" | |
| ssh-add ~/.ssh/id_rsa |
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
| kill -9 $(lsof -t -i :9000) |
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
| #Download | |
| https://developer.android.com/studio/index.html#downloads | |
| https://dl.google.com/android/android-sdk_r24.4.1-macosx.zip | |
| export ANDROID_HOME=$HOME/android-sdk | |
| export PATH=$PATH:ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$ANDROID_HOME/add-ons | |
| Download Emulator |
NewerOlder