Skip to content

Instantly share code, notes, and snippets.

View maedi's full-sized avatar

maedi

View GitHub Profile
@maedi
maedi / mac-tricks.md
Last active August 29, 2015 14:21
My Mac Tricks

##Terminal

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

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

@maedi
maedi / gist:1407765
Created November 30, 2011 02:50
Common Unix Commands
// Create a VHost entry on my Mac
sudo nano /private/etc/hosts
@maedi
maedi / index.html.haml
Created September 26, 2012 06:29 — forked from timgremore/index.html.haml
Ember.js, document collection and polling...written in CoffeeScript
- 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}}
App.ApplicationRoute = Ember.Route.extend({
setupController: function(controller, model) {
this.controllerFor('posts').set('model', App.Post.find());
}
});