Skip to content

Instantly share code, notes, and snippets.

View MarkBorcherding's full-sized avatar

Mark Borcherding MarkBorcherding

  • World Wide Technology
  • St Louis, MO
View GitHub Profile

Keybase proof

I hereby claim:

  • I am markborcherding on github.
  • I am markborcherding (https://keybase.io/markborcherding) on keybase.
  • I have a public key ASCUhOrDBf3iR3lnqi1dWgvPgdbEEa56BSSMGIO4PguinQo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am markborcherding on github.
  • I am markborcherding (https://keybase.io/markborcherding) on keybase.
  • I have a public key ASCUhOrDBf3iR3lnqi1dWgvPgdbEEa56BSSMGIO4PguinQo

To claim this, I am signing this object:

@MarkBorcherding
MarkBorcherding / example.bats
Last active December 20, 2015 07:49
A cheatsheet for bats test assertions
@test "A specific user exists" {
grep "homer.simpson" /etc/passwd
}
@test "A specific process is running" {
ps aux | grep -v grep | grep nginx
}
@test "A command exists in the path" {
which vim
switch(true) {
case something():
foo();
break;
case something():
foo();
break;
case something():
foo();
break;
" Gist setup
let g:gist_clip_command = 'pbcopy'
let g:gist_detect_filetype = 1
<?php
/**
* Register the Episode class
*/
elgg_register_event_handler('init', 'system', 'EvokeEpisodePlugin::init');
elgg_register_event_handler('init', 'system', 'EvokeMissionPlugin::init');
@MarkBorcherding
MarkBorcherding / rspec-syntax-cheat-sheet.rb
Created April 18, 2012 20:29 — forked from dnagir/rspec-syntax-cheat-sheet.rb
RSpec 2 syntax cheat sheet by example
# RSpec 2.0 syntax Cheet Sheet by http://ApproachE.com
# defining spec within a module will automatically pick Player::MovieList as a 'subject' (see below)
module Player
describe MovieList, "with optional description" do
it "is pending example, so that you can write ones quickly"
it "is already working example that we want to suspend from failing temporarily" do
pending("working on another feature that temporarily breaks this one")
fs = require 'fs'
_ = require 'underscore'
users = [3,5,6]
class Graph
constructor: (text) ->
states = text.split '\n'
@states = {}
@s = []
fs = require 'fs'
_ = require 'underscore'
users = [3,5,6]
class Graph
constructor: (text) ->
states = text.split '\n'
@states = {}
@taken = {}
@MarkBorcherding
MarkBorcherding / url2png-example.php
Created November 16, 2011 20:37 — forked from url2png/url2png-example-c-sharp
Example usage of url2png.com automated screenshot API
/* ## # #
# # #######
# # #
# #######
# # # #
# */
private static string url2png_apikey { get { return "<APIKEY>"; } }
private static string url2png_secret { get { return "<SECRET>"; } }