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
using System; | |
using System.Net; | |
using System.IO; | |
using System.IO.Compression; | |
using System.Collections.Generic; | |
using System.Text.RegularExpressions; | |
using System.Diagnostics; | |
using System.Text; | |
using System.Security.Cryptography; | |
using System.Security.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
<?php | |
namespace SBRL; | |
/** | |
* A teeny-tiny templating engine. | |
* @author Starbeamrainbowlabs | |
* @version v0.4 | |
* @lastModified 19th December 2020 | |
* @license https://www.mozilla.org/en-US/MPL/2.0/ Mozilla Public License 2.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
/* | |
* Your init script | |
* | |
* Atom will evaluate this file each time a new window is opened. It is run | |
* after packages are loaded/activated and after the previous editor state | |
* has been restored. | |
* | |
* An example hack to log to the console when each text editor is saved. | |
* | |
* atom.workspace.observeTextEditors (editor) -> |
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
"use strict"; | |
/** | |
* Parses the source CSV into an array of objects. | |
* @param {string} source The source CSV to parse. | |
* @param {Boolean} [parse_numbers=true] Whether number-like values should be parsed with parseFloat() | |
* @returns {[object]} An array of objects. The keys are taken from the csv header. | |
*/ | |
export default function ParseCSV(source, parse_numbers = true) { |
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
import time | |
import io | |
import sys | |
from loguru import logger | |
import numpy | |
import tensorflow as tf | |
from ..polyfills.string import removeprefix, removesuffix | |
from .normalise_text import normalise as normalise_text |
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
"use strict"; | |
import EventEmitter from 'events'; | |
import child_process from 'child_process'; | |
/** | |
* Helper method that waits for an event to be fired on a given object. | |
* @param {EventEmitter} obj The object that will fire the event - must inherit from EventEmitter | |
* @param {string} event_name The name of the event to wait for. | |
* @return {Promise} A promise that resolves when the specified event is fired on the given object. |
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
class _Getch: | |
"""Gets a single character from standard input. Does not echo to the | |
screen.""" | |
def __init__(self): | |
try: | |
self.impl = _GetchWindows() | |
except ImportError: | |
self.impl = _GetchUnix() | |
def __call__(self): return self.impl() |
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/env bash | |
########################## | |
### Colour Definitions ### | |
#### ANSI color codes #### | |
RS="\033[0m" # reset | |
HC="\033[1m" # hicolor | |
UL="\033[4m" # underline | |
INV="\033[7m" # inverse background and foreground | |
FBLK="\033[30m" # foreground black |
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
"use strict"; | |
/** | |
* Generates various VT100 ANSI escape sequences. | |
* Ported from C#. | |
* @licence MPL-2.0 <https://www.mozilla.org/en-US/MPL/2.0/> | |
* @source https://gist.github.com/a4edd3204a03f4eedb79785751efb0f3#file-ansi-cs | |
* @author Starbeamrainbowlabs | |
* GitHub: @sbrl | Twitter: @SBRLabs | Reddit: u/Starbeamrainbowlabs | |
***** Changelog ***** |
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
"use strict"; | |
/****************************************************************************** | |
*************************** ES6 Bezier Curve Class *************************** | |
****************************************************************************** | |
* v0.4 | |
****************************************************************************** | |
* A bezier curve class that supports an arbitrary number of control points. | |
* Originally written for my 2D Graphics coursework at University. | |
* | |
* Bug reports can be made as a comment on this gist, or |
NewerOlder