Skip to content

Instantly share code, notes, and snippets.

View dominictarr's full-sized avatar

Dominic Tarr dominictarr

View GitHub Profile

April

08: Melbourne

17: Melbourne -> Frankfurt

head towards Budapest.

23: speaking at budapest node.js

24,25: speaking at craftconf.

@dominictarr
dominictarr / keybase.md
Last active August 29, 2015 14:00
keybase.md

Keybase proof

I hereby claim:

  • I am dominictarr on github.
  • I am dominic (https://keybase.io/dominic) on keybase.
  • I have a public key whose fingerprint is 652D 910D EC2B B18C 1E7B 2A00 296B 4A96 FC30 81C4

To claim this, I am signing this object:

@dominictarr
dominictarr / level-magic.js
Last active August 29, 2015 14:01
Automagically join sql tables loaded into level
/*
Each table is put into it's own sublevel.
It's assumed that every table's primary key is ID.
and a foreign key is always {table}ID
If there isn't A table with that name, assume it's a self link.
(like ManagerID points back to the Employee table)
*/
//Automagically join two tables that have conventionally named fields.
// magic (nameOfLeftTable, nameOfRightTable)
@dominictarr
dominictarr / schema.js
Created August 6, 2014 22:19
git's secure datastructure described by a schema thingee
//top level is types, key:values are the structure that object must have,
//and the types of the values.
//Link means the hash of an object of the named type.
//Plus and Star define sets. And are just like regular expression + and *
//you could also have ? (Maybe) but it's not necessary to describe git.
{
COMMIT: {
//a cypherlink to a commit object
@dominictarr
dominictarr / places_with_songs.md
Created August 7, 2014 18:21
good places to go

So you want to help with secure-scuttlebutt?

secure-scuttlebutt is a do-ocracy. that means ruled by doers. If you want to help, you need to figure out what you need to do and then do it. There are no managers. The best way to do this is probably to discuss with other contributors. for this use issues and irc (find us in #stackvm on irc)

Make a pull request, and once there is a consensus amongst the contributors a maintainer can merge. (A maintainer is just a role - they just merge patches and apply semver and then release. a maintainer does not have special powers, just special responsibilities. They do not cast a breaking vote,

@dominictarr
dominictarr / error.tap
Created October 3, 2014 16:40
node test/coffee_bin.js
TAP version 13
# compiling coffee with -c
not ok 1 should be equal
---
file: /home/dominic/c/browserify/test/coffee_bin.js
line: 23
column: 11
stack:
- |
getCaller (/home/dominic/c/browserify/node_modules/tap/lib/tap-assert.js:418:17)
ubuntu@ip-172-30-0-124|14:28|~ $ service megafunnel-view start
start: Rejected send message, 1 matched rules; type="method_call", sender=":1.12" (uid=1000 pid=5133 comm="start megafunnel-view ") interface="com.ubuntu.Upstart0_6.Job" member="Start" error name="(unset)" requested_reply="0" destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init ")
@dominictarr
dominictarr / perms.js
Last active August 29, 2015 14:17
perms for bittodo
{
allow: ['add', 'query'], deny: [],
rules: {
add: {
//allow the call of this method only if the argument is accepted by this function.
call: function (value) {
return (value.type === 'task' || value.type === '_task')
},
query: {
//only allow calls matching this.
@dominictarr
dominictarr / awkward.txt
Last active August 29, 2015 14:23
many awkward yet grammatically valid sentences
There are so many gramatically valid but awkward english sentences.
There are many awkward but gramatically valid english sentences.
There exist many english sentences which are gramatically valid, but awkward to read.
There are many awkward english sentences which are, never the less, gramatically valid.
The english language contains many awkward-to-read sentences that are within the set of gramatically valid sentences.
The set of gramatically valid english sentences contains many that are quite awkward.
Many gramatically valid english sentences are awkward.
The grammatic vallidity of a given engilsh sentence does not preclude it's awkwardness.
There are many awkward, gramatically valid english sentences.
Many awkward sentences are gramatically valid english.