Skip to content

Instantly share code, notes, and snippets.

Taken from https://www.netlify.com/blog/2020/03/05/feedback-ladders-how-we-encode-code-reviews-at-netlify/
⛰ Mountain / Blocking and requires immediate action
🧗‍ Boulder / Blocking
⚪️ Pebble / Non-blocking but requires future action
⏳ Sand / Non-blocking but requires future consideration
🌫 Dust / Non-blocking, “take it or leave it”

Keybase proof

I hereby claim:

  • I am timtyrrell on github.
  • I am timtyrrell (https://keybase.io/timtyrrell) on keybase.
  • I have a public key whose fingerprint is B830 90C5 518A 74ED E3E1 C6A8 7B49 3923 FCD9 FAE2

To claim this, I am signing this object:

@timtyrrell
timtyrrell / .gitlab-ci.yml
Last active May 8, 2018 07:21
Gitlab config to run electron on our Gitlab CoreOS install
image: node:latest
stages:
- build
cache:
paths:
- node_modules/
build_and_test_job:
@timtyrrell
timtyrrell / mocha-jsdom-test.js
Last active September 3, 2015 00:56 — forked from silvenon/mocha-jsdom-test.js
Mocha setup I use for testing React with jsdom.
import jsdom from 'jsdom';
import assert from 'assert';
describe('suite', () => {
let React, utils, Component;
before(() => {
global.document = jsdom.jsdom('<!DOCTYPE html><html><head></head><body></body></html>');
global.window = document.parentWindow;
global.navigator = {userAgent: 'node.js'};
@timtyrrell
timtyrrell / gist:89f7f6b20e523fcc2da6
Last active August 29, 2015 14:25
exercise 3 solution
var React = require("react");
class WhatsYourName extends React.Component {
// By default `this.state` is `null`. In `render` we are referring to
// a specific element from the `state` object - `this.state.name`.
// If we don't set an initial state, we will get an error. It's impossible to fetch
// an object key from `null`.
//
// Think about it: you can set name from a cookie on component initialization!
// What else could you do here?
import Alt from 'alt';
import AltContainer from 'alt/AltContainer';
import React, {Component, PropTypes} from 'react';
import {decorate, bind} from 'alt/utils/decorators';
const alt = new Alt();
const SearchResultsActions = alt.createActions(
class SearchResultsActions {
fetchResults(searchTerm) {
@timtyrrell
timtyrrell / .eslintrc.js
Created July 2, 2015 02:28
Modified version of https://gist.github.com/nkbt/9efd4facb391edbf8048 but updated to use ES7 and fix a couple invalid entries (only added .js for the syntax highlighting in this gist, remove it to use)
{
"env": {
"browser": true,
"node": true,
"es6": true
},
"parser": "babel-eslint",
"ecmaFeatures": {
"classes": true,
@timtyrrell
timtyrrell / gist:0640d02bd08cd54f739a
Created April 30, 2015 16:39
Simple re-format for minified Javascript for VIM
" Simple re-format for minified Javascript
command! UnMinify call UnMinify()
function! UnMinify()
%s/{\ze[^\r\n]/{\r/g
%s/){/) {/g
%s/};\?\ze[^\r\n]/\0\r/g
%s/;\ze[^\r\n]/;\r/g
%s/[^\s]\zs[=&|]\+\ze[^\s]/ \0 /g
normal ggVG=
endfunction
setw -g mode-keys vi
set -g default-terminal "screen-256color"
set -g base-index 1
setw -g pane-base-index 1
unbind C-b
set -g prefix C-a