Skip to content

Instantly share code, notes, and snippets.

View jryans's full-sized avatar

J. Ryan Stinnett jryans

View GitHub Profile
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
var __SCRATCHPAD__ = !(typeof(window) == "undefined");
if (__SCRATCHPAD__ && (typeof(window.gBrowser) == "undefined")) {
throw new Error("Must be run in a browser scratchpad.");
}
// If we're developing in scratchpad, shutdown the previous run
@jeffgca
jeffgca / jpinstall.sh
Created August 28, 2014 18:14
jpinstall - jpm edition
#!/bin/bash
JPM=/usr/local/bin/jpm
if [ -z "$1" ]; then
URL="http://127.0.0.1:8888/"
else
URL="http://127.0.0.1:$1/"
fi
@paulrouget
paulrouget / layout.css
Last active August 29, 2015 14:13
xul -> flexbox model
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/**
* layout.css
*
* Layout related rules.
*
*/
@captainbrosset
captainbrosset / creative-toolbar.md
Last active August 29, 2015 14:14
Firefox creative toolbar

One of the goals for 2015 is to provide more creative ways for designers and developers to make changes to the layout, behavior and design of a webpage, without only relying on typing CSS properties or Javascript code or HTML tags.

We've started to introduce more visual tools over the course of 2014, like the box-model highlighter, the CSS transform previewer, the cubic-bezier editor tooltip, and lately the new animation inspection panel.

There is a need to introduce more of these tools, and tie them up together in a UI that makes sense for designers and creative developers.

Here's a list of tools that so far either exist or are being developed or are planned and that together would form a very interesting toolkit:

  • relative to an element:
  • the element picker
@micahgodbolt
micahgodbolt / SassMeister-input.scss
Created June 24, 2013 16:08
Another stab at Filament Group's Element Query challenge.
// ---
// Sass (v3.2.9)
// ---
@mixin respond-to($queries...) {
$length: length($queries);
@for $i from 1 through $length{
@if $i % 2 == 1 {
@media screen and (min-width: nth($queries, $i)) {
@jeffgca
jeffgca / resource-stories.md
Last active December 20, 2015 13:59
User stories for creating a web data resource tool for Firefox Developer Tools

Browser Resource Tool

Firefox Developer Tools Team

User stories

General

  • As a user I should be able to access the 5 common supported types of storage are supported and easily accessible ( IndexedDB, Localstorage, Session, Cookies, Appcache ) for the current site.
  • I should be able to view the sites data via an appropriate ‘viewer’ for that type of data.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Created on Sep 29, 2010
@author: vak
'''
from sys import stdin, stdout, stderr
import unittest
import sys
@vuldin
vuldin / default.prop
Last active December 22, 2015 18:29
Install latest dev build of FxOS on ZTE Open
ro.secure=0
ro.allow.mock.location=1
ro.debuggable=1
persist.usb.serialno=full_inari
persist.sys.usb.config=adb
@dhylands
dhylands / disable-adb-timer.sh
Last active February 14, 2016 22:22
Sets the "Disable ADB Timer" to zero, which disables the timer.
#!/bin/bash
# Disables the adb timeout
set -e
ADB=${ADB:-adb}
$ADB wait-for-device
B2G_PREF_DIR=/system/b2g/defaults/pref
TMP_DIR=/tmp/adb-timeout-prefs
rm -rf $TMP_DIR
$ node --version
v5.2.0
$ npm ls
most-perf@0.10.0 /home/tylor/code/most/test/perf
├── @reactivex/rxjs@5.0.0-beta.1
├── baconjs@0.7.83