This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
repository(owner: "jwo", name:"react-hover-image"){ | |
url | |
pullRequest(number: 4){ | |
number | |
url | |
author { | |
avatarUrl | |
login | |
resourcePath |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1>Oh Hai</h1> | |
<%= react_component 'oh-hai' %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'active_record' | |
require 'logger' | |
ActiveRecord::Base.logger = Logger.new(STDERR) | |
ActiveRecord::Base.establish_connection( | |
adapter: "sqlite3", | |
database: ":memory:" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# And, to activate, you need to tell Rails to load it up: | |
# config/application.rb | |
config.middleware.insert_before 0, Rack::Attack |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://code.jquery.com/jquery-2.2.4.js"></script> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:8 | |
RUN npm install -g write-good | |
ADD clone-run.sh /tmp/clone-run.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require("express"); | |
const mustache = require("mustache-express"); | |
const bodyParser = require("body-parser"); | |
const app = express(); | |
// Rest of the stuff here | |
// DONT FORGET THIS | |
module.exports = app; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const mongoose = require('mongoose'); | |
mongoose.Promise = require('bluebird'); | |
mongoose.connect('mongodb://localhost:27017/eighties'); | |
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} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo 'So you want to create a new project, eh?' | |
echo 'What is the name of the project?' | |
read project_name | |
mkdir $project_name |