Skip to content

Instantly share code, notes, and snippets.

@robotarmy
robotarmy / delete_labels.rb
Created March 30, 2012 23:13 — forked from visnup/import_issues.rb
hacky script to import pivotal tracker csv into github issues
#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)
{
// 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
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
|*|
function(namespace, name, selector, port, internal_port) {
kind: 'Service',
apiVersion: 'v1',
metadata: {
name: name,
namespace: namespace,
},
spec: {
selector: {
app: selector,
@robotarmy
robotarmy / Gemfile
Created March 23, 2012 23:55
Adding Rake to Sinatra with Rspec
gem 'sinatra'
group :development,:test do
gem 'rspec'
gem 'rack-test'
end
@robotarmy
robotarmy / models.rs
Created May 17, 2018 05:57
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.
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 18:36
Building Small Web Services with a Heroku and Unicorn Sinatra Template Project

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

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 }

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:

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: