Skip to content

Instantly share code, notes, and snippets.

from dataclasses import dataclass
from dacite import from_dict
import dataclasses
import types
import json
class Bar:
age: int
ollyjshaw / promises.js
Last active January 21, 2018 08:51
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.
ollyjshaw / Rakefile
Created November 10, 2015 13:04
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 / gist:6e955cd53bae6e4a8d6e
Created July 20, 2015 12:48
docker install linux mint
View gist:6e955cd53bae6e4a8d6e
sudo apt-get install apparmor