Skip to content

Instantly share code, notes, and snippets.

maedi

  • Australia
Block or report user

Report or block maedi

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
@maedi
maedi / mac-tricks.md
Last active Aug 29, 2015
My Mac Tricks
View mac-tricks.md

##Terminal

Copy the present working directory into Mac OS X clipboard:
pwd|pbcopy

Console view a debug file:
tail -f file.txt or

View App.ApplicationRoute
App.ApplicationRoute = Ember.Route.extend({
setupController: function(controller, model) {
this.controllerFor('posts').set('model', App.Post.find());
}
});
@maedi
maedi / index.html.haml
Created Sep 26, 2012 — forked from timgremore/index.html.haml
Ember.js, document collection and polling...written in CoffeeScript
View index.html.haml
- title "#{@game.name}"
%h1= yield(:title)
#documents
= form_tag(assessment_game_documents_path(@game)) do
%ul
%script{ type: "text/x-handlebars" }
{{#collection Game.DocumentsCollectionView contentBinding="Game.documentsController"}}
%li {{content.name}}
{{/collection}}
@maedi
maedi / gist:1407765
Created Nov 30, 2011
Common Unix Commands
View gist:1407765
// Create a VHost entry on my Mac
sudo nano /private/etc/hosts
You can’t perform that action at this time.