# install dnsmasq
brew install dnsmasq
# edit configuration
echo "address=/.localhost/127.0.0.1" | tee /opt/homebrew/etc/dnsmasq.d/wildcard-localhost.conf
# start service
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
char findFirstDigit(char *string, size_t length); | |
char findLastDigit(char *string, size_t length); | |
int main() { | |
FILE *pFile; | |
unsigned short lineMax = 255; |
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
/** | |
* Array.prototype rewrite for functional generator compatibilities + some extra | |
*/ | |
function* range({start=0, stop, step=1}) { | |
for (let i = start; i < stop; i+=step) { | |
yield i; | |
} | |
} |
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
# -*- coding: utf-8 -*- | |
# This hack adds a new Meta option "db_column_prefix". If not None all | |
# database columns in a model will be prepended with this prefix (the | |
# database columns, not the attributes). See Person model for an | |
# example. | |
# | |
# Issues: | |
# - How to set a prefix for a m2m table? - If "through" argument is | |
# not specified on a M2MField, Django automatically adds a model |
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
/** | |
* @namespace registerCheatCode | |
*/ | |
/** | |
* @typedef {object} registerCheatCode~api | |
* @property {registerCheatCode~api~on} on | |
* @property {registerCheatCode~api~remove} remove | |
* @property {registerCheatCode~api~register} register | |
*/ |