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 requestedFloors = {}; | |
for (var i = 0; i < floors.length; i++) { | |
(function (i) { | |
var floor = floors[i]; | |
floor.on('up_button_pressed', function () { | |
requestedFloors[i] = true; |
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 express = require('express'); | |
var path = require('path'); | |
var favicon = require('serve-favicon'); | |
var logger = require('morgan'); | |
var cookieParser = require('cookie-parser'); | |
var bodyParser = require('body-parser'); | |
var stormpath = require('express-stormpath'); | |
var debug = require('debug')('sp'); | |
var routes = require('./routes/index'); |
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 | |
while getopts "a:" opt; do | |
case $opt in | |
a) | |
user=$OPTARG | |
;; | |
\?) | |
echo "Unknown option -$OPTARG" | |
exit 1; |
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 | |
while getopts "arp:d:" opt; do | |
case $opt in | |
a) | |
adding=true | |
;; | |
r) | |
adding=false | |
;; |
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
<?php get_header(); ?> | |
<pre><code><?php print_r($wp_query) ?></code></pre> | |
<?php if ( have_posts() ) : ?> | |
<ul class="unstyled stacked"> | |
<?php while ( have_posts() ) : the_post(); ?> | |
<li><a class="" href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li> | |
<?php endwhile; ?> | |
</ul> |
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
Show hidden characters
{ | |
"color_scheme": "Packages/Color Scheme - Default/Twilight Nic.tmTheme", | |
"draw_white_space": "selection", | |
"font_face": "Inconsolata", | |
"font_size": 16.0, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"indent_to_bracket": true, |