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
# nc_adamant | |
nc_adamant:bar_annealed 107 124 133 | |
nc_adamant:bar_hot 225 245 156 | |
nc_adamant:bar_tempered 121 139 147 | |
nc_adamant:block_annealed 107 124 133 | |
nc_adamant:block_hot 225 245 156 | |
nc_adamant:block_tempered 121 139 147 | |
nc_adamant:cobble 100 117 136 | |
nc_adamant:cobble_hot 65 65 65 | |
nc_adamant:cobble_loose 100 117 136 |
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
Service worker that implements caching and offline fallback for a | |
TiddlyWiki5 instance with tiddlyweb saving hosted on nodejs. | |
This gives you the best of both worlds: a shared, synchronized wiki that | |
you can edit from anywhere and automatically syncs across multiple | |
devices, AND a fallback local version that you can still access when | |
offline, and will queue up changes to be uploaded when you're back | |
online later. | |
When you're offline, the wiki will still load, and you'll still have |
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
#!/usr/bin/perl -w | |
use strict; | |
use warnings; | |
use Sys::Syslog qw( :standard :macros ); | |
use File::Spec::Functions qw(:ALL); | |
use File::Path qw(remove_tree mkpath); | |
use Getopt::Long; | |
use Cwd qw(cwd); | |
use IPC::Open3; |
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
Copyright (C)2019 Aaron Suen <[email protected]> | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in all |
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
Copyright (C)2018-2019 Aaron Suen <[email protected]> | |
Permission is hereby granted, free of charge, to any person obtaining | |
a copy of this software and associated documentation files (the | |
"Software"), to deal in the Software without restriction, including | |
without limitation the rights to use, copy, modify, merge, publish, | |
distribute, sublicense, and/or sell copies of the Software, and to | |
permit persons to whom the Software is furnished to do so, subject | |
to the following conditions: |
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
/* | |
Copyright 2019-2024 Aaron Suen <[email protected]> | |
Permission is hereby granted, free of charge, to any person obtaining a copy of this | |
software and associated documentation files (the "Software"), to deal in the Software | |
without restriction, including without limitation the rights to use, copy, modify, | |
merge, publish, distribute, sublicense, and/or sell copies of the Software, and to | |
permit persons to whom the Software is furnished to do so. | |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, |
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
vector.cross = vector.cross or function(a, b) | |
return { | |
x = a.y * b.z - a.z * b.y, | |
y = a.z * b.x - a.x * b.z, | |
z = a.x * b.y - a.y * b.x | |
} | |
end | |
local function project(player) | |
local camera_z = player:get_look_dir() |
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
local spread = math.pi / 16 | |
local amount = 13 | |
local range = 4 | |
local function doraytrace(start, target) | |
for pointed in minetest.raycast(start, target, false, false) do | |
local pos = pointed.intersection_point | |
minetest.add_particle({ | |
pos = pos, | |
exptime = 1, |
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
local function append(x, a, ...) | |
if not a then return x end | |
return a, append(x, ...) | |
end | |
local function seek(n, x, ...) | |
if n < 0 then error() end | |
if n == 0 then return x end | |
return seek(n - 1, ...) | |
end |
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
#!/usr/bin/perl -w | |
use strict; | |
use warnings; | |
use diagnostics qw(-t -w); | |
use POSIX; | |
use Getopt::Long qw(:config no_ignore_case bundling_override auto_help); | |
use Bot::BasicBot; | |
my $ircserver = 'localhost'; |