Skip to content

Instantly share code, notes, and snippets.

set -o vi
#alias ll='ls -laF'
#alias server='ssh [email protected]'
alias md='mkdir'
#alias editVhosts='sublime /etc/apache2/extra/httpd-vhosts.conf'
#alias restartApache="sudo apachectl restart"
#alias editHosts='sublime /etc/hosts'
alias bash='sublime ~/.bash_profile'
alias refrash='source ~/.bash_profile'
Router.configure({
layoutTemplate: 'layout'
});
Router.map(function() {
this.route('Home', {path: '/'});
this.route('Projects', {path: '/projects'});
this.route('About', {path: '/about'});
});
@kingluddite
kingluddite / layout.html
Last active August 29, 2015 14:01
3 files to create your meteor app's main layout
<template name="layout">
<div class="container">
<header class="navbar">
{{> Menu}}
</header>
<div id="main" class="row-fluid">
{{> yield}}
</div>
</div>
</template>
<template name="About">
<div class="container">
<div class="page-header">
<h1>About <small>we are more awesome than you are</small></h1>
</div>
</div>
</template>
Session.setDefault('appName', 'Project Manager');
Handlebars.registerHelper("formatDate", function(datetime) {
if (moment) {
return moment(datetime).format("MM/DD/YYYY");
}
else {
return datetime;
}
});
Handlebars.registerHelper("formatDate", function(datetime) {
if (moment) {
return moment(datetime).format("MM/DD/YYYY");
}
else {
return datetime;
}
});
Projects = new Meteor.Collection('projects');
<template name="ProjectRow">
<tr class="projectRow">
<td>{{name}}</td>
<td>{{client}}</td>
<td>{{formatDate duedate}}</td>
<td>{{status}}</td>
</tr>
</template>
/* /client/main.js */
Session.setDefault('showProjectDialog', false);