This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"env": { | |
"browser": true, | |
"node": true, | |
"es6": true | |
}, | |
"parser": "babel-eslint", | |
"ecmaFeatures": { | |
"classes": true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
image: node:latest | |
stages: | |
- build | |
cache: | |
paths: | |
- node_modules/ | |
build_and_test_job: |
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:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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” |
OlderNewer