Skip to content

Instantly share code, notes, and snippets.

Avatar

Andrea Borruso aborruso

View GitHub Profile
@aborruso
aborruso / x
Created Oct 23, 2008
Show the similicio.us sites
View x
CmdUtils.makeBookmarkletCommand ({
name: "similicio.us",
url: "javascript:location.href='http://www.similicio.us/search.php?url='+location.href"
})
@aborruso
aborruso / x
Created Oct 23, 2008
To use citebite inside mozilla ubiquity
View x
CmdUtils.makeBookmarkletCommand ({
name: "citebite",
url: "javascript:(function()%7Bvar%20a=window,b=document,c=encodeURIComponent,d=a.open(%22http://citebite.com/fetch?q=%22+(window.getSelection%20?%20window.getSelection()%20:%20document.selection.createRange().text)+%22&u=%22+c(b.location)+%22&qs=bookmarklet%22,%22popup%22,%22left=%22+((a.screenX%7C%7Ca.screenLeft)+10)+%22,top=%22+((a.screenY%7C%7Ca.screenTop)+10)+%22,height=600px,width=800px,toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,alwaysRaised=1%22);a.setTimeout(function()%7Bd.focus()%7D,300)%7D)();"
})
View gist:253508
<?xml version="1.0" encoding="UTF-8"?>
<places xmlns="http://where.yahooapis.com/v1/schema.rng" xmlns:yahoo="http://www.yahooapis.com/v1/base.rng" yahoo:start="0" yahoo:count="1" yahoo:total="1">
<place yahoo:uri="http://where.yahooapis.com/v1/place/7153344" xml:lang="it">
<woeid>7153344</woeid>
<placeTypeName code="8">Regione</placeTypeName>
<name>Sicilia</name>
<country type="Paese" code="IT">Italia</country>
<admin1 type="Regione" code="">Sicilia</admin1>
<admin2></admin2>
<admin3></admin3>
View x.js
// generated by create search command
CmdUtils.makeSearchCommand({
name: "Treccani",
homepage: "http://aborruso.spaziogis.it/",
author: { name: "Andrea Borruso"},
icon: "http://www.iconfinder.net/ajax/download/png/?id=20721&s=24",
description: "Esegue ricerche nel vocabolario Treccani",
url: "http://www.treccani.it/Portale/services/searchTitle.jsp?cercaTesto={QUERY}&searchIn=V&cercaTestoVis=&x=0&y=0",
});
View treccani.js
CmdUtils.makeSearchCommand({
name: "Treccani",
homepage: "http://aborruso.spaziogis.it/",
author: { name: "Andrea Borruso"},
icon: "http://www.iconfinder.net/ajax/download/png/?id=20721&s=24",
description: "Esegue ricerche nel vocabolario Treccani",
url: "http://www.treccani.it/Portale/services/searchTitle.jsp?cercaTesto={QUERY}&searchIn=V&cercaTestoVis=&x=0&y=0",
});
View MapServer.xml
<?xml version="1.0" encoding="UTF-8"?>
<Map name="GMAP-DEMO" version="5.6.0" status="ON" xmlns="http://www.mapserver.org/mapserver" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mapserver.org/mapserver">
<extent>-2200000 -712631 3072800 3840000</extent>
<fontSet>../etc/fonts.txt</fontSet>
<imageColor red="255" green="255" blue="255"/>
<Layer name="bathymetry" type="RASTER" status="ON">
<data>bath_mapserver.tif</data>
<Metadata>
<item name="DESCRIPTION">Elevation/Bathymetry</item>
View mapserver.map
MAP
NAME "GMAP-DEMO"
STATUS ON
EXTENT -2200000 -712631 3072800 3840000
FONTSET "../etc/fonts.txt"
IMAGECOLOR 255 255 255
SHAPEPATH "../data"
SIZE 400 300
SYMBOLSET "../etc/symbols.sym"
View Exhibit.json
{
types: {
"Person": {
pluralLabel: "People"
}
},
properties: {
"age": {
valueType: "number"
},
View Exhibit-Template.htm
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xml:lang="en" lang="en"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:ex="http://simile.mit.edu/2006/11/exhibit#">
<head>
<title>My Exhibit's Title</title>
<link href="my-data.js" type="application/json" rel="exhibit/data" />
@aborruso
aborruso / OpenXX.ini
Created Oct 13, 2011 — forked from afalciano/OpenXX.ini
Sample OpenXX initialization file showing how to use GDAL utilities
View OpenXX.ini
[Commands]
0.Type=0
0.AssociateWith=3
0.Title="Open Command Prompt"
0.Program="%OpenXXApp%"
0.Arguments="OpenCommandPrompt %FilePaths%"
0.WorkingDir=""
0.Icon="%OpenXXDll%,-101"
0.FileTypes=""
1.Type=0