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
inherit STD_VIRTUAL_MAP; | |
private nosave int *dimensions = ({25, 25}); // width, height | |
private nosave int WIDTH = 0, HEIGHT = 1; | |
private nosave mixed *maze; | |
private nosave int MIN_X = 0, MIN_Y = 1, MAX_X = 2, MAX_Y = 3; | |
private nosave int WALL = 1; | |
private nosave int PATH = 0; |
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
inherit STD_DAEMON ; | |
void generate(int dim, int numDoors) ; | |
void add_outer_walls() ; | |
int add_entrance() ; | |
void add_inner_walls(int h, int minX, int maxX, int minY, int maxY, int gate) ; | |
void add_h_wall(int minX, int maxX, int y) ; | |
void add_v_wall(int minY, int maxY, int x) ; | |
string display() ; | |
int do_generate(string arg) ; |
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
# Define the array of directories | |
$repos = @( | |
"mud.gesslar.dev", | |
"mupdate", | |
"ThreshBeep", | |
"ThreshBuff", | |
"ThreshChat", | |
"ThreshColorPercent", | |
"ThreshCommandRepeater", | |
"ThreshCopy", |
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
// /adm/daemons/websocket_echo.c | |
// Test websocket with echo.websocket.org | |
// | |
// Created: 2024/06/30: Gesslar | |
// Last Change: 2024/06/30: Gesslar | |
// | |
// 2024/06/30: Gesslar - Created | |
#include <daemons.h> | |
#include <websocket.h> |
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
-- After making changes to the items table, you will need to run: lua resetProfile() | |
-- So that it will reload. | |
MuddleHelper = MuddleHelper or { | |
items = { | |
{ name = "ThreshBuff", path = "D:/git/threshbuff", active = true, helper = nil }, | |
{ name = "ThreshKeepalive", path = "D:/git/ThreshKeepalive", active = true, helper = nil }, | |
{ name = "ThreshColorPercent", path = "D:/git/ThreshColorPercent", active = true, helper = nil }, | |
} | |
} |
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
name: Build project using muddler and upload artifact | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: |
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
/* | |
# Convert binary encoded object SID to a string | |
# (eg. S-1-5-21-1004336348-1177238915-682003330-512) | |
# | |
# SID format: https://technet.microsoft.com/en-us/library/cc962011.aspx | |
# | |
# ldapjs `searchEntry` has attribute `raw` that holds the raw | |
# values, including the `objectSid` buffer when one exists. Pass that | |
# buffer to get the string representation that can then be easily | |
# used in LDAP search filters, for example. |
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
/* | |
# Convert binary encoded object SID to a string | |
# (eg. S-1-5-21-1004336348-1177238915-682003330-512) | |
# | |
# SID format: https://technet.microsoft.com/en-us/library/cc962011.aspx | |
# | |
# ldapjs `searchEntry` has attribute `raw` that holds the raw | |
# values, including the `objectSid` buffer when one exists. Pass that | |
# buffer to get the string representation that can then be easily | |
# used in LDAP search filters, for example. |
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
/* | |
Takes: | |
HTTP/1.1 400 Bad Request | |
Server: cloudflare | |
Date: Sun, 24 Dec 2023 20:51:56 GMT | |
Content-Type: text/html | |
Content-Length: 155 | |
Connection: close | |
CF-RAY: - |
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
// Skippable characters are spaces and punctuation and symbols | |
const skippable = char => char.match(/[\s\p{P}\p{S}]/u) | |
// Tests for numeric characters | |
const numeric = char => char.match(/\d/u) | |
// The whole meaty sandwich | |
const is_palindrome = word => { | |
// Grab the length of the word(s) | |
const len = word.length |
NewerOlder