View HelloWorld.elm
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
{-| PICO-8's Hello.lua redone in ELMO-8 | |
-} | |
import Elmo8.Console as Console | |
type alias Model = { | |
t : Int | |
} |
View Hello.elm
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
import Elmo8.Console as Console | |
import Elmo8.Palettes.Pico8 as Palette | |
type alias Model = {} | |
draw : Console.Console Model -> Model -> List Console.Command | |
draw console model = | |
[ Console.sprite 2 60 30 | |
] |
View Main.elm
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
{- Simple wrapper to WebSocketExample -} | |
module Main exposing (..) | |
import Html exposing (..) | |
import Html.App as App | |
import WebSocketExample | |
View Makefile
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
ZIPFILE=lambda_process_s3_records.zip | |
SOURCES=iso8601.py lambda_process_s3_record.py | |
all: $(ZIPFILE) | |
$(ZIPFILE): $(SOURCES) | |
rm -f $@ | |
zip $@ $^ | |
.PHONY: upload |
View acaversity.aurora.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
fetch = Process( | |
name = 'fetch', | |
cmdline = ('export AWS_ACCESS_KEY_ID=... ' | |
'export AWS_SECRET_ACCESS_KEY=... ' | |
'env ' | |
'; aws s3 cp s3://micktwomey-acaversity/slugs/acaversity-master-24.tar.gz slug.tar.gz ' | |
'&& tar -zxf slug.tar.gz' | |
), | |
) |
View log.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
""" | |
I always forget a useful default format for python logging, so here's one I prepared earlier. | |
""" | |
import logging | |
logging.basicConfig(level=logging.DEBUG, | |
format=('%(asctime)s %(levelname)s %(name)s ' | |
'%(pathname)s:%(lineno)d %(message)s' |
View prod-previous-to-current.diff
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
diff -uNr deploy_runner-previous/app/.deploy_virtualenv/lib/python2.6/site-packages/fabric_deploy/project/base.py deploy_runner-current/app/.deploy_virtualenv/lib/python2.6/site-packages/fabric_deploy/project/base.py | |
--- deploy_runner-previous/app/.deploy_virtualenv/lib/python2.6/site-packages/fabric_deploy/project/base.py 2014-12-18 03:24:33.590846902 +0000 | |
+++ deploy_runner-current/app/.deploy_virtualenv/lib/python2.6/site-packages/fabric_deploy/project/base.py 2014-12-18 12:48:42.000000000 +0000 | |
@@ -115,7 +115,7 @@ | |
self.hosts = self.servers.get(hs_env) or () | |
elif 'servers' in kwargs: | |
self.servers = self._parse_servers(kwargs.get('servers', {})) | |
- self.hosts = self.servers.get(hs_env) or self.servers.get(hs_env.upper()) or () | |
+ self.hosts = self.servers.get(hs_env) or () | |
self.hipchat_room_id_to_notify = kwargs.get('hipchat_room_id_to_notify') or kwargs.get('hipchatRoomId') |
View look_for_unknown_keys.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
import argparse | |
import collections | |
import base64 | |
import json | |
import logging | |
import sys | |
import github3 | |
import yaml |
View slideshow.html
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
<html> | |
<head> | |
<title>London GameCraft 2014</title> | |
<meta application-name="London GameCraft 2014" data-allowsresizing="YES" data-default-size="4,3" data-min-size="4,3" datamax-size="16,12" data-allows-scrolling="NO" /> | |
<style type="text/css"> | |
* { | |
margin: 0; | |
padding: 0; | |
} | |
body { |
View export_gists_to_markdown.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
"""Noddy to dump out all your gists to Markdown | |
https://developer.github.com/v3/gists/ | |
Requires the requests library. | |
""" | |
import argparse | |
import hashlib |
NewerOlder