Skip to content

Instantly share code, notes, and snippets.

View hookercookerman's full-sized avatar
💭
I am back

Richard Hooker hookercookerman

💭
I am back
View GitHub Profile
@hookercookerman
hookercookerman / cicd-pipelines.ts
Created December 20, 2019 15:16 — forked from paulswail/cicd-pipelines.ts
Create CICD pipelines for serverless services using AWS CDK
// /stacks/cicd-pipelines.ts
// CDK app which creates a stack using a set of service definitions
import 'source-map-support/register';
import { App } from '@aws-cdk/cdk';
import { ServiceCicdPipelines } from '../lib/cicd/pipelines';
import { deploymentTargetAccounts } from './config';
import services from './services';
const app = new App({
@hookercookerman
hookercookerman / expectations-autotest.el
Last active September 4, 2015 14:42
Expectation Autotest Emacs
(setq clj-autotest-run-expectations
"(do
(require 'clojure.tools.namespace.repl)
(require 'expectations)
(reset! expectations/run-tests-on-shutdown false)
(let [all (->> (all-ns)
(mapcat (comp vals ns-interns)))
previously-ran-tests (filter (comp :expectations/run meta) all)]
(doseq [test previously-ran-tests]
(alter-meta! test dissoc :expectations/run :status)))
@hookercookerman
hookercookerman / Sinatra Can Haz Class.rb
Last active August 29, 2015 14:08
Ruby Classes for Sinatra Endpoints
module SinatraCanHazClass
extend ActiveSupport::Concern
def initialize(app)
@app = app
end
def method_missing(method_name, *args, &block)
@app.respond_to?(method_name) ? @app.__send__(method_name, *args, &block) : super
end
@hookercookerman
hookercookerman / Bookmarks.html
Last active January 4, 2016 05:59
Bookmark Import For Uninternationalised String Finder Bookmarklets
<!DOCTYPE NETSCAPE-Bookmark-file-1>
<!-- This is an automatically generated file.
It will be read and overwritten.
DO NOT EDIT! -->
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<TITLE>Bookmarks</TITLE>
<H1>Bookmarks</H1>
<DL><p>
<DT><H3 ADD_DATE="1360313897" LAST_MODIFIED="1390476683" PERSONAL_TOOLBAR_FOLDER="true">Bookmarks Bar</H3>
<DL><p>
@hookercookerman
hookercookerman / restkit.rb
Created July 31, 2012 10:36
Working RestKit Mapping RubyMotion
class Photo
attr_accessor :max_id_str
URL = ""
def self.load
manager.loadObjectsAtResourcePath URL, objectMapping:mapping, delegate:self
end
def self.manager
@hookercookerman
hookercookerman / beans
Created September 20, 2011 13:03
class of an instance attributes
class Animal
constructor: (@name) ->
move: (meters) ->
console.log @name + " moved #{meters}m."
class Snake extends Animal
@beans: ->
console.log("I eat beans")