This file contains hidden or 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
#!/usr/bin/env python | |
# | |
# Any copyright is dedicated to the Public Domain. | |
# http://creativecommons.org/publicdomain/zero/1.0/ | |
from __future__ import print_function | |
import argparse | |
import codecs | |
import gi |
This file contains hidden or 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
*~ | |
venv |
This file contains hidden or 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
#!/bin/sh | |
# This script configures devices+ptrace for running Firefox tests in the | |
# taskcluster desktop-test image locally. Run it like you would `docker run`, | |
# any arguments passed to the script are passed to `docker run`. | |
# Example: | |
# desktop-test-run -t -i --rm taskcluster/desktop-test:0.4.3 | |
set -e | |
deviceargs="" |
This file contains hidden or 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
def get(request): | |
debug_id = request.get('debug_id') | |
debug_filename = request.get('debug_filename') | |
if might_be_on_msdn(debug_id, debug_filename): | |
symbol_from_msdn = fetch_from_msdn(debug_id, debug_filename) | |
if not symbol_from_msdn: | |
raise PageNotFound() | |
else: | |
new_s3_key = upload_to_symbols_m_o_S3(symbol_from_msd) | |
return PageOK(new_s3_key.absolute_url) |
This file contains hidden or 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
var gamepadPoller = -1; | |
function pollGamepad() { | |
var gamepads = navigator.getGamepads(); | |
// Use input from any gamepad. | |
for (var i=0; i<gamepads.length; i++) { | |
if (gamepads[i]) { | |
var g = gamepads[i]; | |
// Use any button for jump. | |
keyPressed[32] = Array.prototype.some.call(g.buttons, function(b) {return b.pressed; }); | |
// Assume axis 0 is left/right, 1 is up/down. Not 100% reliable! |
This file contains hidden or 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
#!/usr/bin/env python | |
from __future__ import print_function | |
import datetime | |
import operator | |
import requests | |
from collections import defaultdict |
This file contains hidden or 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
#!/bin/bash | |
#TODO: you will need to manually get an OS X SDK. | |
set -e | |
# Install the proper Rust nightly with rustup, and add the OSX target. | |
rustup install nightly-`cat rust-nightly-date` | |
rustup override add nightly-`cat rust-nightly-date` | |
rustup target install x86_64-apple-darwin |
This file contains hidden or 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
use std::marker::PhantomData; | |
use std::boxed::Box; | |
trait Data { | |
fn get(&self) -> u32; | |
} | |
trait DataCreator { | |
fn new_data() -> Box<Data>; | |
} |
This file contains hidden or 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
use std::slice::Iter; | |
use std::collections::HashSet; | |
trait EnumValues : Sized { | |
fn values() -> Iter<'static, Self>; | |
} | |
macro_rules! simple_enum { | |
($name:ident { $(($item:ident, $repr:expr),)* }) => { | |
#[derive(Debug)] |
This file contains hidden or 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
{ | |
"$schema": "http://json-schema.org/draft-04/schema#", | |
"type": "object", | |
"description": "schema of a processed crash from Socorro", | |
"definitions": { | |
"frames": { | |
"type": "object", | |
"properties": { | |
"frame": { | |
"type": "integer", |