Skip to content

Instantly share code, notes, and snippets.

@k88hudson
k88hudson / sendtodevice_defaults.json
Last active November 23, 2018 17:48
Send to device defaults QA data
{
"messages": [
{
"id": "PREVIEW_SNIPPETS_DEFAULTS_SEND_TO_DEVICE",
"template": "send_to_device_snippet",
"content": {
"scene1_icon": "chrome://branding/content/icon64.png",
"scene1_text": "Browse without compromise with Firefox Mobile.",
"scene1_title": "Full-featured. Customizable. Lightning fast",
"scene2_button_label": "Send",

CFR Testing instructions

General Setup

These instructions apply to testing all variants including control.

Start by creating a new profile.

In about:config, you should ensure the following preferences are set:

  • browser.search.region to US
@k88hudson
k88hudson / cohorts.md
Last active September 14, 2018 16:58
Preference values for browser.newtabpage.activity-stream.asrouter.messageProviders experiment

All values apply to the browser.newtabpage.activity-stream.asrouter.messageProviders experiment preference.

Control

[]

Cohort 1

@k88hudson
k88hudson / searchshortcutsspec.md
Last active August 8, 2018 15:22
Search Shortcuts Spec

List of Search Shortcuts

const SEARCH_SHORTCUTS = [
  {keyword: "@amazon", shortURL: "amazon", url: "https://amazon.com"},
  {keyword: "@google", shortURL: "google", url: "https://google.com"}
];

Matching Rules

@k88hudson
k88hudson / check-export-as.md
Last active March 5, 2018 17:59
Checklist for AS exports

Reviewboard checklist

  • Check each file
  • Check if try was run, if there are test failures
  • Check more closely/ask additional questions if there changes that might have significant impact on:
    • accessibility
    • security
    • performance
  • Check if export files match git commit range
  • If new localization implementaion, check ID (Indonesia) locale is there
  • Check if comments on review board actually published
Default wrapper width: 224px
Small breakpoint at min-width 416px: wrapper is 352px
Medium breakpoint at min-width 544px: wrapper is 480px
Large breakpoint at min-width 800px; wrapper is 736px
@k88hudson
k88hudson / bare-bones-react-webpack.js
Last active February 13, 2017 19:34
Bare-bones react/webpack set-up
/* First, install dependencies:
npm install webpack babel-loader babel-core babel-preset-react --save-dev
npm install react react-dom --save
Note: babel dependencies are not needed if you aren't using jsx)
*/
// webpack.config.js
// Note: This assumes a "main.js" file in a src/ directory, and outputs "main.bundle.js" to a dist/ directory
@k88hudson
k88hudson / yummysandwiches.md
Created February 28, 2016 22:01
Chickpea + lentil + avocado sandwich spread

Ingredients

  • 1/2 to 1 can of chickpeas
  • 1/2 to 2 can of lentils
  • 1 avocado
  • green onions
  • 1 or 2 cloves of garlic... if you can handle raw garlic ;)
  • a bit of horse radish
  • pea sprouts or other little greens
  • curry powder, chipotle pepper powder (or whatever other spices you like)
@k88hudson
k88hudson / watch.md
Last active July 19, 2016 21:53
how do i watch in npm scripts
const {InjectIntl} = require('react-intl');
const Foo = React.CreateClass({
render: () {
<div>{this.props.intl.formatMessage('string-key')}</div>
}
});
module.exports = InjectIntl(Foo);