Skip to content

Instantly share code, notes, and snippets.

This does NOT work on Raspberry Pi 2!

  1. Obtain a 8GB (or bigger) SD Card
  2. Download disk image from http://janos.io/builds/fxos-pi-gpio.img.zip and unzip
  3. Put SD card in your computer
  4. Find out where your SD card is mounted (BE REALLY SURE ITS THE RIGHT DEVICE, IT WILL BE WIPED COMPLETELY!!!), f.e. /dev/disk5 on OSX
  5. On Linux, run: sudo dd bs=4M if=fxos-pi-gpio.img of=/path/to/your/disk
  6. On OSX, run: sudo dd bs=4m if=fxos-pi-gpio.img of=/dev/rdisk5 (do rdisk, not disk here!)
  7. When it's done put it in your Pi and start up
  8. The demo's are wired like this: yellow LED on GPIO2, red LED on GPIO3, button (wire it as pulldown) on GPIO26.

Running Windows Phone unit tests in team build (TFS)

Prerequisites:

  • Build Agent needs to run a physical x64 Windows 8.1 based machine to be able to run Phone emulators
  • Setup build agent to run as an interactive process and enable it to run unit tests (obtain developer license). Check this MSDN page for more help on this.
  • Install Visual Studio 2013 + Update 2 (with support for Phone development) on Build Agent

Once you have these, you can use custom scripts in TFS 2013 build definition to run phone tests using vstest.console command line. See the script RunPhoneTests.bat

@SunboX
SunboX / .userconfig
Last active August 29, 2015 14:13 — forked from flamingspaz/.userconfig
export MOZILLA_OFFICIAL=1
export PRODUCTION=1
export CC=clang
export CXX=clang++
export REMOTE_DEBUGGER=1
export GAIA_DEV_PIXELS_PER_PX=2
export DOGFOOD=0
# multilocale stuff, need to clone the locales into B2G/gaia/locales
export LOCALE_BASEDIR=$PWD/gaia/locales
export LOCALES_FILE=$PWD/gaia/locales/languages-dev.json
@SunboX
SunboX / index.css
Last active August 29, 2015 14:08 — forked from anonymous/index.html
Vertical centering in CSS
body, html {
height: 100%;
margin: 0;
padding: 0;
}
p {
padding: 0 30px;
margin: 0;
font-family: Georgia, serif;
<!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; }
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
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);
<!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.