View json_parse.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from dataclasses import dataclass | |
from dacite import from_dict | |
import dataclasses | |
import types | |
import json | |
@dataclass | |
class Bar: | |
age: int |
View promises.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Promises are fun by Olly Shaw | |
https://twitter.com/olly_shaw | |
https://github.com/ollyjshaw | |
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. | |
*/ |
View Rakefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 0.0.0.0 -p #{awestruct_running_port}" | |
end |
View gist:6e955cd53bae6e4a8d6e
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install apparmor docker.io |