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
"identifier": "id", | |
"label": "name", | |
"items": [ | |
{ | |
"id": "0", | |
"name": "Root", | |
"children": { | |
"_reference": "dijit__TreeNode_9-dnd" | |
} | |
}, |
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
<!doctype html> | |
<html> | |
<head> | |
<title>IE6 test</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<style type="text/css"> | |
body { | |
font-size: 18px; | |
line-height: 2; | |
} |
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
if ($.browser.msie && $.browser.version.substr(0,1)<7) { | |
$('.nav > ul > li').live('mouseover mouseout', function(e) { | |
if($("ul", this)[0]) | |
$("ul", this)[0].style.display = (e.type == 'mouseover')? 'block' : "none"; | |
}); | |
} |
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
begin | |
namespace :db do | |
desc "Add some fake data to the database" | |
dateCounter = 1 | |
task :populate => :environment do | |
5.times do | |
i = dateCounter.to_s() | |
date = "0"+i+".0"+i+".200"+i | |
Tut.create! :title => Forgery::LoremIpsum.sentence, :url => "http://"+Forgery::LoremIpsum.word, :date => Date.parse(date), :description => Forgery::LoremIpsum.paragraphs(3), :hits => 0 | |
dateCounter += 1 |
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
var time1 = new Date().getTime(); | |
var test = false; | |
for(var i = 0; i < 100000;i++) | |
{ | |
if(test) { | |
test = false; | |
} else { | |
test = 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
$(document.body)data('trafikk').each(function(index, value){ // some overkill shrinking | |
data[index].include = (((($.isArray(data[index].ActualCounties.String )) ? data[index].ActualCounties.String.join() : data[index].ActualCounties.string).indexOf(filter) >= 0) && (filter.length > 0)); | |
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
<h1> Hallo </h1> | |
<div id="map_canvas" style="width: 400px; height: 600px"></div> | |
<script type="text/javascript"> | |
/* Fetches a JSON file with the data */ | |
/* stors it in jquery data and starts map when successful */ | |
function fetchData(){ | |
$.ajax({ | |
type: "GET", | |
url: "/vegvesen/data", |
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
<!doctype html> | |
<html> | |
<head> | |
<title>clickable header</title> | |
<style type="text/css"> | |
header, a, p { margin: 0; padding: 0;} | |
/* ******************************************************************* */ | |
/* the header has a rounded border */ | |
header { | |
margin: 0 auto; |