Skip to content

Instantly share code, notes, and snippets.

View adamclerk's full-sized avatar

Adam Clark adamclerk

View GitHub Profile
https://docs.google.com/presentation/d/1nriEFsf_9KAbttNqFjmvHul4ZpjPvoG_KVzIkSo_v-g/edit?usp=sharing
@adamclerk
adamclerk / jvsp
Created February 8, 2024 00:06
jvsp
https://docs.google.com/presentation/d/1a-3Q6m_0MTy2pWEmGsUGlo8ScOGHmTeG7bxoci8miAA/edit?usp=sharing
(?<number>\d+) (?<rd_and_city>.+), (?<state>\w{2}) (?<zip>\d{5}) (?<country>.+)
@adamclerk
adamclerk / drive links
Created March 30, 2017 14:39
Isaiah Link
@adamclerk
adamclerk / coverage.sh
Created November 9, 2015 04:23
gb coverage script
#!/bin/sh
# Generate test coverage statistics for Go packages.
#
# Works around the fact that `go test -coverprofile` currently does not work
# with multiple packages, see https://code.google.com/p/go/issues/detail?id=6909
#
# Usage: script/coverage [--html|--coveralls]
#
# --html Additionally create HTML report and open it in browser
# --coveralls Push coverage statistics to coveralls.io
@adamclerk
adamclerk / _service.md
Last active August 29, 2015 14:16 — forked from naholyr/_service.md

Sample service script for debianoids

Look at LSB init scripts for more information.

Usage

Copy to /etc/init.d:

# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
@adamclerk
adamclerk / gist:10752450
Created April 15, 2014 17:51
RQA Interview
#!/usr/bin/env node
var _ = require('underscore');
var main = function (input) {
input = _.sortBy(input);
var result = [];
for(var i = 0; i < input.length; i++){
var num = input[i];
for(var j = i+1; j < input.length; j++){
# http://www.mono-project.com/Compiling_Mono_on_OSX
require 'formula'
class Mono < Formula
url 'http://download.mono-project.com/sources/mono/mono-3.0.12.tar.bz2'
sha1 'be46f28e16721e9b975ba17ae02b021ddcc7406e'
homepage 'http://www.mono-project.com/'
# http://www.mono-project.com/Compiling_Mono_on_OSX
require 'formula'
class Mono < Formula
url 'http://download.mono-project.com/sources/mono/mono-3.0.12.tar.bz2'
sha1 'e2187f80366fcd65c55a1ab946f8d3b39e81be77'
#url 'http://download.mono-project.com/sources/mono/mono-2.10.9.tar.bz2'
#sha1 '1a6e8c5a0c3d88d87982259aa04402e028a283de'
@adamclerk
adamclerk / mono.rb
Last active December 19, 2015 17:08 — forked from shtirlic/mono.rb
# http://www.mono-project.com/Compiling_Mono_on_OSX
require 'formula'
class Mono < Formula
url 'http://download.mono-project.com/sources/mono/mono-3.0.12.tar.bz2'
sha1 'e2187f80366fcd65c55a1ab946f8d3b39e81be77'
#url 'http://download.mono-project.com/sources/mono/mono-2.10.9.tar.bz2'
#sha1 '1a6e8c5a0c3d88d87982259aa04402e028a283de'