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(win) { | |
'use strict'; | |
/* | |
* CONSTRUCTOR | |
*/ | |
function DateDiff(date) { | |
this.date = new Date(date); | |
this.dateNow = new Date(); | |
} |
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
// BREAKPOINTS | |
// https://jdsteinbach.com/css/sass-maps-breakpoint-mixin/ | |
$breakpoints: ( | |
small : 320px, | |
medium: 768px, | |
large : 992px, | |
wide : 1400px | |
); | |
$columns: 12; | |
$gutter : 1em; |
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
<!-- *** Simples POC of FormValidator *** --> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Validator</title> | |
<style> | |
* { |
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 DEFAULT_BACKOFF = 200; // milliseconds | |
export class Polling { | |
constructor(fn, maxRetries = 10, initialDelay = DEFAULT_BACKOFF) { | |
this._fn = fn; | |
this._remainingRetries = maxRetries; | |
this._delay = initialDelay; | |
} | |
async perform() { |
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 React from 'react'; | |
import {storiesOf} from '@kadira/storybook'; | |
import mockRelay from '<path-to>/mocks/relay'; | |
import {Component} from '../'; | |
import viewer from './fixtures/viewer'; // json data | |
const relay = { | |
variables: { | |
foo: {}, | |
bar: 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 React from 'react'; | |
import {storiesOf} from '@kadira/storybook'; | |
import mockContext from '<path-to>/js/mocks/context'; | |
import {Component} from '../'; | |
const context = { | |
user: 'Foo Bar' | |
}; | |
storiesOf('Component', module) |
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 React from 'react'; | |
import {storiesOf} from '@kadira/storybook'; | |
import mockRedux from '<path-to>/js/mocks/redux'; | |
import {Component} from '../'; | |
const storeState = { | |
list: ['foo', 'bar', 'baz'], | |
someData: { | |
foo: true, | |
bar: false |
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 icons = document.createElement('div'); | |
icons.innerHTML = require('images/icons.svg').match(/<svg.*<\/svg>/, '')[0]; | |
icons.style.display = 'none'; | |
document.body.appendChild(icons); | |
})(); |
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
tap "homebrew/bundle" | |
tap "homebrew/cask" | |
tap "homebrew/cask-fonts" | |
tap "homebrew/core" | |
brew "docker" | |
brew "node" | |
brew "tig" | |
brew "wget" | |
brew "yarn" | |
brew "zsh" |
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
{"lastUpload":"2019-02-21T16:01:47.849Z","extensionVersion":"v3.2.5"} |
OlderNewer