Skip to content

Instantly share code, notes, and snippets.


Sean Robertson spro

Block or report user

Report or block spro

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
spro /
Last active Aug 23, 2019
Installing Docker 18.09 on Amazon Linux 2 (As of August 22 2019)
sudo yum-config-manager --add-repo
sudo yum install -y
sudo yum install -y docker-ce-18.09.5
sudo usermod -a -G docker ec2-user
sudo systemctl start docker
View build-countries-json.rb
require 'countries'
require 'json'
ISO3166.configure do |config|
config.locales = [:en, :cs, :de, :es, :fr, :ja, :nl, :sk]
# {
# AF: {
# name: {
import torch
from torch import nn
from torch.autograd import Variable
import torch.nn.functional as F
class RNN(nn.Module):
def __init__(self, input_size, hidden_size, output_size, n_layers=1):
super(RNN, self).__init__()
self.input_size = input_size
self.hidden_size = hidden_size
# Set up environment
git clone
cd dotfiles && ./bin/install-dotfiles
cd ~
sudo hostname $HOSTNAME
source ~/.bash_profile
spro / espancanese.lua
Created May 24, 2017
Small synthetic language for testing seq2seq model
View espancanese.lua
-- > te grillo wa silencieusement matte iru
-- = your cricket is sleeping silently
genders = {
spro /
Last active Nov 27, 2019
PyTorch RNN training example
import torch
import torch.nn as nn
from torch.nn import functional as F
from torch.autograd import Variable
from torch import optim
import numpy as np
import math, random
# Generating a noisy multi-sin wave
View nalgene-example.txt
> please if the temperature in minnesota is equal to 2 then turn the office light off thanks
( %if
( %condition
( %currentWeather
( $location minnesota ) )
( $operator equal to )
( $number 2 ) )
( %setDeviceState
( $ office light )
spro / dnsmasq OS
Last active Mar 16, 2016 — forked from ogrrd/dnsmasq OS
Setup dnsmasq on OS X
View dnsmasq OS

Never touch your local /etc/hosts file in OS X again

To setup your computer to work with *.dev domains, e.g., and so on, without having to add to your hosts file each time.



spro /
Last active Jan 29, 2016
char-rnn generated CoffeeScript; -rnn_size 100 -max_epochs 50 -temperature 0.7
somata = new somata.Client
if errors.length
res.send 401
# User account
# ---------------------------------------------------------------------------------------
app.get '/streets/:channel_id/channels.json', (req, res) ->
email_form =
spro / gist:7c929c5213253e054a04
Created Jun 17, 2015
Overly simple REST API with
View gist:7c929c5213253e054a04
import bottle
import json
all_people = [
{'name': 'Fred Wilson'},
{'name': 'Fred Durst'},
{'name': 'Fred Astaire'},
You can’t perform that action at this time.