Skip to content

Instantly share code, notes, and snippets.

View selfsame's full-sized avatar

Joseph Parker selfsame

  • Clover Food Lab
View GitHub Profile
@selfsame
selfsame / om.next_design_question.md
Last active December 7, 2017 21:09
om next design question

how should I structure my component/queries?

My application interface is a set of generic panels that can be configured to display components via a :view prop. The views correspond to components that have a top level query. There could be 0-n instances of a component.

The panels themselves are normalized in the app-state:

{:panels/by-id {
@selfsame
selfsame / AoC.md
Last active December 7, 2017 16:55

Day 1

{+/×2=\2(()[1]) , (1),''} {,[1]} {-48} ⎕UCS

{+/×=()(()÷2)(,)} {-48} ⎕UCS

Day 2

(def words (string/split (slurp "/usr/share/dict/words") #"\n"))
(def words-trie
(reduce
(fn [trie word]
(assoc-in trie (vec (cons (count word) word)) {}))
{} words))
(defn keys-in [tree]
(if (map? tree)
// method line 5890
.method public hidebysig
instance default class Godot.Node GetNode (class Godot.NodePath path) cil managed
{
.custom instance void class Godot.GodotMethodAttribute::'.ctor'(string) = (01 00 08 67 65 74 5F 6E 6F 64 65 00 00 ) // ...get_node..
// Method begins at RVA 0xbae4
// Code size 24 (0x18)
.maxstack 8
IL_0000: ldarg.0
"dungeon-planet" by Joseph Parker
Chapter 1 - Rules
Section 1(a) - Substance
var get_json = function(url, cb){
var xmlhttp = new XMLHttpRequest()
xmlhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
var res = JSON.parse(this.responseText)
cb(res)}}
xmlhttp.open("GET", url, true)
xmlhttp.send()}
var make_element = function(tag, opts){

issues with signing latest api

  • seems to work if you use apksigner instead

/opt/android-sdk/build-tools/25.0.2/apksigner sign --ks --out joe.apk ~/unity/selfsame.keystore vanilla.apk-originalt joe.apk

@selfsame
selfsame / arcadia-magic.md
Created August 2, 2017 01:40
Setting up MAGIC in Arcadia
System.ArgumentNullException: Argument cannot be null.
Parameter name: address
at System.Net.WebClient.DownloadString (string) <IL 0x00010, 0x000a2>
at (wrapper remoting-invoke-with-check) System.Net.WebClient.DownloadString (string) <IL 0x00033, 0x00136>
at (wrapper dynamic-method) object.CallSite.Target (System.Runtime.CompilerServices.Closure,System.Runtime.CompilerServices.CallSite,object,object) <IL 0x00048, 0x00299>
at (wrapper dynamic-method) object.CallSite.Target (System.Runtime.CompilerServices.Closure,System.Runtime.CompilerServices.CallSite,object,object) <IL 0x00137, 0x0096d>
at arcadia/packages$download_string__39738.__interop_DownloadString39740 (object,object) <IL 0x0000f, 0x00089>
at arcadia/packages$download_string__39738.invokeStatic (object) <IL 0x00008, 0x000e0>
at arcadia/packages$download_string__39738.invoke (object) <IL 0x00006, 0x00085>
at arcadia/packages$dependencies__39849.invokeStatic (object) <IL 0x00112, 0x00e19>
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<canvas id="target" width="640" height="480"></canvas>
</body>
<script type="text/javascript">