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
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'); |
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/env ruby | |
require 'optparse' | |
def get_user_param(prompt_text, default = '') | |
prompt = prompt_text | |
prompt += default.length > 0 ? ' [' + default + ']' : '' | |
puts prompt |
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
<? | |
# | |
# 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 | |
# |
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! |
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
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
#!/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
/* | |
* 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
#!/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
<?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 |
OlderNewer