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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>CSS to obfuscate text</title> | |
<style> |
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
@echo off | |
:: Required version of tree-sitter-cli (TODO: update manually as needed) | |
set "treesitter=0.15.14" | |
::======================================= | |
:: Constants |
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 a number to a different base (e.g., from hex to decimal). | |
//Returns a string representation of the number, or NaN if `num` does not represent a number of the specified base. | |
function changeBase(num, fromRadix, toRadix){ | |
if(!(1*fromRadix) || fromRadix%1 !== 0 || fromRadix < 2 || fromRadix > 36){ | |
throw new RangeError(`'fromRadix' must be an integer between 2 and 36, inclusive.`); | |
} | |
if(!(1*toRadix) || toRadix%1 !== 0 || toRadix < 2 || toRadix > 36){ | |
throw new RangeError(`'toRadix' must be an integer between 2 and 36, inclusive.`); | |
} | |
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
/** | |
* A more robust 'typeof'. | |
* https://gist.github.com/wizard04wsu/8055356 | |
* | |
* | |
* For each of the type testing methods, the only parameter is the item to be tested. These methods do not perform coercion. | |
* | |
* is(o) - Returns the item's type. | |
* - NaN is considered its own type (instead of a number), since it essentially represents something that cannot be converted to a number. | |
* - For objects, the type of the object is given instead of just 'object' (e.g., 'Array'). |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Ellipsis Box</title> | |
<style> |
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
//http://www.w3.org/TR/notifications/ | |
//https://developer.mozilla.org/en-US/docs/Web/API/notification | |
//Notifier.isSupported | |
// | |
//Notifier.permission //"granted", "denied", or "default" | |
// | |
//Notifier.requestPermission([callback]) //first argument of callback is the current permission | |
// | |
//Notifier.notify(title[, options]) |
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
Function getUBound(arr) | |
getUBound = -1 | |
On Error Resume Next | |
getUBound = UBound(arr) | |
On Error GoTo 0 | |
End Function | |
Function getLength(arr) | |
getLength = getUBound(arr) + 1 | |
End Function |
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
//month names, weekday names, and ordinal indicators are in English | |
// Date.now() | |
// Date.fromISOString(isoStr) | |
// Date.timeBetween(date1, date2) | |
// dat.isLeapYear() | |
// dat.isUTCLeapYear() | |
// dat.getDaysInMonth() | |
// dat.getUTCDaysInMonth() | |
// dat.getMonthName() |
NewerOlder