Skip to content

Instantly share code, notes, and snippets.

(function($) {
// Used by dateinput
$.expr = {':': {}};
// Used by bootstrap
$.support = {};
// Used by dateinput
$.fn.clone = function(){
var ret = $();
[{"title":"Graph","height":"350px","editable":true,"collapse":false,"collapsable":true,"panels":[{"span":12,"editable":true,"group":["default"],"type":"histogram","mode":"count","time_field":"@timestamp","value_field":null,"auto_int":true,"resolution":100,"interval":"10m","fill":3,"linewidth":3,"timezone":"browser","spyable":true,"zoomlinks":true,"bars":true,"stack":true,"points":false,"lines":false,"legend":true,"x-axis":true,"y-axis":true,"percentage":false,"interactive":true,"queries":{"mode":"all","ids":[0]},"title":"Events over time","intervals":["auto","1s","1m","5m","10m","30m","1h","3h","12h","1d","1w","1M","1y"],"options":true,"tooltip":{"value_type":"cumulative","query_as_alias":true},"scale":1,"y_format":"none","grid":{"max":null,"min":0},"annotate":{"enable":false,"query":"*","size":20,"field":"_type","sort":["_score","desc"]},"pointradius":5,"show_query":true,"legend_counts":true,"zerofill":true,"derivative":false}],"notice":false},{"title":"Events","height":"350px","editable":true,"collapse":fal
@jesseditson
jesseditson / index.js
Created July 1, 2015 23:11
requirebin sketch
// require() some stuff from npm (like you were using browserify)
// and then hit Run Code to run it on the right
var d3 = require('d3')
var width = 960,
height = 500,
radius = 80,
x = Math.sin(2 * Math.PI / 3),
y = Math.cos(2 * Math.PI / 3);
@jesseditson
jesseditson / gist:63a2387bfec72dc35bb1
Created July 10, 2015 20:39
module swapper first pass
This file has been truncated, but you can view the full file.
---------- diff:
app.js
+ /* global dependencies */
+ var $ = require('jquery');
+ var Backbone = require('backbone');
+ var Marionette = require('marionette');
/** @class */
var AdvisorApp = new Marionette.Application({
@jesseditson
jesseditson / App.js
Created September 11, 2015 00:15
ES6 & React Sticky scroll higher-order component example
import React from 'react'
import MyComponent from '../components/MyComponent'
export default class App extends React.Component {
render() {
return <MyComponent topMargin="10"/>
}
}
import Ember from 'ember';
export default Ember.Component.extend({
actions: {
fire: function() {
alert('fire from component 2')
this.sendAction()
}
}
});
@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!')
}
}
});
@jesseditson
jesseditson / uninstall docker for mac.md
Last active August 24, 2016 03:38
Uninstall docker for mac
@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 / 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'
});