This file contains hidden or 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 sys = require('sys'), | |
rest = require('restler-aaronblohowiak'), | |
item, | |
node | |
rest.get('http://mikecantelon.com/jsontest/News') | |
.addListener('complete', function(data) { | |
for(item in data.nodes) { | |
node = data.nodes[item].node |
This file contains hidden or 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
# configure npm | |
touch ~/.npmrc | |
echo root=$HOME/root >> ~/.npmrc | |
echo binroot=$HOME/bin >> ~/.npmrc | |
echo manroot=$HOME/man >> ~/.npmrc | |
mkdir $HOME/root | |
mkdir $HOME/bin | |
mkdir $HOME/man | |
# install npm |
This file contains hidden or 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
function fresh_media_preprocess_views_views_json_style_simple(&$vars) { | |
global $pager_total, $pager_page_array; | |
$element = $vars['view']->pager['element']; | |
$vars['rows']['pager'] = array( | |
'total' => $pager_total[$element], | |
'current' => $pager_page_array[$element] | |
); | |
} |
This file contains hidden or 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 | |
//$Id: views-views-json-style-simple.tpl.php,v 1.1.2.4 2010/07/15 07:34:48 allisterbeharry Exp $ | |
/** | |
* @file views-views-json-style-simple.tpl.php | |
* Default template for the Views JSON style plugin using the simple format | |
* | |
* Variables: | |
* - $view: The View object. | |
* - $rows: Hierachial array of key=>value pairs to convert to JSON | |
* - $options: Array of options for this style |
This file contains hidden or 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
#!/usr/bin/perl | |
# | |
# | |
# ####### ####### # # ######## # # ######## | |
# # # # # # ## # # | |
# # # # # # # # # # | |
# #### ####### ## #### # # # # | |
# # # # # # # # # # | |
# # # # # # # ## # | |
# ####### ####### # # ######## # # # |
This file contains hidden or 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
/* | |
* face through RGB | |
*/ | |
int ledPin = 13; // LED is connected to digital pin 13 | |
int redPin = 11; // R petal on RGB LED module connected to digital pin 11 | |
int greenPin = 9; // G petal on RGB LED module connected to digital pin 9 | |
int bluePin = 10; // B petal on RGB LED module connected to digital pin 10 | |
int wait = 5; // delay between color changes |
This file contains hidden or 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 | |
grep -n -r "$1" * | grep -v .svn | awk '{print substr($0,0,120)}' |
This file contains hidden or 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
Pack: | |
Right pocket: | |
-2 cups, 2 x cutlery, corkscrew, LED micro lantern/flashlight | |
-coffee | |
Left pocket: | |
-toilet paper | |
-stove fuel | |
Top: | |
-emergency blanket, poncho, bit of duct tape | |
-water purifier |
This file contains hidden or 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
The Valley of the Taco is a casserole that uses rice as a staple. Here is the basic recipe. | |
You can add beans if you like. I haven't tried that, but it's probably good. | |
I put the fake meats in there and haven't tried that either, but I'm pretty sure it would be nice. | |
Ingredients: | |
-2 cups rice | |
-3 tablespoons taco seasoning (1 package) | |
-4 carrots | |
-2 onions | |
-1 green pepper |
This file contains hidden or 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
The Valley of Taco is a casserole that uses rice as a staple. Here is the basic recipe. You can add beans if you like. I haven't tried that, but it's probably good. | |
Ingredients: | |
-2 cups rice | |
-3 tablespoons taco seasoning (1 package) | |
-4 carrots | |
-2 onions | |
-1 green pepper | |
-1/2 head of brocolli | |
-mushrooms! |