Skip to content

Instantly share code, notes, and snippets.

View dustinsmith1024's full-sized avatar
🏀
⛹️

Dustin Smith dustinsmith1024

🏀
⛹️
View GitHub Profile
@dustinsmith1024
dustinsmith1024 / shell.sh
Last active February 26, 2017 14:37
Compost.io installing an extension
▶ master ✗ sudo "/Applications/Postgres.app/Contents/Versions/9.4/bin/psql" -Ufocker -ddev -p5445
psql (9.4.11)
Type "help" for help.
dev=# create extension "pgcrypto";
CREATE EXTENSION
sms_us_dev=# \q
open -a Google\ Chrome --args --disable-web-security --user-data-dir
@dustinsmith1024
dustinsmith1024 / App.js
Created August 6, 2017 20:14
Graphiql start
# run create-react-app
# npm install --save graphiql
# edit App.js to look like this...
# enable CORS on your GraphQl API (http://0.0.0.0:4000 below)
import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
import '../node_modules/graphiql/graphiql.css';
▶ c2fo WM-292 ✗ node test-csv.js test.csv
test.csv
[ { header1: '1-1', header2: '1-2', header3: '1-3' },
{ header1: '2-1', header2: '2-2', header3: '2-3' },
{ header1: '3-1', header2: '3-2', header3: '3-3' } ]
▶ c2fo WM-292 ✗ node
> let val1 = false;
undefined
> t = require('./test-csv')
{ newTable: [Function: newTable] }