Skip to content

Instantly share code, notes, and snippets.

View mcantelon's full-sized avatar

Mike Cantelon mcantelon

View GitHub Profile
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
# 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
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]
);
}
<?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
#!/usr/bin/perl
#
#
# ####### ####### # # ######## # # ########
# # # # # # ## # #
# # # # # # # # # #
# #### ####### ## #### # # # #
# # # # # # # # # #
# # # # # # # ## #
# ####### ####### # # ######## # # #
/*
* 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
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
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
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!