Go to the egghead website, i.e. Building a React.js App
run
$.each($('h4 a'), function(index, video){
console.log(video.href);
});| "use-strict" | |
| ### | |
| # Slider | |
| # | |
| # @example | |
| # ```haml | |
| # .slider__wrapper | |
| # .slider | |
| # .slider__slide.slider__slide--active |
| $svg-container-namespace: '.svg-container'; | |
| //Give 'em' 1:1 responsive container by default | |
| #{$svg-container-namespace} { | |
| display: inline-block; | |
| position: relative; | |
| height: 0; | |
| width: 100%; | |
| padding: 0; | |
| //Default for 1:1 aspect ratio |
Go to the egghead website, i.e. Building a React.js App
run
$.each($('h4 a'), function(index, video){
console.log(video.href);
});In this gist I would like to describe an idea for GraphQL subscriptions. It was inspired by conversations about subscriptions in the GraphQL slack channel and different GH issues, like #89 and #411.
At the moment GraphQL allows 2 types of queries:
querymutationReference implementation also adds the third type: subscription. It does not have any semantics yet, so here I would like to propose one possible semantics interpretation and the reasoning behind it.
The issue:
..mobile browsers will wait approximately 300ms from the time that you tap the button to fire the click event. The reason for this is that the browser is waiting to see if you are actually performing a double tap.
(from a new defunct https://developers.google.com/mobile/articles/fast_buttons article)
touch-action CSS property can be used to disable this behaviour.
touch-action: manipulationThe user agent may consider touches that begin on the element only for the purposes of scrolling and continuous zooming. Any additional behaviors supported by auto are out of scope for this specification.
| #!/bin/bash | |
| PARAMS=('-m 6 -q 70 -mt -af -progress') | |
| if [ $# -ne 0 ]; then | |
| PARAMS=$@; | |
| fi | |
| cd $(pwd) |
This guide assumes you have the emmet and language-babel packages already installed in Atom
keymap.cson file by clicking on Atom -> Keymap… in the menu bar'atom-text-editor[data-grammar~="jsx"]:not([mini])':| /** @flow */ | |
| import Immutable from 'immutable' | |
| import React, { Component, PropTypes } from 'react' | |
| import { ContentBox, ContentBoxHeader, ContentBoxParagraph } from '../demo/ContentBox' | |
| import { LabeledInput, InputRow } from '../demo/LabeledInput' | |
| import AutoSizer from '../AutoSizer' | |
| import Grid from './Grid' | |
| import shallowCompare from 'react-addons-shallow-compare' | |
| import cn from 'classnames' | |
| import styles from './Grid.example.css' |
Today I wanted to make a recording of me running some commands inside a docker-container.
❯ docker-compose run app bash
root@e9bb2af4dc11:/usr/local/go/src/example.com/dev/project#
Needless to say it looked a bit bland with no colors and a long prompt that prevents me from recording a small terminal and show the full commands I'm