Instantly share code, notes, and snippets.

- 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
View arrow.js
app.get("/", (req, res) => res.send("Hello")); // ES6 arrow notation
View docker
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
View getWeather.js
function getWeather(latitude, longitude) {
type: 'GET',
url: ''
+ latitude + '&lon=' + longitude,
async: false,
contentType: "application/x-www-form-urlencoded",
cache: false,
dataType: 'json',
success: function(data)