Skip to content

Instantly share code, notes, and snippets.

Bryan Braun bryanbraun

Block or report user

Report or block bryanbraun

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
bryanbraun / index.js
Last active May 23, 2019
Tic Tac Term
View index.js
// Tic Tac Term!
// A 2-player Tic Tac Toe game, played in the terminal
// (written in JavaScript 💪)
// Set up user prompt interface.
const rl = require("readline").createInterface({
input: process.stdin,
output: process.stdout
bryanbraun /
Last active Aug 9, 2017
Dayton Clean Coders - August 2017
bryanbraun / .gitlab-ci.yml
Created Jul 6, 2017
Example Gitlab CI Config for a Rails + Nginx application using Docker Compose
View .gitlab-ci.yml
# See how variables work, and a list of predefined ones:
# -
- vendor/ruby
bryanbraun / reset_hook_post_update_NAME.drush
Created Jun 19, 2017
A drush script for reseting post_update hooks. For more details, see
View reset_hook_post_update_NAME.drush
// <?php
// ^^^ For syntax highlighters only
// This is a drush shell script, designed to help debug and reset post_update
// hooks. For details, see:
$key_value = \Drupal::keyValue('post_update');
$update_list = $key_value->get('existing_updates');
bryanbraun /
Last active Aug 22, 2016
Useful Github Search Queries

Useful Github Search Queries


All Github projects, sorted by # of stars:>1&s=stars&type=Repositories

For Organizations

bryanbraun / testing.txt
Last active Jul 5, 2016
Explaining the Testing Ecosystem
View testing.txt
| Test Env. | Driver | Test Runner | Test Framework | Syntax | Assertions |
| Phantom | Poltergeist | Capybara | Ruby
| Chrome | Karma | Jasmine | JS
| Slimer | CasperJS | JS
bryanbraun / .travis.yml
Last active Mar 26, 2018
Minimal NPM setup for automated testing of your client-side JS library.
View .travis.yml
language: node_js
- "node"
- master
bryanbraun / config
Last active Mar 4, 2016
Checkout Github Pull Requests locally without adding remotes
View config
# Edit the .git/config file in your local repo like so:
# cd <path/to/project>
# vim .git/config
# (include the lines below)
[remote "origin"]
url =
fetch = +refs/heads/*:refs/remotes/origin/*
fetch = +refs/pull/*/head:refs/pull/origin/*
bryanbraun / make-ckeditor-image2-alt-text-required.patch
Created Nov 18, 2014
A patch to CKEditor's image2 plugin, which makes the alt text field required.
View make-ckeditor-image2-alt-text-required.patch
From f788a1a6c27be0fb421d2758492f9366b895ba20 Mon Sep 17 00:00:00 2001
From: Bryan Braun <>
Date: Tue, 18 Nov 2014 14:43:17 -0500
Subject: [PATCH] Make the alt-text field required (and add a class for styling
Signed-off-by: Bryan Braun <>
dialogs/image2.js | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
bryanbraun / Octokit_Sinatra_Example.rb
Last active Dec 21, 2017
This file is an example Sinatra app.rb file, showing github API Authentication and usage examples of Octokit.rb. For more context on setting up Sinatra to work with the Github API, see
View Octokit_Sinatra_Example.rb
# app.rb
require "sinatra"
require "sinatra/activerecord"
require 'rest-client'
require 'json'
require 'octokit'
require 'pp' # for pretty print debugging
# Needed for preserving github auth tokens across sessions.
You can’t perform that action at this time.