Skip to content

Instantly share code, notes, and snippets.

@singledigit
singledigit / cognito.yaml
Last active August 14, 2024 09:14
Create a Cognito Authentication Backend via CloudFormation
AWSTemplateFormatVersion: '2010-09-09'
Description: Cognito Stack
Parameters:
AuthName:
Type: String
Description: Unique Auth Name for Cognito Resources
Resources:
# Creates a role that allows Cognito to send SNS messages
SNSRole:
@noahlz
noahlz / datomic-first-steps.clj
Created July 17, 2012 21:24
First steps with Datomic
;; adopted from http://www.datomic.com/company/resources/getting-started
;; Clojure 1.4.0
;; user=>
(use '[datomic.api :only [q db] :as d])
;;=> nil
;; user=>
(doc d/q)
;; -------------------------
@jmorton
jmorton / enscoped.rb
Created March 28, 2011 19:25
Helper method for building a named scope from a list of scope names
module Enscoped
def self.included(base)
base.extend(ClassMethods)
end
module ClassMethods
# Create one named scope from many named scopes.
#