Skip to content

Instantly share code, notes, and snippets.

View iest's full-sized avatar

Iestyn Williams iest

View GitHub Profile
setupController: function(controller, model) {
var report;
if (Ember.typeOf(model) === 'instance') {
report = model;
} else {
var title = this.get('routeName').split('.')[1];
{
"generatorsetup": {
"_id": "524e96b7ef86a4744ecc806c",
"name": "Iest test",
"catalogueId": "523314fc1c264d2131cbe7df",
"type": "ADWORDS",
"grouping": "",
"fields": {
"campaign": "",
"adgroup": "",
Error processing request
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at core.http.RoutesHandler.channelRead0(RoutesHandler.java:161)
at core.http.RoutesHandler.channelRead0(RoutesHandler.java:47)
at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:98)
at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:334)
@iest
iest / opacity.styl
Last active December 17, 2015 07:49
Supporting old IE with Stylus: opacity edition
opacity(amount)
opacity amount
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=%s)" % (amount * 100);
// Just use opacity as you normally would in your stylus, and get support for IE8!
@iest
iest / jquery to vanilla.md
Last active December 14, 2015 05:58 — forked from liamcurry/gist:2597326
Snippets to help the transition from jQuery to vanilla. Vanilla is generally more verbose than jQuery, but is up to a million billion faster.

Moving from jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})