Skip to content

Instantly share code, notes, and snippets.

View adamclerk's full-sized avatar

Adam Clark adamclerk

View GitHub Profile
@adamclerk
adamclerk / donuts.json
Created June 10, 2012 15:11
Sample Swagger Resource Files
{
"apiVersion": "0.0.4542.22887",
"swaggerVersion": "1.0",
"basePath": "http://local.api.com/api",
"resourcePath": "/donuts",
"apis": [
{
"path": "/donuts/{page}/{pagesize}",
"description": "Get donuts by page",
"operations": [
@adamclerk
adamclerk / _.md
Created October 3, 2012 21:56 — forked from anonymous/inlet.js
just another inlet to tributary

No Previous Gist

@adamclerk
adamclerk / _.md
Created October 3, 2012 21:57 — forked from anonymous/inlet.js
just another inlet to tributary

No Previous Gist

@adamclerk
adamclerk / _.md
Created October 4, 2012 18:50
just another inlet to tributary

No parent Inlet

#!/bin/bash
function create_dir {
if [ ! -d $1 ];
then
mkdir $1
fi
}
echo "create sublime project..."
@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'
# 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'
# 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/'
@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++){
@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)