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 fedwiki_ItemChecked pageArray, checkboxTitle | |
put pageArray ["story"] into storyArray | |
put item 2 of the extents of storyArray into maxItemNum | |
repeat with itemNum = 1 to maxItemNum | |
put storyArray [itemNum] into itemArray | |
if itemArray ["type"] is not "markdown" then next repeat | |
put itemArray ["text"] into itemText | |
switch | |
case itemText contains ("- [x]" && checkboxTitle) |
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
<?lc | |
/* = DESCRIPTION = | |
-- | |
The bbc.lc controller can be found at: bbc.lc | |
Below we declare the global variables gControllerHandlers AND gData | |
And put the public method names that we wish to expose into gControllerHandlers | |
-- | |
*/ |
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
<?lc | |
/* = DESCRIPTION = | |
-- | |
The mediawiki.lc controller can be found at: mediawiki.lc | |
Below we declare the global variables gControllerHandlers AND gData | |
And put the public method names that we wish to expose into gControllerHandlers | |
-- | |
*/ | |
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
on index | |
put fedwiki_GetDroppedUrl ($_POST_RAW) into droppedURL | |
if droppedURL is empty then | |
fedwiki_ExitAndReturnError "Nothing dropped", "Error" | |
end if | |
set the itemdelimiter to "?" | |
switch | |
case matchtext (droppedURL, "^https://tools.wmflabs.org/geohack/geohack.php\?pagename=(.+)¶ms=(.+)", pageName, geoInfo) | |
-- put "https://tools.wmflabs.org/geohack/geohack.php?pagename=Bilbao¶ms=43_15_25_N_2_55_25_W_region:ES_type:city" into someURL |
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
on index | |
put fedwiki_GetDroppedUrl ($_POST_RAW) into droppedURL | |
put fedwiki_ConstructErrorJSON (droppedURL &CR&CR& $_POST_RAW) into errorJSON | |
fedwiki_ReturnJSON errorJSON | |
end index | |
on fork_Cleaner | |
put fedwiki_GetDroppedUrl ($_POST_RAW) into droppedURL | |
put fedwiki_CleanLastLineUpJournal (droppedURL, "create,fork", "fedwiki-transport") into cleanJSON | |
fedwiki_ReturnJSON cleanJSON |
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
$ brew update | |
Updated Homebrew from 2921795 to c20622a. | |
Updated 1 tap (homebrew/core). | |
==> New Formulae | |
parquet-tools | |
==> Updated Formulae | |
buku gst-plugins-good kubernetes-cli | |
gst-editing-services gst-plugins-ugly solr | |
gst-libav gst-python tippecanoe | |
gst-plugins-bad gst-validate |
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
command daemon_RouteRequest requestArray | |
-- this is the core handler that lib_Daemon dispatches | |
set the itemdelimiter to "/" | |
request_DeconstructArray requestArray, socketID, someMethod, someRoute, queryString, requestUrl | |
switch someMethod | |
case "GET" | |
process_GET someRoute, socketID, requestArray | |
break | |
case "POST" | |
process_POST someRoute, socketID, requestArray |