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
index2 = (completion->direction < 0) ? index - 1 : index + 1; | |
while ((index2 >= 0) && (index2 < completion->list->size)) | |
{ | |
ptr_completion_word2 = | |
(struct t_gui_completion_word *)(completion->list->data[index2]); | |
if ((ptr_completion_word->nick_completion | |
&& (gui_completion_nickncmp (completion->base_word, | |
ptr_completion_word2->word, | |
length) == 0)) | |
|| (!ptr_completion_word->nick_completion |
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
Date.prototype.isLeapYear = function() { | |
var year = this.getFullYear(); | |
if((year & 3) != 0) return false; | |
return ((year % 100) != 0 || (year % 400) == 0); | |
}; | |
// Get Day of Year | |
Date.prototype.getDOY = function() { | |
var dayCount = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334]; |
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
SECONDS = 1e3; | |
MINUTES = 60 * SECONDS; | |
HOURS = 60 * MINUTES; | |
VERBOSE_AUTO = true; | |
autocraftNames = ['steel', 'plate']; | |
mediumCraftNames = ['kerosene', 'thorium', 'eludium']; | |
slowCraftNames = ['beam', 'slab', 'parchment', 'manuscript']; | |
scienceCraftNames = ['parchment', 'manuscript', 'compendium']; | |
religionBuyNames = ['Black Pyramid', 'Black Nexus', 'Black Core']; |
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
/** | |
* To use: | |
* ``` | |
* ftbJsonToXaeros('paste your waypoints.json contents here'); | |
* ``` | |
* then append to your Xaero's waypoints file(s), located in | |
* `xaero/minimap/<server name>/<dimension>/mw$default_1.txt` | |
*/ | |
const MINECRAFT_COLORS = [ |
OlderNewer