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
timer T | |
// Controls the stack size for certain stack inserters for Gleba. The inserters | |
// get stuck when handling items of different type (they keep waiting for items | |
// which do not exist, blocking the delivery of other types of items). To avoid | |
// this, we temporarily set the stack size to 1 every minute or so, to force | |
// unblocking such inserters. | |
// Outputs: | |
// X - the stack size to currently be used. |
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
timer T | |
// Inputs: | |
// A - current number of eggs in the chests *and* the burning inserters. | |
// B - number of wanted fresh eggs in the chests. (We might end up with slightly | |
// more than that, depending on the timing of the inserters.) | |
// C - maximum allowed age of eggs in the chests, in minutes. When setting | |
// this, remember that some eggs might get stuck in the input-inserters' | |
// hands, effectivelly doubling their "age before being burned" value. | |
// (We have no way to tell the inserters to finish inserting their current |
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
I bought a Flic button and wanted to use it with Smart AudioBook Player, so I decompiled the APK to discover intents. | |
Perhaps this might help someone. | |
package: ak.alizandro.smartaudiobookplayer | |
actions: | |
<action android:name="ak.alizandro.smartaudiobookplayer.ActionPlayPause"/> | |
<action android:name="ak.alizandro.smartaudiobookplayer.ActionPlay"/> | |
<action android:name="ak.alizandro.smartaudiobookplayer.ActionPause"/> | |
<action android:name="ak.alizandro.smartaudiobookplayer.ActionRewindBig"/> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<providers> | |
<!-- Google maps classic --> | |
<provider id="10020" type="0" visible="true" background="-1"> | |
<name>Google</name> | |
<mode>Classic</mode> | |
<area></area> | |
<url><![CDATA[http://mt{s}.google.com/vt/lyrs=m@140&hl=en&x={x}&y={y}&z={z}]]></url> | |
<serverPart>0;1</serverPart> | |
<zoomPart>{z}-8</zoomPart> |
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
<?php | |
/* Enter your OKAPI's URL here. */ | |
$okapi_base_url = "https://opencaching.pl/okapi/"; | |
/* Enter your Consumer Key here. */ | |
$consumer_key = "YOUR_KEY_HERE"; | |
/* Caches found by this user will be EXCLUDED from the result. */ | |
$username = "USERNAME_HERE"; |
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
<?php | |
$okapi_base_url = "https://opencaching.pl/okapi/"; | |
$json = file_get_contents($okapi_base_url."services/apisrv/stats"); | |
$data = json_decode($json); | |
print "Number of OpenCaching.PL users: ".$data->user_count; |
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
<?php | |
/* USOS API Base URL, trailing slash included. */ | |
$usosapi_base_url = ''; | |
/* Consumer Key to use. */ | |
$consumer_key = ''; | |
$consumer_secret = ''; | |
/* |
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
<?php | |
error_reporting(E_ALL); | |
ini_set("display_errors", 1); | |
/* USOS API Base URL, trailing slash included. */ | |
$usosapi_base_url = ''; | |
/* URL of THIS script. Required for callback support. */ | |
$self_url = ''; |