This file contains 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/ } |
This file contains 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 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 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 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 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 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
# Copyright (c) 2010, Diaspora Inc. This file is | |
# licensed under the Affero General Public License version 3 or later. See | |
# the COPYRIGHT file. | |
nl: | |
errors: | |
messages: | |
not_found: "niet gevonden" | |
already_confirmed: "is al geactiveerd" | |
not_locked: "is niet geblokkeerd" |
This file contains 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 | |
# create archive directories: | |
archiveroot="$HOME/Archief/mail/" | |
dir="$archiveroot`date +%Y`/`date +%m`/`date +%d`/" | |
mkdir -p $dir | |
# set passwordfile, file should contain nothing but the password. | |
# You should at least make this file only readable by you. | |
pwfile=$HOME/Private/archivemailpw |
This file contains 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
/home/ber/.rvm/gems/ruby-1.9.2-p0@rails_sample_app/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:239:in `require': /home/ber/Documenten/WBR_webschuurrails/sample_app/spec/factories.rb:3: invalid multibyte char (US-ASCII) (SyntaxError) | |
/home/ber/Documenten/WBR_webschuurrails/sample_app/spec/factories.rb:3: invalid multibyte char (US-ASCII) | |
/home/ber/Documenten/WBR_webschuurrails/sample_app/spec/factories.rb:3: syntax error, unexpected $end, expecting keyword_end | |
user.name "Bèr Kessels" | |
^ | |
from /home/ber/.rvm/gems/ruby-1.9.2-p0@rails_sample_app/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:239:in `block in require' | |
from /home/ber/.rvm/gems/ruby-1.9.2-p0@rails_sample_app/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:225:in `block in load_dependency' | |
from /home/ber/.rvm/gems/ruby-1.9.2-p0@rails_sample_app/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:591:in `new_constants_in' | |
from /home/ber/.rvm/gems/r |
This file contains 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
diff --git a/app/models/service.rb b/app/models/service.rb | |
index eb0d48a..e0234b0 100644 | |
--- a/app/models/service.rb | |
+++ b/app/models/service.rb | |
@@ -26,3 +26,4 @@ class Service | |
end | |
require File.join(Rails.root, 'app/models/services/facebook') | |
require File.join(Rails.root, 'app/models/services/twitter') | |
+require File.join(Rails.root, 'app/models/services/identica') | |
diff --git a/app/models/services/identica.rb b/app/models/services/identica.rb |
OlderNewer