Skip to content

Instantly share code, notes, and snippets.

View joshuakarjala's full-sized avatar

Joshua Karjala-Svendsen joshuakarjala

View GitHub Profile
Verifying my Blockstack ID is secured with the address 163ZDKhjevLrcLPsAcGfoVWeASXVDhN8PH https://explorer.blockstack.org/address/163ZDKhjevLrcLPsAcGfoVWeASXVDhN8PH
@joshuakarjala
joshuakarjala / 0_reuse_code.js
Created June 20, 2017 07:51
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
<html>
<head>
<script src="https://unpkg.com/vue"></script>
</head>
<body>
<div id="app-4">
<ol>
<li v-for="todo in todos">
{{ todo.text }}
</li>
Verifying that "joshuakarjala.id" is my Blockstack ID. https://onename.com/joshuakarjala
var slackEvents = require('slack-events-listener')('<verificationToken>', onSlackEvent);
var bodyParser = require('body-parser');
var app = require('express')();
function onSlackEvent(event, cb) {
// do something. call cb with err if you want Slack to resend the message (your database might be down)
writeToDatabase(event, cb);
}
// /slack_events should match whatever webhook you set in Slack
### Keybase proof
I hereby claim:
* I am joshuakarjala on github.
* I am joshuakarjala (https://keybase.io/joshuakarjala) on keybase.
* I have a public key whose fingerprint is 7366 B4EC 95B7 28CB 04D5 6754 671A D291 4D03 28B7
To claim this, I am signing this object:
@joshuakarjala
joshuakarjala / gist:6876936fff22747efba0
Created March 13, 2015 13:29
apparently if you change the case in your require string you get a different object. Instead of a caseError
//apparently if you change the case in your require string you get a different object. Instead of a caseError
var g = require('getenv');
var G = require('getEnv');
var e = require('getenv');
g === G;
// returns false
g === e;
window.onload = function() {
document.querySelector('.dit-modal-overlay--transparent').remove();
};