- Ctrl + A Go to the beginning of the line you are currently typing on
- Ctrl + E Go to the end of the line you are currently typing on
- Ctrl + R Lets you search through previously used commands
- Ctrl + W Delete the word before the cursor
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
// Get URL PARAMS | |
var getUrlParam = function(name, url) { | |
if (!url) url = window.location.href; | |
name = name.replace(/[\[\]]/g, "\\$&"); | |
var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"), | |
results = regex.exec(url); | |
if (!results) return null; | |
if (!results[2]) return ''; | |
return decodeURIComponent(results[2].replace(/\+/g, " ")); |
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
'#'+Math.floor(Math.random()*16777215).toString(16); |
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
“A history lesson for people who think that history doesn’t matter: | |
What’s the big deal about railroad tracks? | |
The US standard railroad gauge (distance between the rails) is 4 feet, 8.5 inches. That’s an exceedingly odd number. | |
Why was that gauge used? | |
Well, because that’s the way they built them in England, and English engineers designed the first US railroads. | |
Why did the English build them like that? |
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 | |
# Logout current GitHub credentials and remove global user.name, user.email | |
echo -e "host=github.com\nprotocol=https\n" | git credential-osxkeychain erase | |
git config --unset-all --global user.name | |
git config --unset-all --global user.email |
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
- Preferences > Keyboard Shortcuts | |
- Override the 'Open Next Editor' and 'Open Previous Editor' commands, (you may have to unset previous bindings). | |
Why this default was changed blows my mind. | |
😎 |
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
[ | |
"Aach", | |
"Aachen", | |
"Aalen", | |
"Aarbergen", | |
"Aasbüttel", | |
"Abenberg", | |
"Abensberg", | |
"Abentheuer", | |
"Absberg", |
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
osm_id | ort | plz | bundesland | |
---|---|---|---|---|
1104550 | Aach | 78267 | Baden-Württemberg | |
1255910 | Aach | 54298 | Rheinland-Pfalz | |
62564 | Aachen | 52062 | Nordrhein-Westfalen | |
62564 | Aachen | 52064 | Nordrhein-Westfalen | |
62564 | Aachen | 52066 | Nordrhein-Westfalen | |
62564 | Aachen | 52068 | Nordrhein-Westfalen | |
62564 | Aachen | 52070 | Nordrhein-Westfalen | |
62564 | Aachen | 52072 | Nordrhein-Westfalen | |
62564 | Aachen | 52074 | Nordrhein-Westfalen |
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
pg_ctl -D /usr/local/var/postgres start | |
pg_ctl -D /usr/local/var/postgres stop |
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
"Too much and for too long, we seemed to have surrendered personal excellence and community values in the mere accumulation of material things. Our Gross National Product, now, is over $800 billion dollars a year, but that Gross National Product - if we judge the United States of America by that - that Gross National Product counts air pollution and cigarette advertising, and ambulances to clear our highways of carnage. It counts special locks for our doors and the jails for the people who break them. It counts the destruction of the redwood and the loss of our natural wonder in chaotic sprawl. It counts napalm and counts nuclear warheads and armored cars for the police to fight the riots in our cities. It counts Whitman's rifle and Speck's knife, and the television programs which glorify violence in order to sell toys to our children. Yet the gross national product does not allow for the health of our children, the quality of their education or the joy of their play. It does not include the beauty of our poe |
OlderNewer