-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the ability for users to use custom protocols
This commit gives users the ability to specify custom protocols in an extensions file so that uri-types that may not be as well-known can be identified by the link scanner. Examples might include those used by content management systems as internal mechanisms of accessing information. Connected to #6
- Loading branch information
1 parent
5d839de
commit 3cd6553
Showing
8 changed files
with
68 additions
and
30 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,17 @@ | ||
#!/usr/bin/env bash | ||
set -eux | ||
|
||
TLE="tikalinkextract" | ||
DIR="build" | ||
rm -rf "$DIR" | ||
mkdir "$DIR" | ||
env GOOS=windows GOARCH=386 go build | ||
mv tikalinkextract.exe tikalinkextract-win386.exe | ||
mv "$TLE".exe "${DIR}/${TLE}"-win386.exe | ||
env GOOS=windows GOARCH=amd64 go build | ||
mv tikalinkextract.exe tikalinkextract-win64.exe | ||
mv "$TLE".exe "${DIR}/${TLE}"-win64.exe | ||
env GOOS=linux GOARCH=amd64 go build | ||
mv tikalinkextract tikalinkextract-linux64 | ||
mv "$TLE" "${DIR}/${TLE}"-linux64 | ||
env GOOS=darwin GOARCH=386 go build | ||
mv "$TLE" "${DIR}/${TLE}"-darwin386 | ||
env GOOS=darwin GOARCH=amd64 go build | ||
mv "$TLE" "${DIR}/${TLE}"-darwinAmd64 |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Jean-François Champollion rings of Uranus billions upon billions citizens of distant epochs two ghostly white figures in coveralls and helmets are soflty dancing trillion. Descended from astronomers gathered by gravity rich in heavy atoms something incredible is waiting to be known star stuff harvesting star light circumnavigated. Gathered by gravity take root and flourish hundreds of thousands Orion's sword vanquish the impossible are creatures of the cosmos. go:somedata.dat Courage of our questions gathered by gravity as a patch of light network of wormholes network of wormholes the ash of stellar alchemy? | ||
|
||
As a patch of light worldlets Apollonius of Perga ship of the imagination a mote of dust suspended in a sunbeam gathered by gravity? pw://somedata.dat Circumnavigated a mote of dust suspended in a sunbeam permanence of the stars invent the universe circumnavigated invent the universe. Bits of moving fluff star stuff harvesting star light made in the interiors of collapsing stars the ash of stellar alchemy the ash of stellar alchemy rich in heavy atoms? | ||
|
||
Light years globular star cluster radio telescope white dwarf brain is the seed of intelligence birth. Astonishment permanence of the stars laws of physics how far away made in the info:ark/somedata.dat interiors of collapsing stars rich in mystery? Star stuff harvesting star light vastness is bearable only through love two ghostly white figures in coveralls and helmets are soflty dancing stirred by starlight extraordinary claims require extraordinary evidence stirred by starlight. | ||
|
||
Realm of the galaxies laws of physics circumnavigated the carbon in our apple pies dispassionate extraterrestrial observer dream of the mind's eye. Descended from astronomers courage of our questions vastness is bearable only through love the only home we've ever known two ghostly white figures in coveralls and helmets are soflty dancing Orion's sword. Inconspicuous motes of rock and gas Sea of Tranquility not a sunrise but a galaxyrise not a sunrise but a galaxyrise Euclid bits of moving fluff? | ||
|
||
Bits of moving fluff consciousness quasar tendrils of gossamer clouds with pretty stories for which there's little good evidence invent the universe. info:pronom/somedata.dat Sea of Tranquility realm of the galaxies venture encyclopaedia galactica realm of the galaxies courage of our questions. A very small stage in a vast cosmic arena Sea of Tranquility permanence of the stars realm of the galaxies rings of Uranus realm of the galaxies. Two ghostly white figures in coveralls and helmets are soflty dancing another world something incredible is waiting to be known the sky calls to us hearts of the stars courage of our questions. | ||
|
||
Tunguska event astonishment vastness is bearable only through love extraplanetary Euclid venture? Billions upon billions with pretty stories for which there's little good evidence the only home we've ever known cosmic ocean citizens of distant epochs billions upon billions. Invent the universe shores of the cosmic ocean hearts of the stars the sky calls to us are creatures of the cosmos the sky calls to us. info:hdl/somedata.dat Paroxysm of global death two ghostly white figures in coveralls and helmets are soflty dancing bits of moving fluff Sea of Tranquility network of wormholes how far away and billions upon billions upon billions upon billions upon billions upon billions upon billions. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"title": "Extensions data file for tikalinkextract", | ||
"version": "0.0.1", | ||
"Extensions": [ | ||
"pw://", | ||
"info:ark/", | ||
"info:pronom/", | ||
"info:hdl/" | ||
] | ||
} |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package main | ||
|
||
//math.Min uses float64, so let's not cast | ||
func min(a, b int) int { | ||
if a < b { | ||
return a | ||
} | ||
return b | ||
} |
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