- Backpack
- Day bag
- Water Reservior
- Compass
- Map
- Sunscreen
- Rain jacket
- Head lamp - $60
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Kumo.AppsNewApplicationRoute = Ember.Route.extend({ | |
setupController: function (controller) { | |
// Doesn't work | |
controller.set({ | |
model: controller.get('controllers.appsNewIndex.model'), | |
projects: controller.get('controllers.appsNewIndex.projects') | |
}); | |
// Works fine | |
controller.set('model', controller.get('controllers.appsNewIndex.model')).set('projects', controller.get('controllers.appsNewIndex.projects')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# DESCRIPTION: | |
# | |
# Set the bash prompt according to: | |
# * the branch/status of the current git repository | |
# * the branch of the current subversion repository | |
# * the return value of the previous command | |
# | |
# USAGE: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Intaglio = require('intaglio'), | |
repository = new Intaglio.repositories.mysql({ | |
host: 'localhost', | |
database: 'database', | |
user: 'username', | |
password: 'password' | |
}); | |
Intaglio.ORM.create(repository).then(function (ORM) { | |
ORM.factory('user').create({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
init: function(elevators, floors) { | |
var queue = [], | |
self = this; | |
for (var i = floors.length - 1; i >= 0; i--) { | |
floors[i].on("up_button_pressed", self.api.handlers.onUpButton); | |
floors[i].on("down_button_pressed", self.api.handlers.onDownButton); | |
floors[i].api = self.api; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
init: function (elevators, floors) { | |
var DS = this.api.instances.DispatchServiceInstance = new this.api.services.DispatchService(this.api, floors), | |
ES = this.api.instances.ElevatorServiceInstance = new this.api.services.ElevatorService(this.api, elevators); | |
DS.on("new_task", function () { | |
console.info("New task", this); | |
// if (ES.idleElevatorsAvailable()) | |
// ES.processTask(DS.nextTask()); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# put in /usr/local/etc/dnsmasq.d/ | |
address=/dev/10.1.1.10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Color Support | |
export TERM="xterm-color" | |
export CLICOLOR=1 | |
export LSCOLORS=GxFxCxDxBxegedabagaced | |
# Setup SVN's editor | |
export SVN_EDITOR=nano |
Write a view class that can fetch data in multiple ways (file, web, etc) in different formats (JSON, CSV, etc) and render them in multiple ways (table, unordered lists). Bonus points if you use the following interfaces:
<?php
/**
* Describes a data interface for use with a renderer to render an output
*/
OlderNewer