Skip to content

Instantly share code, notes, and snippets.

Michael Grassotti mikegrassotti

Block or report user

Report or block mikegrassotti

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
@mikegrassotti
mikegrassotti / components.my-component.js
Created Jul 26, 2017
ember-routing-service-testdrive
View components.my-component.js
import Ember from 'ember';
export default Ember.Component.extend({
router: Ember.inject.service(),
actions: {
goHome() {
this.get('router').transitionTo('index');
}
}
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
@mikegrassotti
mikegrassotti / hacks.sh
Last active Oct 3, 2016
OSX Shell hacks
View hacks.sh
# Last 10 days
seq 0 10 | xargs -I {} date -v-{}d '+%Y-%m-%d'
# Download last 10 Papertrail archives
seq 0 10 | xargs -I {} date -v-{}d '+%Y-%m-%d' | xargs -I {} curl -g -v --progress-bar -f -o {}.tsv.gz -L -H "X-Papertrail-Token: $PAPERTRAIL_TOKEN" https://papertrailapp.com/api/v1/archives/{}/download
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
@mikegrassotti
mikegrassotti / plaid.html
Last active Apr 29, 2016 — forked from anonymous/plaid.html
plaid static vs ember
View plaid.html
<!DOCTYPE html>
<html lang="en">
<head>
<title>Plaid Demo Application</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="https://cloud.typography.com/6954312/686646/css/fonts.css"/>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/default.min.css">
View application.controller.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
View application.controller.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle'
});
View application.controller.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'m-form',
data: {
name: 'blank',
age: 0
},
actions: {
bar() {
View application.controller.js
import Ember from 'ember';
export default Ember.Controller.extend({
tagsSorting: ['id'],
tags: [
{id: 1, color: 'cp-colour-1'},
{id: 11, color: 'cp-colour-1'},
{id: 6, color: 'cp-colour-6'},
{id: 3, color: 'cp-colour-3'},
{id: 4, color: 'cp-colour-4'}
You can’t perform that action at this time.