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
public class PermissionNode : List<PermissionNode> { | |
/// <summary> | |
/// Represents each text-based node inside of a permission string | |
/// </summary> | |
public string Key { get; set; } | |
/// <summary> | |
/// The original, non-split permission string for this node | |
/// </summary> | |
public string Original { get; set; } |
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
// NOTE: requires file "words.txt", which is a JSON array of every possible word guessable (i.e. both answers and valid guesses that will never be answers) | |
// see next file for word list | |
const fs = require('fs'); | |
const data = fs.readFileSync('words.txt').toString(); | |
const words = JSON.parse(data);//data.split('\r\n'); // if using 1 word per line | |
const candidates = []; | |
// NOTE: Capitalize all letters in these values. I got lazy. |
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
/** | |
* Returns a number that is n-bits aligned, where n is the number of bits specified | |
* @param x The input number to be aligned | |
* @param bits The amount of bits to align the number to | |
* @returns `x` aligned to the nearest n-bits, where `n` is the specified amount of bits | |
*/ | |
function alignToBits(x, bits) { | |
return (x + (bits - 1)) & (-1 * bits); | |
} |
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": "Alabama", | |
"value": "AL" | |
}, | |
{ | |
"name": "Alaska", | |
"value": "AK" | |
}, | |
{ |
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"?> | |
<states> | |
<state name="Alabama" value="AL" /> | |
<state name="Alaska" value="AK" /> | |
<state name="Arizona" value="AZ" /> | |
<state name="Arkansas" value="AR" /> | |
<state name="California" value="CA" /> | |
<state name="Colorado" value="CO" /> | |
<state name="Connecticut" value="CT" /> | |
<state name="Delaware" value="DE" /> |
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
const { inspect } = require('util'); | |
const chalk = require('chalk'); | |
class Output { | |
#l = 0; | |
#c = chalk.grey; | |
constructor(level, color) { | |
this.#l = level; | |
this.#c = color; |
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
## This is a system-wide configuration file for the nano editor. | |
## | |
## Each user can save his own configuration to ~/.nanorc | |
## | |
## See the nanorc(5) man page for details. | |
## Sample initialization file for GNU nano. | |
## | |
## Please note that you must have configured nano with --enable-nanorc | |
## for this file to be read! Also note that this file should not be in |
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
# Fixes error generated from using `mv` with files that have spaces in names | |
IFS=' | |
' | |
for d in ./*/ | |
do | |
cd "$d" | |
for f in ./*/ | |
do | |
cd "$f" |
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
for d in ./*/ | |
do | |
cd $d | |
for file in ./* | |
do | |
infile=`echo "${file:2}"|sed \ | |
-e 's|"\"|"\\"|g' \ | |
-e 's| |\ |g' -e 's|!|\!|g' \ | |
-e 's|@|\@|g' -e 's|*|\*|g' \ | |
-e 's|&|\&|g' -e 's|]|\]|g' \ |
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
--[[ Configuration ]]-- | |
-- Max amount of tendrils on screen at a time | |
max_tendrils = 50 | |
-- How fast the screen updates | |
-- note: Setting it to 0 or less will cause program to not work properly | |
update_speed = 0.25 | |
-- Possible colors tendrils can be | |
-- note: the more you put the same color in a table, the more likely it is to be chosen |
NewerOlder