Skip to content

Instantly share code, notes, and snippets.

@yzen
yzen / PulledPork.yuummy
Created December 16, 2011 18:09 — forked from wesbos/PulledPork.yuummy
Pulled Awesome
Get a Pork Shoulder (called Pork but or picknick but/shoulder sometimes at the grocery store)
1. Cut the skin off the pork but and then trim most of the fat. Leaving some marbled fat is good b.c it melts away and adds to the favour
2. cover the pork but in normal yellow mustard. If you have dry mustard, that is fine too. I've used both.
3. prepare a "dry rub" which is just a bowl full of tons of spices. I include the following
-garlic salt
-normal salt
-paprika
@yzen
yzen / Vagrantfile
Last active December 29, 2015 20:19
A Vagrantfile that bootstraps your B2G build environment with Ubuntu 12.04 and host B2G source.This script is compatible with keon and inari. If you want to add other devices, make sure you add the appropriate a usbfilter and the android rule.
# -*- mode: ruby -*-
# vi: set ft=ruby :
# To use this script and prepare your build environment, run the following
# command in the same directory as the Vagrantfile.
# B2G_PATH={path to your B2G directory} vagrant up
VAGRANTFILE_API_VERSION = "2"
# This script will be run on the first start and it will set up the build
@yzen
yzen / Vagrantfile
Created December 10, 2013 20:44
Vagrantfile for fedora-19 and GPII
# -*- mode: ruby -*-
# vi: set ft=ruby :
# To use this script and prepare your build/test environment, run the following
# command in the same directory as the Vagrantfile.
# GPII_PATH={path to your gpii directory that contains or will contain cloned
# linux repository} vagrant up
VAGRANTFILE_API_VERSION = "2"
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install -y --no-install-recommends autoconf2.13 bison bzip2 ccache curl flex gawk gcc g++ g++-multilib gcc-4.6 g++-4.6 g++-4.6-multilib git lib32ncurses5-dev lib32z1-dev zlib1g:amd64 zlib1g-dev:amd64 zlib1g:i386 zlib1g-dev:i386 libgl1-mesa-dev libx11-dev make zip libxml2-utils
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 1
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 2
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.6 1
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 2
sudo update-alternatives --set gcc "/usr/bin/gcc-4.6"
sudo update-alternatives --set g++ "/usr/bin/g++-4.6"
/*
--- a/apps/calendar/test/marionette/lib/calendar.js
+++ b/apps/calendar/test/marionette/lib/calendar.js
@@ -10,7 +10,9 @@ var AdvancedSettings = require('./views/advanced_settings'),
MonthDay = require('./views/month_day'),
ReadEvent = require('./views/read_event'),
Settings = require('./views/settings'),
- Week = require('./views/week');
+ Week = require('./views/week'),
+ AccessibilityHelper = require(
diff --git a/app/js/controller/list_controller.js b/app/js/controller/list_controller.js
index 7f4197c..762b3c3 100644
--- a/app/js/controller/list_controller.js
+++ b/app/js/controller/list_controller.js
@@ -6,6 +6,8 @@ import AppListView from 'js/view/app_list_view';
import AddonListView from 'js/view/addon_list_view';
import DetailsView from 'js/view/details_view';
+import { ActivityHandler } from 'js/lib/helpers';
+
function renameAddon(addon, name) {
if (!name) {
return Promise.reject('no name given');
}
if (!isAddon(addon)) {
return Promise.reject('not an addon');
}
var manifest = getManifest(addon);
var textPosition = new AccPos(domTextArea.accesibleElement, 'at');
// Read word by word
var word1 = textPosition.move('forward', 'word');
var word2 = word.move('forward', 'word');
var text = word2.textInBetween(word1);
var text = word1.findText('forward', 'paragraph');
{
"actor": "server1.conn0.child1/accessible103",
"role": "document",
"name": "Restore Session",
"value": "",
"description": "",
"keyboardShortcut": "",
"childCount": 2,
"domNodeType": 9,
"indexInParent": 0,
{
mode: Symbol(TINY),
"object": [],
"title": "Object",
openLink: function() {...}
}