Skip to content

Instantly share code, notes, and snippets.

View ThomasMeier's full-sized avatar

Thomas Meier ThomasMeier

View GitHub Profile
;; Database
(r/atom db {:dragging? false
:pos-x 0
:pod-y 0
:select-area-templates
[[:input.text-template
{:draggable true
:index 0
:drag-start handle-drag-start
:drag-end handle-drag-end}]]
// state for entire app set up here
const state = {
user: {first: '', last: '', age: '', address: '', state: ''}
otherstuff: []
}
// a component somewhere
const myComponent = () => {
return (
<div>
@ThomasMeier
ThomasMeier / IsReady.py
Created April 19, 2019 04:08
Sketching a test for readiness
trusted_node_ips = ["http://17.146.74.122:8088/v2/status", "http://98.444.14.152/v2/status", "http://54.555.14.142/v2/status"]
new_node = "http://67.146.66.122:8088/v2/status"
trusted_responses = []
for trusted_node_ip in trusted_node_ips:
resp = requests.get(trusted_node_ip)
trusted_responses.append(resp.json())
new_node_resp = requests.get(new_node)

Clojure is for Aristotelians

I was reading ["Clojure is for Type B Personalities"][2] and it sparked some thoughts I had about the intersection of western philosophy and programming.

One could say Mathematics is an extension of Epistemology. And all theory about computability are an extension of mathematics. I reckon how one thinks about computability and how one writes computable functions are a reflection of a person's natural epistemological tendencies. This is going to be just as unscientific as ["Clojure is for Type B Personalities"][2], but hopefully another

function generators ( group, operation, groupMod) {
var generatorList = [];
for ( var element in group ) {
var elementCycle = [];
for (var i = 1; i <= groupMod; i++) {