I hereby claim:
- I am dydx on github.
- I am jpsandlin (https://keybase.io/jpsandlin) on keybase.
- I have a public key whose fingerprint is FDE4 98CC 0023 D84D 4FB0 4A57 2409 F26A BD50 5DEF
To claim this, I am signing this object:
#!/bin/bash | |
echo "Terminating mongodb..." | |
kill $(pgrep mongod) |
function cipher(message, key) { | |
return message.split('') | |
.map(function(element) { | |
return (element.charCodeAt(0) ^ key); | |
}) | |
.map(function(element) { | |
return String.fromCharCode(element) | |
}) | |
.join(''); | |
} |
Iota := Object clone do ( | |
stack := nil | |
output := nil | |
init := method ( | |
stack = List clone | |
output = List clone | |
) | |
squareBrackets := method ( |
import subprocess | |
def set(key, val): | |
f = open(key, 'w') | |
f.write(val) | |
f.close() | |
def get(key): | |
return subprocess.check_output(["cat", key]) |
module.exports = { | |
bitArray: Array.apply(null, new Array(100)).map(Number.prototype.valueOf, 0), | |
hash: function(key) { | |
return key.split('') | |
.map(function(element) { | |
return element.charCodeAt(0); | |
}) | |
.reduce(function(a, b) { | |
return a + b; | |
}); |
I hereby claim:
To claim this, I am signing this object:
// so this is a thing that was successfully used to "fix" a headers race condition in an Express app. | |
// Jesus christ this is stupid | |
function(req, res, next) { | |
var originalSend = res.send | |
res.send = function() { | |
if (this.headersSent()) return | |
originalSend.apply(this, arguments) | |
} | |
} |
<?php |
$(document).ready(function() { | |
$.getJSON('http://192.168.3.193:8000/api/all', function(data) { | |
data.forEach(function(data) { | |
console.log(data); | |
$("#work-list").append( | |
"<li><a href='/admin/work-order.html#"+data._id+"'>"+data.properties.name+"</a></li>" | |
); | |
}) | |
}) | |
}); |
var work_order_id = $(location).attr('hash').substring(1); | |
$.getJSON('http://192.168.3.193:8000/api/' + work_order_id, function(data) { | |
$('#work-info').append( | |
'<li style="text-decoration: none;">' + JSON.stringify(data[0].properties.name) + '</li>' | |
) | |
$('#map').attr('src', '/admin/map-test.html#' + work_order_id); | |
}); |