Skip to content

Instantly share code, notes, and snippets.

View xymostech's full-sized avatar

Emily Eisenberg xymostech

View GitHub Profile
diff --git a/package.json b/package.json
index b3f321a..852132a 100644
--- a/package.json
+++ b/package.json
@@ -15,9 +15,10 @@
"coverage": "nyc --check-coverage --lines 100 --branches 100 npm run tests",
"tests": "mocha --compilers js:babel/register tests",
"tests:watch": "mocha --watch --compilers js:babel/register tests",
- "prebuild": "rimraf dist lib",
+ "prebuild": "rimraf dist/* lib/*",

Keybase proof

I hereby claim:

  • I am xymostech on github.
  • I am xymostech (https://keybase.io/xymostech) on keybase.
  • I have a public key whose fingerprint is 1FC6 39C9 6409 A5C1 42AE 4394 9A36 4DA3 D08D 1627

To claim this, I am signing this object:

@xymostech
xymostech / AphroditeLink.jsx
Created April 11, 2016 08:39
Make React Router's Link work with Aphrodite
@xymostech
xymostech / clear-items.js
Last active August 29, 2015 14:14
Gists for uploading items
javascript: $.ajax({
/* Removes all the assessment items in an exercise. Set `window.exercise` to the name of
* the exercise (like `"addition_1"`). */
type: "GET",
url: "/api/v1/exercises/" + window.exercise,
success: function(data) {
var id = data.id;
var sha = data.sha;
console.log("Got id", id, "and sha", sha);
$.ajax({
<style type="text/css">
.katex-display {
margin: 1em 0;
text-align: center;
}
.katex-display > span {
display: inline-block;
overflow: hidden;
margin: 0 auto;
require 'json'
require 'rubygems'
require 'ttfunk'
def metrics_for_file(filename)
file = TTFunk::File.open(filename)
max_height = 0
@xymostech
xymostech / huxley.sh
Created August 5, 2014 22:13
Syncing Huxley screenshots from a remote docker
#!/usr/bin/env bash
echo "Syncing KaTeX directory there"
rsync --recursive --delete --links ./* KADev:docker-huxley/KaTeX/
echo "Running docker-huxley"
ssh -t KADev sudo docker run -v /home/xymostech/docker-huxley/KaTeX:/KaTeX -i -t xymostech/huxley
echo "Syncing KaTeX directory back again"
rsync --recursive KADev:docker-huxley/KaTeX/test/huxley/* ./test/huxley/
@xymostech
xymostech / Dockerfile
Created August 5, 2014 21:44
Huxley Dockerfile
FROM ubuntu:14.04
MAINTAINER xymostech <xymostech@gmail.com>
RUN apt-get -qq update
RUN apt-get -qqy install nodejs default-jre firefox xvfb || true
RUN apt-get -qqy install wget
RUN wget http://selenium-release.storage.googleapis.com/2.42/selenium-server-standalone-2.42.2.jar
RUN ln -s /usr/bin/nodejs /usr/bin/node
ENV DISPLAY :1
CMD /bin/bash ~/run.sh
RUN echo "java -jar /selenium-server-standalone-2.42.2.jar > /dev/null &" >> ~/run.sh
/*
* Base elements
*/
body {
background: #EEE;
color: #222;
font-family: "Courier", monospace;
font-size: 16px;
margin: 0px;
min-width: 600px;
(function() {
var streams = {};
function Stream() {
this.enabled = true;
};
Stream.prototype.log = function() {
if (this.enabled) {
window.console.log.apply(window.console, Array.prototype.slice.call(arguments, 0));