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
<Order xsi:schemaLocation="http://www.company.com/examples/purchaseorder order.xsd" xmlns="http://www.company.com/examples/purchaseorder" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<ShippingAddress> | |
<Street1>123 First St.</Street1> | |
<City>Allston</City> | |
<State>MA</State> | |
<Zip>02115</Zip> | |
</ShippingAddress> | |
<BillingAddress> | |
<Street1>22 XML Road</Street1> | |
<City>Cambridge</City> |
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
<?xml version="1.0" encoding="utf-8"?> | |
<book isbn="0836217462"> | |
<title>Being a Dog Is a Full-Time Job</title> | |
<author>Charles M. Schulz</author> | |
<character> | |
<name>Snoopy</name> | |
<friend-of>Peppermint Patty</friend-of> | |
<since>1950-10-04</since> | |
<qualification> |
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
#! /usr/bin/env python | |
import redis | |
import random | |
import pylibmc | |
import sys | |
r = redis.Redis(host = 'localhost', port = 6389) | |
mc = pylibmc.Client(['localhost:11222']) |
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
using System; | |
using ServiceStack.Redis; | |
using ServiceStack.ServiceInterface; | |
using ServiceStack.WebHost.Endpoints; | |
using Funq; | |
using ServiceStack.Text; | |
//The entire C# source code for the ServiceStack + Redis TODO REST backend. There is no other .cs :) | |
namespace Backbone.Todos | |
{ |
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
<?xml version="1.0" encoding="utf-8"?> | |
<configuration> | |
<system.webServer> | |
<httpProtocol> | |
<customHeaders> | |
<add name="Access-Control-Allow-Origin" value="*"/> | |
<add name="Access-Control-Allow-Methods" value="GET,PUT,POST,DELETE,OPTIONS"/> | |
<add name="Access-Control-Allow-Headers" value="Content-Type"/> | |
</customHeaders> | |
</httpProtocol> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset=utf-8 /> | |
<title>vejret i DK</title> | |
<link rel="stylesheet" href="http://supermobile.dk/html5/WebApp.Bynavn/styles/fluid.css"> | |
</head> | |
<body> | |
<p> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Kodeeksempel på brug af adressedelens af Geoservicens web API</title> | |
<script src="http://code.jquery.com/jquery-1.4.4.min.js"></script> | |
<script type="text/javascript"> | |
$(function () { | |
var kriterie = {}; | |
kriterie['vejnavn'] = '*kilde*'; |
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
--> Jalal Hejazi STDistance using The Great Circle Formular with SQL Spatial GeoType | |
-- OpenSource GEO DB | |
-- http://workshops.opengeo.org/postgis-intro/geometries_exercises.html | |
-- http://workshops.opengeo.org/postgis-intro/geography.html | |
--> SQLServer Spatial DB | |
--> http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.types.sqlgeography.stdistance.aspx?cs-save-lang=1&cs-lang=csharp#code-snippet-1 | |
/* |
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
jQuery.loadScript = function (url, arg1, arg2) { | |
var cache = false, callback = null; | |
//arg1 and arg2 can be interchangable as either the callback function or the cache bool | |
if ($.isFunction(arg1)){ | |
callback = arg1; | |
cache = arg2 || cache; | |
} else { | |
cache = arg1 || cache; | |
callback = arg2 || callback; | |
} |