Skip to content

Instantly share code, notes, and snippets.

View mcantelon's full-sized avatar

Mike Cantelon mcantelon

View GitHub Profile
jetpack.statusBar.append({
html: "<i>IMG</i>",
width: 45,
onReady: function(widget){
$(widget).click(function() {
jetpack.notifications.show("Extracting!");
$(jetpack.tabs.focused.contentDocument)
.find('a > img')
.each(function() {
var src = $(this).parent().attr('href');
#!/usr/bin/env ruby
require 'optparse'
def get_user_param(prompt_text, default = '')
prompt = prompt_text
prompt += default.length > 0 ? ' [' + default + ']' : ''
puts prompt
<?
#
# Set CCK imagefields from node references
# by Mike Cantelon
#
# run this with Drush... example if named migration_script.php:
# drush -r /var/www/drupalroot -u "Mike Cantelon" php-script migration_script
#
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!
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
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
/*
* 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
#!/usr/bin/perl
#
#
# ####### ####### # # ######## # # ########
# # # # # # ## # #
# # # # # # # # # #
# #### ####### ## #### # # # #
# # # # # # # # # #
# # # # # # # ## #
# ####### ####### # # ######## # # #
<?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