-alpha.1
-alpha.2
-beta.1
-beta.2
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 chai = require('chai'), | |
expect = chai.expect, | |
should = chai.should(); | |
describe('unit-tests', function () { | |
'use strict' | |
describe('generic-component-tests', function () { | |
describe('given a component', function () { | |
describe('when initialized w/ dependency', function () { |
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
(function() { | |
var you = true; | |
const MATTIA = 'Mattia'; | |
var myName = { | |
is: function(name) { | |
return name == MATTIA | |
} | |
}; | |
var to = { | |
call: { |
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
handleChange(e) { | |
e.persist(); | |
// info: "this.debounced" is defined at the class level | |
if (!this.debounced) { | |
this.debounced = _.debounce(() => { | |
console.log('YATTA!'); | |
this.debounced.cancel(); | |
this.debounced = undefined; | |
}, 500); | |
this.debounced(); |
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
/* eslint no-console: off */ | |
const http = require('http'); | |
const _ = require('lodash'); | |
const randomHttpStatusCode = _.sample(_.invert(http.STATUS_CODES)); | |
console.log('randomHttpStatusCode:', randomHttpStatusCode); |
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
/* info: the original "start" from CRA has been renamed to dev and a new "start" that points to server.js has been added */ | |
{ | |
"scripts": { | |
"start": "node server.js", | |
"dev": "react-scripts start", | |
"build": "react-scripts build", | |
"test": "react-scripts test --env=jsdom", | |
"eject": "react-scripts eject" | |
} | |
} |
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
((oc, $) => { | |
// see: https://github.com/opentable/oc/wiki/Browser-client#ocbuild-options | |
const html = oc.build({ | |
baseUrl: 'http://localhost:3030', | |
name: 'pi-baltimore-special-offers-promo-banners', | |
version: '1.X.X', | |
parameters: { | |
banner: 'purple-pasta' | |
} | |
}); |
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
(() => { | |
const script = document.createElement('script'); | |
script.type = 'application/javascript'; | |
script.src = '//s3.amazonaws.com/oc-registry-dc/components/oc-client/0.40.7/src/oc-client.min.js'; | |
script.onload = () => { | |
const html = window.oc.build({ | |
baseUrl: '//oc.registry.dc', | |
name: 'oc-superman', | |
version: '1.0.0', | |
parameters: { |
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
{ | |
"singleQuote": true, | |
"trailingComma": "none" | |
} |
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
{ | |
"type": "ForStatement", | |
"initExpression": { | |
"type": "VariableDeclarationStatement", | |
"variables": [ | |
{ | |
"type": "VariableDeclaration", | |
"typeName": { | |
"type": "ElementaryTypeName", | |
"name": "uint", |
OlderNewer