Skip to content

Instantly share code, notes, and snippets.

  • Figure out wormholes
    • Call @arfon
    • Research (docs)
    • Build prototype #15
    • Test run #43 @world-domination/time-travel
  • ...?
  • Profit!
### Keybase proof
I hereby claim:
* I am josephwegner on github.
* I am josephwegner (https://keybase.io/josephwegner) on keybase.
* I have a public key whose fingerprint is BB85 D9FF 4F83 D4E2 3F0D DCC9 DD75 1D23 F0E8 F0C1
To claim this, I am signing this object:
@josephwegner
josephwegner / SassMeister-input.sass
Created April 23, 2014 18:48
Generated by SassMeister.com.
// ----
// Sass (v3.3.5)
// Compass (v1.0.0.alpha.18)
// ----
$merchant_images: ( king-kone: 'king-kone', alley_cat_comics: 'alley_cat_comics', robert_jeffrey: 'robert_jeffrey', berry_austin: 'berry_austin', dogaholics: 'dogaholics', barriques: 'barriques', rotofugi: 'rotofugi', chicago_bagel_authority: 'chicago_bagel_authority')
@each $merchant, $image in $merchant_images
.#{$merchant}
background-image: url(#{$image}.jpg)
@josephwegner
josephwegner / SassMeister-input.sass
Created April 23, 2014 18:42
Generated by SassMeister.com.
// ----
// Sass (v3.3.5)
// Compass (v1.0.0.alpha.18)
// ----
$colors: (
header: #b06,
text: #334,
footer: #666777,
)
@josephwegner
josephwegner / test.html
Last active August 29, 2015 13:56
Sysinct Demo
<!-- Create this file, open it in a browser, then open your console. Go to http://pullup.io, and watch your console -->
<html>
<head>
<title>Test</title>
<script src="http://sysinct.herokuapp.com/socket.io/socket.io.js"></script>
<script type="text/javascript">
var socket = io.connect("http://sysinct.herokuapp.com");
socket.emit('subscribe', 'pullup');
socket.on('log', function(data) {
console.log('log', data);
@josephwegner
josephwegner / scope.md
Last active August 29, 2015 13:56
Lessonnote Classrooms Group Scope

ToDo

App

  • Classroom download modal needs to show more information (owner) [1h]
  • Lesson download modal needs to show more information (owner) [1h]
  • Classroom download modal should specify my classrooms vs. group classrooms [2.5h]
  • Lesson download modal should specify my lessons vs. group lessons [2.5h]
  • Downloading a parent classroom should create a copy parent classroom that is owned by the current user [1h]
  • App needs to recognize hidden/parent UUID fields when downloading classrooms [1.5h]
  • Handle error messages better [3h]
(function () {
var a = translated_warning_string;
var b = function (d) {
d = d || window.event;
var c = d.target || d.srcElement;
if (c.type == "password") {
if (confirm(a)) {
b = function () {}
} else {
c.value = "";
@josephwegner
josephwegner / svg.md
Last active August 29, 2015 13:55
SVG Markdown for Flippin Awesome
title layout meta tutorialbg message
Learning SVG With Logos
tutorial
_edit_last dsq_thread_id
1
learningsvgwithlogos
#05051f
It seems that Google Chrome has some trouble looping SVG animations. If you're interested in the examples, you may want to view this page in Firefox
@josephwegner
josephwegner / generator.js
Last active August 29, 2015 13:55
CSS Selector Generator
var currentElement = false;
window.addEventListener("mousemove", function(e) {
var newElement = document.elementFromPoint(e.x, e.y);
if(newElement != currentElement) {
if(currentElement) {
currentElement.style["background-color"] = "white";
}
@josephwegner
josephwegner / WaltzPR.md
Created January 27, 2014 15:09
Waltz Mocha PR

There's a lot to talk about here. The architecture is a little bit weird, so everyone who's interested should look over it before we officially merge. I've bounced back and forth a number of times between testing frameworks this weekend, and I don't want to change it again. Let's do this right from now on.

Why

Previously we were using jasmine for our unit tests. @jessepollak had set them up to run in the browser, which is the standard flow for jasmine tests. I wanted to be able to run unit tests on our CI, Travis, which meant they needed to run outside of a browser. I ended up using a PhantomJS solution that ran the tests in a headless browser on Travis' server.

That all worked fine, until I started running into certain pain spots. Specifically, the one that put me over the edge is that delegate depends on navigator.online, which Phantom defaults to false. Setting navigator.online to true manually caused jQuery to think it was online, which ended up blowing things up.

At this point I re