Skip to content

Instantly share code, notes, and snippets.

Avatar

Curtis J Schofield robotarmy

View GitHub Profile
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 / 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;
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:

View gist:ad6d13fcf76f97ab35a82262667896b9
defmodule TypeiTest do
use ExUnit.Case
doctest Typei
# declare type that is made up of other types
@type payment :: %Payment{ # Payment is a ...? Record?? Struct??)
invalid_at :: DateTime.t, # DateTime specifically tied to ... ? Module??
admin_removed_at :: DateTime.t,
removed_at :: DateTime.t,
ready_at :: DateTime.t,
@robotarmy
robotarmy / 0x140
Last active Aug 29, 2015
0x140 CAN-ID
View 0x140
{"packet": {"status":"3","channel":"Bus 1","length":"8","id":"140","timestamp":"85089","payload":["0","C","F6","42","0","0","6","1"]}}
{"packet": {"status":"3","channel":"Bus 1","length":"8","id":"140","timestamp":"85107","payload":["0","E","F6","42","0","0","7","1"]}}
{"packet": {"status":"3","channel":"Bus 1","length":"8","id":"140","timestamp":"85148","payload":["0","2","EC","42","0","0","6","1"]}}
{"packet": {"status":"3","channel":"Bus 1","length":"8","id":"140","timestamp":"85189","payload":["0","6","F0","42","0","0","6","1"]}}
{"packet": {"status":"3","channel":"Bus 1","length":"8","id":"140","timestamp":"85208","payload":["0","8","E4","42","0","0","7","1"]}}
{"packet": {"status":"3","channel":"Bus 1","length":"8","id":"140","timestamp":"85249","payload":["0","C","EC","42","0","0","7","1"]}}
{"packet": {"status":"3","channel":"Bus 1","length":"8","id":"140","timestamp":"85288","payload":["0","0","E9","42","0","0","6","81"]}}
{"packet": {"status":"3","channel":"Bus 1","length":"8","id":"140","timestamp"
View gist:3a229ac5c739f58925d0
-module(sender_sup).
-behaviour(supervisor).
-include("../deps/amqp_client-3.3.5/include/amqp_client.hrl").
-export([sending_loop/3,start_sending/0]).
-export([start_link/0]).
-export([init/1]).