Skip to content

Instantly share code, notes, and snippets.

1. Build GraphQL server using `express-graphql` package.
2. Configure `schema.js` file.
3. Query for data.
1. Build GraphQL server using `express-graphql` package.
2. Configure `schema.js` file.
3. Query for data.
const IntlMessageFormat = require('intl-messageformat')
function t(strings, values) {
const string = strings[0].trim()
var msg = new IntlMessageFormat(string, 'en-US')
return msg.format(values)
}
const person = 'Mike'
const age = 28
import React, {Component, PropTypes} from 'react';
import {component as Button} from 'focus-components/common/button/action'
import d3 from 'd3' // Is it working?
const defaultProps = {
margin: {top: -5, right: -5, bottom: -5, left: -5},
width: 960,
height: 500,
plan: '<svg><path></path></svg>',
zoomFunction(){
@pierr
pierr / .bash_profile
Last active September 23, 2015 08:49 — forked from Bernardstanislas/.bash_profile
Bash profile
export PYTHONPATH=/c/Python27/
export GYP_MSVS_VERSION=2015
# Environment variables
export ATOM_NODE_URL=http://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist
GIT="/c/Program Files/Git/bin;/c/Program Files/Git/mingw64/libexec/git-core"
PATH="$GIT;$PATH"
# Variables
GATEWAY="$(ipconfig | grep -a Passerelle | grep -P -o -a '([0-9]+\.){3}[0-9]+')"
PROXY="http://172.20.0.9:3128"
KLEE_GATEWAY="172.20.231.1"
(function($) {
// Used by dateinput
$.expr = {':': {}};
// Used by bootstrap
$.support = {};
// Used by dateinput
$.fn.clone = function(){
var ret = $();
@pierr
pierr / web-app.html
Created December 6, 2012 17:35 — forked from tfausak/ios-8-web-app.html
iOS web app icons & startup images
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta content="yes" name="apple-mobile-web-app-capable">
<title></title>
<!-- iPhone -->
<link href="http://taylor.fausak.me/static/images/apple-touch-icon-57x57.png"