Skip to content

Instantly share code, notes, and snippets.

View vitorhugomagalhaes's full-sized avatar

Vitor Magalhães vitorhugomagalhaes

  • GYANT
  • Porto, Portugal
View GitHub Profile
@vitorhugomagalhaes
vitorhugomagalhaes / android_dependecies.sh
Created September 27, 2019 09:22
Generate android tree of dependencies
/gradlew :app:dependencies > dependencies.txt
### 1. Clone your fork:
git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git
### 2. Add remote from original repository in your forked repository:
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@vitorhugomagalhaes
vitorhugomagalhaes / flutter.sh
Created August 23, 2019 13:47
Flutter Commands
# stop all dart sdk pending processes
killall -9 dart
@vitorhugomagalhaes
vitorhugomagalhaes / GyantChatSDK
Created July 12, 2019 15:19
README GyantchatSDK
**Note** GyantChatSDK is a device-only framework.
## Development Builds
GyantChatSDK is a device only framework. To enable developers to test their integration in the simulator a custom pod is available where x86_64 arch is included. Note that for production builds you should never use this version. The following Podfile changes will integrate the dev version only for the Debug configuration while keeping the production version for the Release configuration.
Add GyantChatSDK pod to your app target.
```
pod 'GyantChatSDK-dev', :configurations => ['Debug']
@vitorhugomagalhaes
vitorhugomagalhaes / delete_git_tags.sh
Created July 12, 2019 11:05
Delete git tags #git #delete
#Fetch remote tags.
git fetch
#Delete remote tags.
git push origin --delete $(git tag -l)
#Delete local tags.
git tag -d $(git tag -l)
@vitorhugomagalhaes
vitorhugomagalhaes / reset_git_history.sh
Last active July 17, 2019 15:02
Reset git history #git
-- Change to the repo folder
cd my_repo
-- Remove the history from
rm -rf .git
-- recreate the repos from the current content only
git init
git add .
git commit -m "Initial commit"
Please send a zip archive containing your code and any relevant materials in an email along with your resume and motivations to jobs@ndrive.com, please add vitor.magalhaes@ndrive.com in CC.
The purpose of this test is not to see you're fast! Intead we want to verify your abilities to code and see how you architecture an application, so this is the time to show everything you know that is applicable and relevant (design pattern, OOP concepts, tests, etc.)
NDrive's quest for global domination has prompted us to open a store - we sell only three products:
```
+---------------|------------------------------|---------+
| Product Code | Name | Price |