Skip to content

Instantly share code, notes, and snippets.

View gist:0ae7c893ffa58600959a4077633de203
{
// JSHint Default Configuration File (as on JSHint website)
// See http://jshint.com/docs/ for more details
"maxerr" : 20, // {int} Maximum error before stopping
// Enforcing
"bitwise" : false, // true: Prohibit bitwise operators (&, |, ^, etc.)
"camelcase" : false, // true: Identifiers must be in camelCase
"curly" : false, // true: Require {} for every new block or scope
View gist:66f737c3b13646e3a81141cf6aa3b117
function generateCodePackagePromise() {
var base64Url = function(buffer) {
/*\
|*|
|*| Base64 / binary data / UTF-8 strings utilities (#1)
|*|
|*| https://developer.mozilla.org/en-US/docs/Web/API/WindowBase64/Base64_encoding_and_decoding
|*|
|*| Author: madmurphy
|*|
View service.libsonnet
function(namespace, name, selector, port, internal_port) {
kind: 'Service',
apiVersion: 'v1',
metadata: {
name: name,
namespace: namespace,
},
spec: {
selector: {
app: selector,
@robotarmy
robotarmy / delete_labels.rb
Created Mar 30, 2012 — forked from visnup/import_issues.rb
hacky script to import pivotal tracker csv into github issues
View delete_labels.rb
#encoding:UTF-8
#!/usr/bin/env ruby
require 'rubygems'
require 'FasterCSV'
require 'httparty'
require 'json'
require 'highline/import'
def get_input(prompt="Enter >",show = true)
@robotarmy
robotarmy / Gemfile
Created Mar 23, 2012
Adding Rake to Sinatra with Rspec
View Gemfile
gem 'sinatra'
group :development,:test do
gem 'rspec'
gem 'rack-test'
end
@robotarmy
robotarmy / models.rs
Created May 17, 2018
attempting to create a new type (not an alias) so that the compiler will check the arguments that i'm passing in for two different fields that are implemented in the database as the same type.
View models.rs
extern crate uuid;
extern crate chrono;
extern crate bigdecimal;
extern crate num_bigint;
extern crate num_integer;
extern crate num_traits;
use schema::ledger_entries;
@robotarmy
robotarmy / Blog.creole
Created May 15, 2012
Building Small Web Services with a Heroku and Unicorn Sinatra Template Project
View Blog.creole

Using Sinatra Unicorn and Heroku (CEDAR stack) Together!

I have been asked

  • "How do I get started with Unicorn and Heroku?"
  • "How can I made a remote HTTP webhook?"
  • "How can I make a simple web service?" ,
  • "How can I get started with a free ruby hosting evironment?"

I want to take a moment to answer a few of these questions in a small package I have

View Test.Numberish.elm
module Test.Numberish exposing(..)
import Test exposing (..)
import Test.Runner.Html exposing(..)
import Expect
main: TestProgram
main = run all
type alias Num = { string: String, float: Float, int: Int }
View Readme.md

Keybase proof

I hereby claim:

  • I am robotarmy on github.
  • I am ram9 (https://keybase.io/ram9) on keybase.
  • I have a public key whose fingerprint is E075 621D 153E F6E7 E2AB 810A DF96 CD36 86AA 8F99

To claim this, I am signing this object:

View keybase.md

Keybase proof

I hereby claim:

  • I am robotarmy on github.
  • I am gogocurtis (https://keybase.io/gogocurtis) on keybase.
  • I have a public key whose fingerprint is 2E72 1F2A 3136 B1A2 D6AF A477 453A A7DA 3951 7240

To claim this, I am signing this object: