Skip to content

Instantly share code, notes, and snippets.

View femontanha's full-sized avatar

Fellipe Azambuja femontanha

  • Brazil
View GitHub Profile
@femontanha
femontanha / viewpointtable.txt
Last active November 27, 2022 12:07
viewpointtable.txt
// range 230¿¡ scope 170ÀÌ º¸Åë¸Ê ¼³Á¤
// range_IN : ¸Ê¿¡ ÁøÀԽà range
// rotationFrom -360 , To : 360 ÀÌ º¸Åë¸Ê ¼³Á¤
// rotation_IN : ¸Ê¿¡ ÁøÀԽà rotation_IN À¸·Î ÁøÀÔ
// altitudeFrom -50 , To : -65 ÀÌ º¸Åë¸Ê ¼³Á¤
// -25 ´Â º¸Åë¸ÊÀÇ ÃÖ´ëÇã¿ë¹üÀ§
// altitude_IN : ¸Ê¿¡ ÁøÀԽà altitude_INÀ¸·Î ÁøÀÔ
@femontanha
femontanha / dnaStrand.js
Created November 13, 2017 01:14
DNAStrand
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('')
@femontanha
femontanha / repeatStr.js
Created November 13, 2017 00:38
Repeat String Javascript
var repeatStr = (n, s) => s.repeat(n)
// e.g
repeatStr(10, 'Fe')
@femontanha
femontanha / pre-commit
Created August 5, 2017 19:38
pre-commit esw
#!/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
@femontanha
femontanha / remove-local-branch
Created May 5, 2017 01:39
Remove all local branches - master
git checkout master && git branch | grep -v “master” | xargs git branch -D
@femontanha
femontanha / apache-tricks.txt
Created March 22, 2017 13:42
Apache some tricks
ps ax | grep httpd | grep -v grep // To see what httpd process do you have
apachectl configtest // Return some erros and logs
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa
@femontanha
femontanha / killport.bash
Created November 18, 2016 03:34
Kill port
kill -9 $(lsof -t -i :9000)
#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