Skip to content

Instantly share code, notes, and snippets.

View tofumatt's full-sized avatar

Matthew Riley MacPherson tofumatt

View GitHub Profile
Using worker: worker-linux-docker-e4fce81d.prod.travis-ci.org:travis-linux-10
travis_fold:start:system_info
Build system information
Build language: python
Build group: stable
Build dist: precise
Build image provisioning date and time
Thu Feb 5 15:09:33 UTC 2015
Operating System Details
@tofumatt
tofumatt / linter.js
Created April 21, 2016 11:06
add hidden file scanner
// Line 372 in linter.js
scan(deps={}) {
return this.extractMetadata(deps)
.then((addonMetadata) => {
if (addonMetadata.hiddenFiles.length) {
// Make a warning
}
return;
})
@tofumatt
tofumatt / testoutput.txt
Created April 22, 2016 20:14
failing test
Elapsed: 3.95s; From _tests: Kept 24117 existing; Added/updated 0; Removed 0 files and 0 directories.
######
### Now running mochitest-chrome.
######
Checking for orphan ssltunnel processes...
Checking for orphan xpcshell processes...
SUITE-START | Running 1 tests
dir: toolkit/components/extensions/test/mochitest
@tofumatt
tofumatt / docker.log
Created May 18, 2016 13:56
Recent docker error
System check identified no issues (0 silenced).
May 18, 2016 - 13:53:23
Django version 1.7.11, using settings 'settings'
Starting development server at http://0.0.0.0:8000/
Quit the server with CONTROL-C.
[18/May/2016 13:53:58] "GET / HTTP/1.0" 302 0
Raven is not configured (logging is disabled). Please see the documentation for more information.
13:54:07 raven.contrib.django.client.DjangoClient:INFO Raven is not configured (logging is disabled). Please see the documentation for more information. :/usr/lib/python2.7/site-packages/raven/base.py:196
Traceback (most recent call last):
File "/usr/lib64/python2.7/wsgiref/handlers.py", line 85, in run
render() {
const { result } = this.props;
return (
<li className="SearchResult">
<div>
<img className="SearchResult-icon" src={result.icon_url} alt="Icon" />
</div>
<section className="SearchResult-main">
<h2 className="SearchResult-heading">
<Link to={`/search/addons/${result.slug}`} className="SearchResult-name"
@tofumatt
tofumatt / styles.scss
Created September 14, 2017 19:02
Grid style diff
diff --git a/src/amo/components/Addon/styles.scss b/src/amo/components/Addon/styles.scss
index b24cc5797524..28a74efa304d 100644
--- a/src/amo/components/Addon/styles.scss
+++ b/src/amo/components/Addon/styles.scss
@@ -193,7 +193,7 @@
.Addon-details {
display: grid;
grid-auto-flow: column dense;
- grid-gap: 10px;
+ grid-gap: 0 10px;
@tofumatt
tofumatt / gutenberg.sublime-project
Created July 10, 2018 20:43
Gutenberg Sublime Project file
{
"folders":
[
{
"path": "gutenberg",
"file_exclude_patterns": [
"-coverage/**",
"-**.js.map",
"-**/build/index.js"
],
/**
* External dependencies
*/
import classnames from 'classnames';
import { omit, pick } from 'lodash';
/**
* WordPress dependencies
*/
import { __ } from '@wordpress/i18n';
// Our config values we want to store offline.
var config = {
fullName: document.getElementById('name').getAttribute('value'),
userId: document.getElementById('id').getAttribute('value')
};
// Let's save it for the next time we load the app.
localStorage.setItem('config', JSON.stringify(config));
// The next time we load the app, we can do:
@tofumatt
tofumatt / init.coffee
Last active May 31, 2019 19:37
Sync Settings for Atom
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->