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
<? | |
class jade { | |
public static $templatedir = 'tpl/'; | |
public static function c($template, $array=array(), $return=false, $options='-P') { | |
$path = G_PATH.self::$templatedir; |
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
term screen-256color | |
hardstatus alwayslastline | |
hardstatus string '%{= Kc} [%{C}%H%{c}]%= %{y}%?%-Lw%?%{Y}[%{W}%n-%f%t%{Y}]%?%?%{y}%?%+Lw%?%?%= %{g}[%{G}%l%{g}] %{b}[%{B}%m/%d/%y%C%A%{b}] ' |
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
@Override | |
public void onDrawerSlide(View view, float arg1) { | |
//this.context.success("onDrawerSlide"); | |
int offset[] = new int[2]; | |
view.getLocationOnScreen(offset); | |
int width = view.getLayoutParams().width; | |
FrameLayout contentFrame = getNavDrawerActivity().getFrameLayout(); |
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
[k@retinal(..roid/gea/configs/dev)]: hg heads | |
changeset: 222:b5f014e6a837 | |
tag: tip | |
user: ctoracchio | |
date: Tue Aug 06 16:46:10 2013 -0700 | |
summary: Added tag APP_QA_HANDOFF_1.0.7 for changeset 1662962c0c0e | |
changeset: 162:5d2cc3f00c95 | |
branch: comiccon | |
parent: 159:707b70af8840 |
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 jade = require('/usr/lib/node_modules/jade'); | |
var http = require('http'); | |
var path = require('path'); | |
//var fs = require('fs'); | |
http.createServer(function(req, res) { | |
if (req.method != 'POST') { | |
res.writeHead(500, {'Content-Type': 'text/json'}); | |
res.end(JSON.stringify({'error': 'post required'})); |
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
<? | |
while (true) { | |
sleep(3); | |
if (check_db_for_changes()) { | |
echo changes(); | |
return 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
Buildfile: /var/www/hh/build.xml | |
prepare-target: | |
css: | |
[echo] Compling SCSS to CSS | |
[exec] error scss/styles.scss (Line 1: File to import not found or unreadable: sass-bootstrap. | |
[exec] Load paths: | |
[exec] /var/www/hh/scss | |
[exec] /var/lib/gems/1.9.1/gems/compass-0.12.2/frameworks/blueprint/stylesheets |
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
.DS_Store | |
.mwb.bak | |
composer.lock | |
.sublime-workspace | |
src/che/*js | |
src/assets/css | |
^target$ | |
^.sass-cache$ | |
^bower_components$ | |
^conf/config.php$ |
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
[ubuntu@256(/home/ubuntu/w/hh)]: cat .hgignore | |
.DS_Store | |
.mwb.bak | |
composer.lock | |
.sublime-workspace | |
src/che/*.js | |
src/assets/css | |
^target$ | |
^.sass-cache$ | |
^bower_components$ |
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
mysql> select * from location; | |
+------------+-------------------+--------------+-----------+-------------+ | |
| locationId | locationName | locationSlug | lat | lng | | |
+------------+-------------------+--------------+-----------+-------------+ | |
| 7 | Laguna Shopping | slo-laguna | 35.257946 | -120.690765 | | |
| 8 | Marigold Shopping | slo-marigold | 35.250233 | -120.643890 | | |
+------------+-------------------+--------------+-----------+-------------+ | |
2 rows in set (0.01 sec) | |
mysql> INSERT INTO `item` (`locationId`, `itemName`, `itemQuantity`) VALUES ('1', 'Coffee', '20'); |