Skip to content

Instantly share code, notes, and snippets.

/*
* Copyright (c) 2010 Tobias Schneider
* This script is freely distributable under the terms of the MIT license.
*/
(function(){
var UPC_SET = {
"3211": '0',
"2221": '1',
"2122": '2',

Getting your Firefox app on Heroku

Assuming you already have your app working locally

Get heroku working

/*
* Copyright (c) 2010 Tobias Schneider
* This script is freely distributable under the terms of the MIT license.
*/
(function(){
var UPC_SET = {
"3211": '0',
"2221": '1',
"2122": '2',
{
"ease": [0.25, 0.1, 0.25, 1.0],
"linear": [0.00, 0.0, 1.00, 1.0],
"ease-in": [0.42, 0.0, 1.00, 1.0],
"ease-out": [0.00, 0.0, 0.58, 1.0],
"ease-in-out": [0.42, 0.0, 0.58, 1.0]
}
(function(global){
"use strict";
function constEnumPropValueDesc(v){
return {
value: v,
enumerable: true,
configurable: false,
writable: false
};
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>WebRTC p2p data</title>
<script src="https://webrtc-samples.googlecode.com/svn/trunk/apprtc/js/adapter.js"></script>
</head>
<body>
Testing WebRTC connection.
var http = require("http"),
url = require("url"),
path = require("path"),
fs = require("fs")
port = process.argv[2] || 8888;
http.createServer(function(request, response) {
var uri = url.parse(request.url).pathname
, filename = path.join(process.cwd(), uri);
Firefox OS Homescreens
1. Riverscreen (Paul Rouget): https://github.com/paulrouget/riverscreen
2. Marsscreen (Yorik van Havr): https://github.com/yorikvanhavre/MARSScreen
3. Shyhome (Schoewilliam): https://github.com/Schoewilliam/Shyhome
4. FirefoxOS Vertical Home (Kevin Grandon): https://github.com/KevinGrandon/firefoxos-vertical-home
5. Zwipe (Miles "Dylan" Goodings): https://github.com/mgoodings/zwipe
6. Betsuscreen (xfausto): https://github.com/xfausto/betsuscreen
7. Grayscreen (xfausto): https://github.com/xfausto/Grayscreen
8. omg-awesome-homescreen (Jan Jongboom): https://github.com/janjongboom/omg-awesome-homescreen
<!DOCTYPE html>
<html>
<head>
<title>JS in-browser barcode reader</title>
<style type="text/css">
body > div {
position: relative;
width: 320px; height: 240px;
}
video { position: absolute; top: 0; left: 0; width: 320px; height: 240px; }