Skip to content

Instantly share code, notes, and snippets.

How do I compile it?
Run elm reactor in your project. Now you can go to http://localhost:8000 and browse through all the files in your project. If you navigate to .elm files, it will compile them for you!
If you want to do things more manually, you can run elm make src/Main.elm and it will produce an index.html file that you can look at in your browser.
@roostercrab
roostercrab / Vue gist
Created October 10, 2019 16:34
Vue gist
new Vue({
el: '#app',
data: data,
delimiters: ["[[","]]"]
});
npm install -g vue-cli
vue init webpack *project*
@roostercrab
roostercrab / Django gist
Created October 10, 2019 16:33
Django gist
POSTGRES EXPORT/IMPORT:
SELECT * FROM "ScheduledClass";
COPY "ScheduledClass" TO '/Users/jesseshea/Desktop/scheduled_class.csv' DELIMITER ',' CSV HEADER;
COPY "ScheduledClass" FROM '/Users/jesseshea/Desktop/scheduled_class.csv' DELIMITERS ',' CSV HEADER;
REPLACE MULTIPLE FIND REPLACE EXCEL:
Sub MultiFindNReplace()
@roostercrab
roostercrab / Docker notes extended
Created October 10, 2019 16:32
Docker notes extended
reformat.sh
export FORMAT="\nID\t{{.ID}}\nIMAGE\t{{.Image}}\nCOMMAND\t{{.Command}}\nCREATED\t{{.RunningFor}}\nSTATUS\t{{.Status}}\nPORTS\t{{.Ports}}\nNAMES\t{{.Names}}\n"
# this shell will only work on bash
# makes formatting vertical with FORMAT tag
COMMANDS:
https://docs.docker.com/engine/reference/commandline/docker/
docker-compose run app sh -c "python manage.py test && flake8"
docker-compose run app sh -c "python manage.py test"
docker-compose build
docker-compose run app sh -c "python manage.py makemigrations"
sudo service docker restart