I hereby claim:
- I am cmmartin on github.
- I am charliemartin (https://keybase.io/charliemartin) on keybase.
- I have a public key ASB0YIxZ0_Ci3kADAbuH-eofDcgSPM6jdGxDgXnMscHTywo
To claim this, I am signing this object:
| netstat -tulpen | grep 443 |
| /** | |
| * Usage: | |
| * | |
| * function Movie({ title = 'Inception' }) { | |
| * const [data, loading, error] = useGraphQL('https://api.graph.cool/simple/v1/movies', ` | |
| * query getMovie($title: String!) { | |
| * Movie(title: $title) { | |
| * releaseDate | |
| * actors { | |
| * name |
I hereby claim:
To claim this, I am signing this object:
| /* @flow */ | |
| import redis from 'redis' | |
| import bluebird from 'bluebird' | |
| bluebird.promisifyAll(redis.RedisClient.prototype) | |
| bluebird.promisifyAll(redis.Multi.prototype) | |
| const client = redis.createClient(process.env.REDIS_URL) |
| // @flow | |
| /* eslint-env browser */ | |
| import * as React from 'react' | |
| import { createPortal } from 'react-dom' | |
| type Props = { | |
| children: React.Node, | |
| } | |
| export default class Portal extends React.Component<Props> { |
| const fs = require('fs') | |
| module.exports = function readFilePromise(path, encoding) { | |
| return new Promise((resolve, reject) => { | |
| try { | |
| var filename = require.resolve(path) | |
| fs.readFile(filename, encoding || 'utf8', (err, file) => { | |
| if (err) reject(err) | |
| else resolve(file) | |
| }) |
| const fs = require('fs') | |
| const path = require('path') | |
| const mkpath = require('mkpath') | |
| module.exports = function writeFilePromise(fileName, contents) { | |
| return new Promise((resolve, reject) => { | |
| mkpath(path.dirname(fileName), err => { | |
| if (err) reject(err) | |
| else { | |
| fs.writeFile(fileName, contents, err => { |
| /* | |
| * EXAMPLE USAGE | |
| * This component is text that will bounce on mount and | |
| * every time `this.props.someProperty` changes. | |
| * Too bad react native doesn't support decorators yet :/ | |
| */ | |
| import React, { | |
| Component, | |
| StyleSheet, |
| auth_basic "Restricted"; | |
| auth_basic_user_file /home/dokku/$APP/nginx.conf.d/.htpasswd; |
| open -a Google\ Chrome --args --disable-web-security --user-data-dir |