Skip to content

Instantly share code, notes, and snippets.

View tofumatt's full-sized avatar

Matthew Riley MacPherson tofumatt

View GitHub Profile
define('tpl!templates/player.ejs', function() {return function(obj) { var __p=[],print=function(){__p.push.apply(__p,arguments);};with(obj||{}){__p.push(''); if (episode.id) { ; __p.push(' '); if (blobURL) { ; __p.push(' '); if (!softwareDecode) { ; __p.push(' <audio id="audio" src="', blobURL ,'" episode="', episode.get('id') ,'" autoload></audio> <div id="time-info"> <span id="time-elapsed"></span> <span id="time-remaining"></span> <progress id="audio-progress"></progress> </div> '); } ; __p.push(' <a id="play-pause" href="#play-pause" data-paused="1" class="paused"><span class="hide">', l('Play/Pause') ,'</span></a> '); } ; __p.push(' <h2 class="podcast-title hide">', episode.podcast().get('name') ,'</h2> <h3 class="episode-title">', episode.get('title') ,'</h3> '); if (!!episode.get('description')) { ; __p.push(' <p class="description">', episode.get('description') ,'</p> '); } ; __p.push(''); } else { ; __p.push(' <h2 class="title">', l('Nothing play
@tofumatt
tofumatt / Face Value writeup.markdown
Created October 25, 2012 18:05
Face Value writeup

Face Value

by tofumatt, Mozilla's Vespa Expert

Face Value is a currency conversion app that does things differently: instead of converting arbitrary amounts it shows you the actual denominations in the country you're visiting. It lets you think in your home currency even with a foreign currency in your pocket.

Face Value was built by Matthew Riley MacPherson and sarah ✈ semark. Both are remote-working, frequent travellers.

Why We Built Face Value

@tofumatt
tofumatt / denominations.json
Created September 13, 2012 22:45
I wonder what I'm working on?
{
"BRL": {
"coins": [
{
"0.01": "copper"
},
{
"0.05": "copper"
},
<video id="foo"
class="bar">
NOT
<video id="foo"
class="bar">
from django.contrib.auth.decorators import (login_required as
auth_login_required)
Index: templates/LC_MESSAGES/messages.pot
===================================================================
--- templates/LC_MESSAGES/messages.pot (revision 98319)
+++ templates/LC_MESSAGES/messages.pot (working copy)
@@ -3,7 +3,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2011-12-01 08:28-0700\n"
+"POT-Creation-Date: 2011-12-01 13:19-0700\n"
Index: lt/LC_MESSAGES/messages.po
===================================================================
--- lt/LC_MESSAGES/messages.po (revision 98319)
+++ lt/LC_MESSAGES/messages.po (working copy)
@@ -2,7 +2,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2011-12-01 08:28-0700\n"
+"POT-Creation-Date: 2011-12-01 13:19-0700\n"
def test_profile_photo(self):
"""Make sure profile photo uploads and removals work.
Test the upload, encoding, and removal of photo profiles. Also make
sure edge cases (from naughty user input) and HTML elements work
properly.
"""
client = self.mozillian_client
# No photo exists by default, the delete photo form control shouldn't
Index: lt/LC_MESSAGES/messages.po
===================================================================
--- lt/LC_MESSAGES/messages.po (revision 97169)
+++ lt/LC_MESSAGES/messages.po (working copy)
@@ -2,7 +2,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2011-11-01 14:05-0700\n"
+"POT-Creation-Date: 2011-11-03 10:49-0700\n"
(SELECT `id` FROM `profile` WHERE `user_id` IN (
SELECT `id` FROM `auth_user` WHERE `email` LIKE '%@mozilla.com' OR
'%@mozilla.org' OR
'%mozillafoundation.org'));
SELECT `id` FROM `group` WHERE `name` = 'staff'; // Get Staff