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 | |
/** | |
* Renders a value cleaned. Simply pulls value through check_plain. | |
* | |
* Example usage: | |
* @code | |
* r('foo'); //=> "Foo" | |
* r('<script alert(infected)>Foo'); //=> "Foo" | |
* r("<em>123</em>"); //=> 123 | |
* @endcode |
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 | |
/** | |
* @file views-view-grid.tpl.php | |
* Default simple view template to display a rows in a grid. | |
* | |
* - $rows contains a nested array of rows. Each row contains an array of | |
* columns. | |
* | |
* @ingroup views_templates | |
*/ |
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 | |
/* | |
* menu callback to render the tagadelic title | |
* | |
* Args: | |
* @param $vocs. An array of vocabulary IDs | |
*/ | |
function tagadelic_page_title_callback((array) $vocs) { | |
$title = ''; |
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
Sep 4 13:36:30 yasmine NetworkManager: <info> Activation (ttyACM0) starting connection 'Vodafone Business 1' | |
Sep 4 13:36:30 yasmine NetworkManager: <info> (ttyACM0): device state change: 3 -> 4 (reason 0) | |
Sep 4 13:36:30 yasmine NetworkManager: <info> Activation (ttyACM0) Stage 1 of 5 (Device Prepare) scheduled... | |
Sep 4 13:36:30 yasmine NetworkManager: <info> Activation (ttyACM0) Stage 1 of 5 (Device Prepare) started... | |
Sep 4 13:36:30 yasmine NetworkManager: <info> (ttyACM0): device state change: 4 -> 6 (reason 0) | |
Sep 4 13:36:30 yasmine NetworkManager: <info> Activation (ttyACM0) Stage 1 of 5 (Device Prepare) complete. | |
Sep 4 13:36:30 yasmine NetworkManager: <info> Activation (ttyACM0) Stage 1 of 5 (Device Prepare) scheduled... | |
Sep 4 13:36:30 yasmine NetworkManager: <info> Activation (ttyACM0) Stage 1 of 5 (Device Prepare) started... | |
Sep 4 13:36:30 yasmine NetworkManager: <info> (ttyACM0): device state change: 6 -> 4 (reason 0) | |
Sep 4 13:36:30 yasmine NetworkManager: <info> Activation (ttyACM |
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
/** | |
* Implementation of hook_cron(). | |
*/ | |
function example_cron() { | |
static $is_running; | |
$time = time(); | |
//Call is_active. IF so, stor in variable. | |
if (!$is_running && _example_cron_may_run($time, variable_get('example_alive_last_ran', 0), variable_get('example_refresh_interval', 648000))) { | |
$is_running = TRUE; |
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
# Gem by John Nunemaker http://twitter.rubyforge.org/ | http://github.com/jnunemaker/twitter | |
require 'twitter' | |
# yea, I know, should be oauth, but hey, this is just a script you run locally. So, whatever. | |
httpauth = Twitter::HTTPAuth.new('username', 'pasword') | |
client = Twitter::Base.new(httpauth) | |
# This selects only twenty last tweets. Play with the query for | |
# http://rdoc.info/rdoc/jnunemaker/twitter/blob/d2432da5a54fc9b788258ff9adfc93b379624957/Twitter/Base.html#friends_timeline-instance_method to receive more tweets | |
foursquares = client.friends_timeline.select {|t| t.source =~ /foursquare\.com/ } |
NewerOlder