Skip to content

Instantly share code, notes, and snippets.

View lambdahands's full-sized avatar
🔮
~*srcery*~

Amani lambdahands

🔮
~*srcery*~
View GitHub Profile
name description collection artifactUri displayUri attribute.foo attribute.bar
Hello testing csv upload KT1CYdveF8chCJ7Tyk6ip2ce9m6b1KPafc4G ipfs://QmZ4qom47pEy9Wv4FKStDfTgFegB9RqtMWU6UV6pWBMM5e ipfs://QmZ4qom47pEy9Wv4FKStDfTgFegB9RqtMWU6UV6pWBMM5e hello world
Hello2 testing (another) csv upload KT1CYdveF8chCJ7Tyk6ip2ce9m6b1KPafc4G ipfs://QmZ4qom47pEy9Wv4FKStDfTgFegB9RqtMWU6UV6pWBMM5e ipfs://QmZ4qom47pEy9Wv4FKStDfTgFegB9RqtMWU6UV6pWBMM5e hello world
### Keybase proof
I hereby claim:
* I am lambdahands on github.
* I am lambdahands (https://keybase.io/lambdahands) on keybase.
* I have a public key ASCd2qx2yxQ0BTS86C4_I0TgynzVtUBNqahQMGLTyMB8jQo
To claim this, I am signing this object:
Menubar
Select New -> New
Select Recent -> Recent
Select Other -> Recent
New
Recent
Other
Another
@lambdahands
lambdahands / _readme.md
Last active May 21, 2018 22:31
Clojure + Java

Run this script

Call this in your terminal:

$ clj -Sdeps '{:deps {hello {:git/url "https://gist.github.com/lambdahands/949f69a25c25cb4fd953e99942335503" :sha "02b5ca5c86a800829c6f4aeaf0f83ed016cef49c"}}}' -m hello
;; # Maria for Experts
;; This is a short tour of abstractions we've made in the process of building Maria, which are also available while using the system. It is meant for people with experience using functional programming languages who already know how to evaluate forms in Maria. If you're a beginner to Maria or to programming in general, I recommend starting [here](https://www.maria.cloud/intro).
;; (For the impatient, Command-Enter — Control-Enter on a PC — within a code block with evaluate the code before the cursor.)
;; ## Notebook interface
;;
;; In the notebook tradition exemplified by iPython Notebooks, one has a mix of prose and code with the ability to visualize the results of evaluating a particular piece of code.
;;
(ns sql-formatter.core)
(def phrases
{:begin-clauses #{"left" "right" "inner" "outer" "group" "order"}
:end-clauses #{"where" "set" "having" "join" "from" "onto" "union"}
:logical #{"and" "or" "when" "else" "end"}
:quantifiers #{"in" "all" "exists" "some" "any"}
:dml #{"insert" "update" "delete"}
:misc #{"select" "on"}})
@lambdahands
lambdahands / psuedo_code.clj
Last active August 29, 2017 19:03
Clojure behavioral dispatch psuedo-code
(defprotocol ISpeak
(hello [this]))
(defbehavior ::philip
ISpeak
(hello [_]
(println "Hello, my name is Philip!")))
(defdispatch Person [this]
[(:name this) (:age this)])
(ns nightcoders.fruit-checkboxes
(:require [reagent.core :as r]))
;; Initial State
(def choices [:apple :apricot :banana :mango :orange :plum])
(def max-choices 2)
(def state (r/atom []))
@lambdahands
lambdahands / error.clj
Last active December 20, 2016 04:25
Datomic Client Errors
(require '[clojure.core.async :refer [<!!]]
'[datomic.client :as client])
; Connection config incomplete for brevity
(def conn (<!! (client/connect {:db-name "mydb"})))
(<!! (client/pull (client/db conn) {:selector [:db/doc]}))
; Produces data as error message.
; Value on path [:datomic.client/http-error :cause] is a spec explaination:
{:cognitect.anomalies/category :cognitect.anomalies/incorrect
@lambdahands
lambdahands / _readme.md
Created September 28, 2015 17:09
FlowType and CSS Modules

Huh?

So basically FlowType doesn't know about CSS Modules, a really handy way of dealing with the plagues of CSS in codebases (global variables and dependency wackiness mainly).

What WebPack allows us to do is "require" CSS files and use their class names:

import styles from "my_styles.css";
import React from "react";