Skip to content

Instantly share code, notes, and snippets.

Jesse Wolgamott jwo

Block or report user

Report or block jwo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
jwo / Dockerfile
Created Oct 26, 2017
Node app which uses dockerode to run a simple test suite against a Git Repo.
View Dockerfile
FROM node:8
RUN npm install -g write-good
ADD /tmp/
jwo / query.graphql
Last active Aug 16, 2019
GraphQL Example for GitHub API repo statuses on a pull request. We know before hand that it's "jwo/react-hover-image" and pull request number 4
View query.graphql
repository(owner: "jwo", name:"react-hover-image"){
pullRequest(number: 4){
author {
jwo / query.graphql
Last active Oct 26, 2017
GraphQL example: current user's 100 most current public repos
View query.graphql
viewer {
repositories(privacy: PUBLIC, first: 3, orderBy: {field: PUSHED_AT, direction: DESC}) {
nodes {
jwo / index.js
Created Oct 26, 2017
Simple way to sign in with github for oAuth in Node/Express
View index.js
const express = require("express")
const app = express()
var passport = require("passport")
var session = require("express-session")
var GitHubStrategy = require("passport-github2").Strategy
const GITHUB_CLIENT_ID = "your-client-id-here" // or get from process.env.GITHUB_CLIENT_ID
const GITHUB_CLIENT_SECRET = "your-client-secret-here" // or get from process.env.GITHUB_CLIENT_SECRET
const GITHUB_CALLBACK_URL = "http://localhost:5000/auth/github/callback" // or get from process.env.GITHUB_CALLBACK_URL
jwo / map.js
Last active Dec 11, 2019
React google maps with multiple markers, only one info window
View map.js
import React, { Component } from "react"
import { compose } from "recompose"
import {
} from "react-google-maps"
jwo / app.js
Created Jul 10, 2017
Simple example for testing an HTML endpoint in node with supertest and chai. Most examples only test API endpoints it seems.
View app.js
const express = require("express");
const mustache = require("mustache-express");
const bodyParser = require("body-parser");
const app = express();
// Rest of the stuff here
module.exports = app;
jwo / game.js
Created Jul 6, 2017
sample schema for mongoose
View game.js
const mongoose = require('mongoose');
mongoose.Promise = require('bluebird');
const gameSchema = new mongoose.Schema({
name: {type: String, required: true},
imageUrl: {type: String, required: true},
tags: [String],
year: {type: Number, required: true},
link: {type: String, required: true}
jwo / index.html
Created Jun 14, 2017
Fetch data from star wars api and display
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<style media="screen">
.character {
display: flex;
width: 550px;
jwo / spoon.js
Created Jun 7, 2017
Such a great super great awesome example of nested for loops
View spoon.js
function properCase(sentence){
const words = sentence.split(' ');
let newWords = []
// Start the big spoon
for(let i = 0; i < words.length; i++){
const word = words[i];
jwo /
Created May 22, 2017
Sample Shell script
echo 'So you want to create a new project, eh?'
echo 'What is the name of the project?'
read project_name
mkdir $project_name
You can’t perform that action at this time.