Skip to content

Instantly share code, notes, and snippets.

import Ember from 'ember';
export default Ember.Component.extend({
classNames: ["TableGridCell"]
});
@thomaswrenn
thomaswrenn / 0_reuse_code.js
Created September 13, 2017 00:16
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@thomaswrenn
thomaswrenn / index.html
Last active July 30, 2017 08:11 — forked from supereggbert/index.html
3D Surface Plot in D3.js
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style>
body {
font-family: sans;
padding: 10px;
}
@thomaswrenn
thomaswrenn / gist:e7ce37a634d9f3ba890216bb83ac1064
Last active March 30, 2017 22:56 — forked from Andrew-Max/gist:305483febc3c367dbf57
Route lifecycle hooks guide from Ember meetup lightning talk
App.LibraryRoute = App.ApplicationRoute.extend({
activate: function () {
//no longer enter
this._super();
only called once on entering a route.
},
beforeModel: function () {
// any state you want in place before the model is initialized, this is called before any model promises are resolved
// also could be used to conditionally prevent access to a route by throwing transition.abort