Note:
<example>
is meant to denote text replaced by you (including brackets).
// global dependencies
npm install -g knex
# | |
# All work is based off this document | |
# | |
# http://snowball.tartarus.org/algorithms/porter/stemmer.html | |
# | |
# The first part of the algorithm talks about | |
# what a constant is. So let's encode that in | |
# python! | |
# The following are _always_ considered |
Migrations are a way to make database changes or updates, like creating or dropping tables, as well as updating a table with new columns with constraints via generated scripts. We can build these scripts via the command line using knex
command line tool.
To learn more about migrations, check out this article on the different types of database migrations!
This gist had a far larger impact than I imagined it would, and apparently people are still finding it, so a quick update:
(async main(){...}())
as a substitute for TLA. This completely eliminates the blocking problem (yay!) but it's less powerful, and harder to statically analyse (boo). In other words the lack of TLA is causing real problemsI'll leave the rest of this document unedited, for archaeological
#!/bin/bash | |
# Stop all containers | |
containers=`docker ps -a -q` | |
if [ -n "$containers" ] ; then | |
docker stop $containers | |
fi | |
# Delete all containers | |
containers=`docker ps -a -q` | |
if [ -n "$containers" ]; then | |
docker rm -f -v $containers |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
(define (fib n) | |
(define (iter a b count) | |
(if (<= count 0) | |
a | |
(iter b (+ a b) (- count 1)))) | |
(iter 0 1 n)) |