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
>> Stop.search("", :geo => [qype_office.lat.degrees, qype_office.lng.degrees], :order => "@geodist asc", :with => { "@geodist" => 0.0..10000.0 }, :per_page => 100).map(&:name) | |
=> ["Rödingsmarkt, Hamburg", "Rödingsmarkt (U), Hamburg", "Auf dem Sande (Speicherstadt), Hamburg", "Hamburg Stadthausbrücke", "Adolphsplatz, Hamburg", "Rathausmarkt, Hamburg", "Baumwall, Hamburg", "Magellan-Terrassen, Hamburg", "Brandstwiete, Hamburg", "Baumwall (U), Hamburg", "Sandtorhöft, Hamburg", "Bei St. Annen, Hamburg", "Rathausmarkt (Petrikirche), Hamburg", "Axel-Springer-Platz, Hamburg", "Marco-Polo-Terrassen, Hamburg", "Hamburg Jungfernstieg", "Jungfernstieg, Hamburg", "Michaeliskirche, Hamburg", "Jungfernstieg (U) (S), Hamburg", "Gerhart-Hauptmann-Platz, Hamburg", "Meßberg, Hamburg", "Gänsemarkt (U), Hamburg", "Mönckebergstraße (U), Hamburg", "Gänsemarkt (Oper), Hamburg", "Museum für Hamburgische Geschichte, Hamburg", "Handwerkskammer, Hamburg", "Arningstraße, Hamburg", "Dragonerstall, Hamburg", "Johannes-Brahms-Platz, Hambu |
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
# verhindert "Srpingen" von Navigationsleiste im Firefox | |
html { | |
height: 101%; | |
} | |
# Hintergrundgrafiken mit Farbverlauf | |
# http://tools.dynamicdrive.com/gradient/ | |
# CSS validator | |
# http://jigsaw.w3.org/css-validator/ |
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
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" | |
width="110" | |
height="14" | |
id="clippy" > | |
<param name="movie" value="/flash/clippy.swf"/> | |
<param name="allowScriptAccess" value="always" /> | |
<param name="quality" value="high" /> | |
<param name="scale" value="noscale" /> | |
<param NAME="FlashVars" value="text='<a href=\"nur ein test\">test<\/a>'"> | |
<param name="bgcolor" value="#FFFFFF"> |
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
str is hello world | |
<script type="text/javascript"> | |
//<![CDATA[ | |
alert('hello world'); | |
//]]> | |
</script> |
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
function anyChecked(node) { | |
if (node.select(":checked").length == 0) { | |
alert("Es muss mindestens eine Bestellung ausgewählt werden!") | |
return false | |
} else { | |
return 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
function anyChecked(node) { | |
if (node.select(":checked").length == 0) { | |
alert("Es muss mindestens eine Bestellung ausgewählt werden!") | |
return false | |
} else { | |
return 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
start = Time.now | |
# do something | |
puts "time: #{Time.now - start}" |
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
~ $ cat test_spec.rb | |
describe "count numbers" do | |
for i in (1..10).to_a do | |
puts "generating #{i}" | |
it "#{i} should be #{i}" do | |
puts "i is #{i}" | |
end | |
end | |
end | |
~ $ spec test_spec.rb |
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
~ $ cat test_spec.rb | |
describe "count numbers" do | |
(1..10).to_a.each do |i| | |
puts "generating #{i}" | |
it "#{i} should be #{i}" do | |
puts "i is #{i}" | |
end | |
end | |
end | |
~ $ spec test_spec.rb |
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
class Product < ActiveRecord::Base | |
define_index do | |
indexes :name | |
end | |
end | |
class Album < Product | |
end | |
class SonyAlbum < Album |
OlderNewer