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
function getWeather(latitude, longitude) { | |
$.ajax({ | |
type: 'GET', | |
url: 'https://fcc-weather-api.glitch.me/api/current?lat=' | |
+ latitude + '&lon=' + longitude, | |
async: false, | |
contentType: "application/x-www-form-urlencoded", | |
cache: false, | |
dataType: 'json', | |
success: function(data) |
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
docker build . --tag <name>: create image of Dockerfile in current directory with a name | |
docker ps : List all running containers | |
docker run -it <container> /bin/bash : Run interactive terminal (e.g. bash) on container | |
docker logs <container> : Logs of specified container | |
docker rm <container> : removes one or more containers | |
docker rm $(docker ps -aq) : removes all stopped containers |
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
app.get("/", (req, res) => res.send("Hello")); // ES6 arrow notation |
- dotnet ef database update
Create database using migration schema
- dotnet ef database drop
Delete entire database
- dotnet ef migrations add <Migration Name>
Creates a new migration with provided name (does not apply migration to database without update)
- dotnet ef migrations remove
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
. ~/.bashrc # restart bash |
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
// Must install eslint-config-airbnb | |
module.exports = { | |
"parser": "babel-eslint", | |
"env": { | |
"browser": true, | |
"es6": true | |
}, | |
"settings": { | |
"ecmascript": 6, |