- Related Setup: https://gist.github.com/hofmannsven/6814278
- Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
- Interactive Beginners Tutorial: http://try.github.io/
- Git Cheatsheet by GitHub: https://services.github.com/on-demand/downloads/github-git-cheat-sheet/
This file contains 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
const scrapeData = () => { | |
const sections = document.querySelectorAll("#screener-table > section"); | |
const headingElements = sections[0].querySelectorAll("div[id]"); | |
const scrapedData = Array.from(headingElements).map(elm => { | |
const selector = elm.getAttribute("id") === "name" ? "stock-name-col" : elm.getAttribute("id") + "-col"; | |
const rowElements = sections[1].querySelectorAll("." + selector + " .desktop--only") | |
return { | |
column: elm.querySelector(".data-cell .desktop--only").textContent, |
This file contains 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 | |
ssh-keygen | |
ls ~/.ssh | |
eval `ssh-agent` | |
ssh-add ~/.ssh/id_rsa | |
cat ~/.ssh/id_rsa.pub | |
# ssh -T git@bitbucket.org |
This file contains 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
<!doctype html> | |
<html> | |
<head> | |
<style> | |
.monospace { | |
font-family: Menlo, Monaco, "Droid Sans Mono", Consolas, "Lucida Console", "Courier New", monospace; | |
} | |
.monospace_without_menlo { | |
font-family: Monaco, "Droid Sans Mono", Consolas, "Lucida Console", "Courier New", monospace; |
This file contains 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 | |
git commit -am "Save uncommited changes (WIP)" | |
git branch --delete --force gh-pages | |
git checkout --orphan gh-pages | |
git add -f dist | |
git commit -m "Rebuild GitHub pages" | |
git filter-branch -f --prune-empty --subdirectory-filter dist && git push -f origin gh-pages && git checkout - |
Sometimes you want to have a subdirectory on the master
branch be the root directory of a repository’s gh-pages
branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master
branch alongside the rest of your code.
For the sake of this example, let’s pretend the subfolder containing your site is named dist
.
Remove the dist
directory from the project’s .gitignore
file (it’s ignored by default by Yeoman).
This file contains 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
import { | |
AfterViewInit, | |
Component, | |
ElementRef, | |
Input, | |
OnDestroy, | |
ViewChild | |
} from '@angular/core'; | |
import { fromEvent } from 'rxjs'; | |
import { pairwise, switchMap, takeUntil } from 'rxjs/operators'; |
This file contains 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
Up for evaluation | |
{ | |
"liveServer.settings.donotShowInfoMsg": true, | |
"prettier.singleQuote": true, | |
"[html]": { | |
"editor.defaultFormatter": "esbenp.prettier-vscode" | |
}, | |
"[python]": { | |
"editor.defaultFormatter": "ms-python.python" |
This file contains 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 | |
sudo add-apt-repository ppa:webupd8team/java | |
sudo apt-get update | |
sudo apt-get install oracle-java8-installer | |
#sudo apt-get install oracle-java9-installer | |
# For more config related info | |
# https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-get-on-ubuntu-16-04 |
This file contains 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 | |
wget https://s3.ap-south-1.amazonaws.com/dynamodb-local-mumbai/dynamodb_local_latest.tar.gz | |
tar -xvzf dynamodb_local_latest.tar.gz -C ./LocalDynamoDB/ | |
rm dynamodb_local_latest.tar.gz | |
cd LocalDynamoDB | |
#java -Djava.library.path=./DynamoDBLocal_lib/ -jar DynamoDBLocal.jar | |
cat dynamo > java -Djava.library.path=./DynamoDBLocal_lib/ -jar DynamoDBLocal.jar |
NewerOlder