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
| function fat() { | |
| local output="${1}" | |
| local files=($(printf "%s\n" "${2}")) | |
| local GCC_ARGS=(${3:-$(printf "%s\n" "-std=c99 -Wall")}) | |
| if [ ${#} -eq 0 ]; then | |
| local argfiles='"<\x1b[93mfile1\x1b[39m> <\x1b[93mfileN\x1b[39m>"' | |
| local argopts='"<\x1b[93mgcc-opt1\x1b[39m> <\x1b[93mgcc-optN\x1b[39m>"' | |
| local argout="<\x1b[93moutput-file\x1b[39m>" |
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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <time.h> | |
| #include <string.h> | |
| #include <math.h> | |
| #include <ctype.h> | |
| int wal_stricmp(const char *a, const char *b) { | |
| int ca, cb; | |
| do { |
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
| /** | |
| * Simple cli command that prints out milliseconds since epoch | |
| * | |
| * If present within $PATH when scriptsort is run, it can be used to | |
| * calculate the time taken to execute a `source /path/to/script` | |
| * execution. | |
| */ | |
| #include <stdio.h> | |
| #include <time.h> |
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
| #!/bin/zsh | |
| # A functon that shows users how to use the script. It describes | |
| # and offers some help text that appears when invoked without | |
| # parameters. | |
| showUsage() { | |
| local tool="\x1b[1;35munpkg\x1b[22;39m" | |
| printf "${tool} <path-to-package.pkg> <destination-directory>\n\n" | |
| printf "${tool} will attempt to unpackage the \x1b[1m.pkg\x1b[0m file provided,\n" | |
| printf "however, if certain expectations are not met, it will stop and inform\n" |
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
| -- Step 1: Create the table without generated columns | |
| create or replace table dates ( | |
| timestamp_column TIMESTAMP_NTZ PRIMARY KEY | |
| ); | |
| -- Create a join table | |
| create or replace table memorable_dates ( | |
| id integer autoincrement, | |
| date timestamp_ntz, |
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
| #!/bin/sh | |
| function volInfo() { | |
| # Flags for verbose output | |
| local verbose=false | |
| # Process optional parameters | |
| while (( "$#" )); do | |
| case "$1" in | |
| --show-name | --verbose | -v | -s) |
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
| { | |
| "apc.electron": { | |
| "frame": false, | |
| "trafficLightPosition": {"x": 7, "y": 5}, | |
| "titleBarStyle": "hidden", | |
| }, | |
| "apc.listRow": { | |
| "fontSize": 18 | |
| }, |
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
| function ship(code) { | |
| const _ne = Object.entries(code) | |
| .reduce((a, [k,v]) => ({ ...a, [k]:v }), {}); | |
| const { defaults = {} } = code; | |
| const [_den, _de] = Object.entries(defaults)?.[0]; | |
| if (typeof module !== 'undefined' && module.exports) { | |
| module.exports = _ne || {}; | |
| } | |
| else if (_den && _de) { globalThis[_den] = _de; } | |
| } |
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
| function ship(code) { | |
| const _ne = Object.entries(code) | |
| .reduce((a, [k,v]) => ({ ...a, [k]:v }), {}); | |
| const { defaults = {} } = code; | |
| const [_den, _de] = Object.entries(defaults)?.[0]; | |
| if (typeof module !== 'undefined' && module.exports) { | |
| module.exports = _ne || {}; | |
| } | |
| else if (_den && _de) { globalThis[_den] = _de; } | |
| } |
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
| (function() { | |
| const HTML = new Proxy( | |
| class HTML { | |
| static create( | |
| name, | |
| content, | |
| style = {}, | |
| attributes = {}, | |
| webComponentName = undefined, | |
| useDocument = undefined, |