Skip to content

Instantly share code, notes, and snippets.

@jesseditson
jesseditson / index.html
Created March 28, 2017 05:55
Sawtooth Edge Generator
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Sawtooth Edge Generator">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
.thing {
width: 200px;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
.thing {
width: 200px;
background-color: red;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
.thing {
width: 200px;
background-color: red;
@jesseditson
jesseditson / download-plex.js
Last active December 24, 2016 23:27
Download images from Plex
// class names that are likely to change
var CAROUSEL_CONTAINER = 'PhotoCarousel-carousel-293dy';
var CONTROLS_TITLE = 'PhotoControls-title-10ilf';
var SLIDE_CONTAINER = 'SlideImg-slideContainer-32CDh';
// create an event to simulate moving the mouse around on the screen
var ev = document.createEvent('MouseEvent');
ev.pageX = 100;
ev.pageY = 100;
ev.initEvent('mousemove', true, true);
@jesseditson
jesseditson / application.controller.js
Created October 13, 2016 19:50
refreshModel broken when queryParamsDidChange is defined
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
@jesseditson
jesseditson / controllers.application.js
Created October 13, 2016 19:33
Query Params (nested routes)
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
@jesseditson
jesseditson / deploy.sh
Last active September 8, 2016 02:28
Deploy using now without all the local cruft
#!/bin/bash
set -e
if [ -z "$(which now)" ]; then
echo "please install now to use this script."
exit 1
fi
# remove common build folders if they are ignored
@jesseditson
jesseditson / uninstall docker for mac.md
Last active August 24, 2016 03:38
Uninstall docker for mac
@jesseditson
jesseditson / application.route.js
Last active April 15, 2016 23:06
Event Proxies
import Ember from 'ember';
export default Ember.Route.extend({
actions: {
doStuff() {
alert('I did stuff!')
}
}
});
import Ember from 'ember';
export default Ember.Component.extend({
actions: {
fire: function() {
alert('fire from component 2')
this.sendAction()
}
}
});