Skip to content

Instantly share code, notes, and snippets.

<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
<gpx version="1.0" creator="GeoToad 3.28.1" xsi:schemaLocation="http://www.topografix.com/GPX/1/0 http://www.topografix.com/GPX/1/0/gpx.xsd http://www.groundspeak.com/cache/1/0/1 http://www.groundspeak.com/cache/1/0/1/cache.xsd" xmlns="http://www.topografix.com/GPX/1/0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:groundspeak="http://www.groundspeak.com/cache/1/0/1">
<name>20180522T143412</name>
<desc>GeoToad: coord = 49.418537 7.528561 (1.0 mi radius); not disabled (22May18 14:34)</desc>
<time>2018-05-22T12:34:12.000Z</time>
<keywords>cache, geocache, groundspeak, geotoad</keywords>
<wpt lat="49.408700" lon="7.536400">
<time>2008-02-11T11:00:00Z</time>
<name>GC191Y8</name>
<desc>300 by Elmo082 und JuChHe-Fe, multicache (1/2)</desc>
@PascalTurbo
PascalTurbo / zwave-window-contact.rules
Last active October 1, 2017 15:06
zwave-window-contact
/*
For controlling the temperature, Desired_Temperature isn't touched directly.
Desired_Temperature_Command is used to change the temperature and
Desired_Temperature will react on this changes.
*/
var Number WINDOW_OPEN_TEMPERATURE = 8.0
val org.eclipse.xtext.xbase.lib.Functions$Function1<float, void> update_temperature = [ temperature |
if (Contact_Window.state == OFF) {
cb01:canossa chris$ cap deploy:setup
* executing `deploy:setup'
* executing "mkdir -p /var/www/canossa/deploy /var/www/canossa/deploy/releases /var/www/canossa/deploy/shared /var/www/canossa/deploy/shared/system /var/www/canossa/deploy/shared/log /var/www/canossa/deploy/shared/pids"
servers: ["1.2.3.4"]
[1.2.3.4] executing command
command finished in 653ms
* executing "chmod g+w /var/www/canossa/deploy /var/www/canossa/deploy/releases /var/www/canossa/deploy/shared /var/www/canossa/deploy/shared/system /var/www/canossa/deploy/shared/log /var/www/canossa/deploy/shared/pids"
servers: ["1.2.3.4"]
[1.2.3.4] executing command
command finished in 667ms
{"meal":
{
"id":1,
"price_1":2.2,
"price_2":3.7,
"price_3":5.2,
"color":"#d9261a",
"category":"Komplettmen\u00fc",
"day_id":1,
"main_menu_id":1,
atom_feed({
:language => "de-DE"
}) do |feed|
feed.title("Christians Photo-Blog")
feed.updated(@blogposts.first.created_at)
for blogpost in @blogposts
feed.entry(blogpost) do |entry|
entry.title(blogpost.title)
#
# Scaffolded, because it's realy straight forward ;-)
#
class BlogpostsController < ApplicationController
before_filter :authenticate_admin! , :except => [:index, :show]
# GET /blogposts
entry.content( render :partial => '/blogposts/_content.html.erb', :type => 'html' )
will result in
ActionView::Template::Error (Missing partial /blogposts/_content.html with {:handlers=>[:erb, :rjs, :builder, :rhtml, :rxml], :formats=>[:atom], :locale=>[:de, :de]}
entry.content(blogpost.content + '<a href="...">Link</a>', :type => 'html') it's escaped as &lt;a href="..."&gt;Link&lt;/a&gt;