Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Software-inating

David Dahl daviddahl

💭
Software-inating
View GitHub Profile
View keys.signature
BEGIN MESSAGE.
onlTWNVozsLymWV RusFOFCXYSaeHcG pj3qNPGTMVBtkpu kR1fPHHgY6C6Raj
8aBoK2QeDQdiUZ7 VmBAiHEfVjlTCKq 6Xr2MZHgg6tEz0Y bLnEJuMBx1wf5hy
DSIif1WwSSZAOpH 8iHwhdndN5Ltngj yneDKSO7cKRMBEp EtNQCd5T2GvlwVo
GZKqsvzHz2XqtQ8 iLeI3RdXa75Ip1I JQmqm29HFxl.
END MESSAGE.
View vc-proof.json
{
"@context": [
"https://w3.org/2018/credentials/v1"
],
"id": "48d90e21-ec0b-11e8-8e68-cba66f95bee4",
"proof": {
"issuanceDate": "2018-11-19T14:56:24.577Z",
"creator": "QmRuMAEaUQP6vNBXSCa3FQqVk48t65zA79RsdP5n1sDQg3",
"handle": "daviddahl",
"signatureValue": "qqHt5dfmRMO6TnZXZ9n0D+g1QHmjrmFYCkdsMPK5ceXxWfLvCP2G/MS/LzrVtjRVjEKRgSbzWjvBTtqnZCMLt3R73d+r0XmX/z1aLhaPl8CGs3lTahygC5pabvcY26uyhBPgEKOiY6v6nFkCnvBGoGeKy8dHBKxhQnuVlAIuEe9TmGYkt3bZEtxtOgfUjGyTovtERLbb5V6x17wqJSz1u2l6WK14LWgmYxFpk/QryyR4IIiwtXC6mvyPDjGO6pvFpSC5tC8ZMJmZ1X0h/9iKyguqHMvylAApjVSuH+pWw+dp0Vv3oAwm0hs6Fki0mke3tj/D5HiSvclM8jR0IWVkkA==",
View proof.json
{
"handle": "daviddahl",
"ipfsId": "QmRuMAEaUQP6vNBXSCa3FQqVk48t65zA79RsdP5n1sDQg3",
"proof": {
"message": {
"statement": "I am autonomica on reddit.com",
"username": "autonomica",
"service": "reddit.com"
},
"timestamp": 1541472297575,
@daviddahl
daviddahl / proof.json
Created Oct 29, 2018
autonomica - proof
View proof.json
{
"handle": "daviddahl",
"ipfsId": "QmRuMAEaUQP6vNBXSCa3FQqVk48t65zA79RsdP5n1sDQg3",
"proof": {
"message": {
"statement": "I am daviddahl on github.com",
"username": "daviddahl",
"service": "github.com"
},
"timestamp": 1540844642490,
@daviddahl
daviddahl / proof.json
Created Oct 29, 2018
autonomic test proof
View proof.json
{
"handle": "daviddahl",
"ipfsId": "QmRuMAEaUQP6vNBXSCa3FQqVk48t65zA79RsdP5n1sDQg3",
"proof": {
"message": {
"statement": "I am daviddahl on github.com",
"username": "daviddahl",
"service": "github.com"
},
"timestamp": 1540813976725,
View proof.json
{
"handle": "daviddahl",
"ipfsId": "QmRuMAEaUQP6vNBXSCa3FQqVk48t65zA79RsdP5n1sDQg3",
"proof": {
"message": {
"statement": "I am daviddahl on github.com",
"username": "daviddahl",
"service": "github.com"
},
"timestamp": 1540813278054,
@daviddahl
daviddahl / proof.json
Created Oct 28, 2018
autonomical proof
View proof.json
{
"handle": "daviddahl",
"ipfsId": "QmRuMAEaUQP6vNBXSCa3FQqVk48t65zA79RsdP5n1sDQg3",
"proof": {
"message": {
"statement": "I am daviddahl on github.com",
"username": "daviddahl",
"service": "github.com"
},
"timestamp": 1540685623227,
View github-proof.json
{
"handle": "daviddahl",
"ipfsId": "QmRuMAEaUQP6vNBXSCa3FQqVk48t65zA79RsdP5n1sDQg3",
"proof": {
"message": {
"statement": "I am daviddahl on github.com",
"username": "daviddahl",
"service": "github.com"
},
"timestamp": 1539539023189,
@daviddahl
daviddahl / array-sort.js
Created Sep 28, 2017
Implement array sort using splice and for
View array-sort.js
// Using only the Array method Array#splice and the attribute Array#length, please create an array
// that is a unique sorted list given the below two lists.
var assert = require('assert');
var run_tests = function() {
var list1 = [47, 2, 14, 59, 77, 13, 33, 24, 66, 72, 31];
var list2 = [63, 95, 33, 36, 4, 30, 51, 86, 2, 56, 37];
var expected = [
View last_update.sql
CREATE OR REPLACE VIEW pds_retailer_inventory_latest_vu AS
SELECT a.id,
a.created,
a.updated,
greatest(a.created, a.updated) as last_updated,
(SELECT a.updated WHERE a.retailer_inventory_location_id = l.id ORDER BY a.updated DESC LIMIT 1) as last_inventory_run,
a.sku,
a.available_qty,
a.retailer_inventory_location_id,
l.locator_id,
You can’t perform that action at this time.