Skip to content

Instantly share code, notes, and snippets.

ollyjshaw / gist:6e955cd53bae6e4a8d6e
Created Jul 20, 2015
docker install linux mint
View gist:6e955cd53bae6e4a8d6e
sudo apt-get install apparmor
ollyjshaw / Rakefile
Created Nov 10, 2015
Localhost in Rakefile
View Rakefile
desc 'Build and preview the site locally in development mode'
task :preview, [:profile] => :check do |task, args|
profile = args[:profile] || 'development'
awestruct_running_port = awestruct_port(profile)
run_awestruct "-P #{profile} -a -s --force -q --auto --livereload -b -p #{awestruct_running_port}"
ollyjshaw / promises.js
Last active Jan 21, 2018
A playground explaining promise things in ES6
View promises.js
Promises are fun by Olly Shaw
To run this download the file and do something like
node promises.js
logging will be out of order (Promises are asychronous). But hopefully you can find your way.
from dataclasses import dataclass
from dacite import from_dict
import dataclasses
import types
import json
class Bar:
age: int