This is a table | testing |
---|---|
Oh hi there | blah |
View expo-firestore-persistence-hack.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
expo-firestore-persistence-hack | |
A fragile weaving of various modules together to convince the Firestore | |
web SDK to use persistence in an un-ejected Expo app. | |
To use, first: | |
``` | |
$ expo install expo-sqlite |
View useFirebaseUpdater.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useState, useRef } from "react"; | |
import { useDocument } from "react-firebase-hooks/firestore"; | |
import throttle from "lodash/throttle"; | |
// Hook that gives you an updater function that will do throttled | |
// updates to a firebase document, and provide back to you views of | |
// the updated data (before it has persisted). | |
// | |
// arguments: a Document ref, and time in ms to throttle | |
// returns an object with following fields: |
View scroll.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var setupLTIScrollRequest = function() { | |
window.addEventListener('message', function(e) { | |
try { | |
var message = JSON.parse(e.data); | |
if (message.subject === 'lti.scrollTop') { | |
$('html,body').animate({ | |
scrollTop: $('.tool_content_wrapper').offset().top + message.scrollTop | |
}, message.animate); | |
} | |
} catch(err) { |
View download.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ $# -ne 1 ]; then | |
echo "Usage: download.sh file ..." | |
exit 1 | |
fi | |
for fn in "$@" | |
do | |
if [ -r "$fn" ] ; then | |
printf '\033]1337;File=name='`echo -n "$fn" | base64`";" | |
wc -c "$fn" | awk '{printf "size=%d",$1}' |
View gist:059f580d981271f8c62a
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is a table | testing | |
---------------- | -------- | |
Oh hi there | blah |
View gist:14185f9a38760a331843
View gist:5995a2d216e2acfda044
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
whoizach-laptop-2:~ zach $ whois noticeablyunprofessional.com | |
Whois Server Version 2.0 | |
Domain names in the .com and .net domains can now be registered | |
with many different competing registrars. Go to http://www.internic.net | |
for detailed information. | |
Domain Name: NOTICEABLYUNPROFESSIONAL.COM | |
Registrar: GODADDY.COM, LLC |
View keybase.md
Keybase proof
I hereby claim:
- I am zwily on github.
- I am zwily (https://keybase.io/zwily) on keybase.
- I have a public key whose fingerprint is 4BEE 0C59 A509 E13B 5F1F 253B D41E B637 61AA 492F
To claim this, I am signing this object:
View sshsa.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# sshsa (SSH Switch Agent) | |
# | |
# sshsa manages multiple ssh-agents with different sets of keys. It | |
# lets you switch between them with one command. It was written on OS X | |
# with Keychain stuff in mind, so probably won't work unmodified on | |
# Linux. | |
# | |
# To use: |
View sortable_table.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** @jsx React.DOM */ | |
var React = require('react'), | |
types = React.PropTypes, | |
_ = require('underscore'); | |
module.exports = React.createClass({ | |
propTypes: { | |
columns: types.arrayOf( | |
types.shape({ |
NewerOlder