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
// Types for the result object with discriminated union | |
type Success<T> = { | |
data: T; | |
error: null; | |
}; | |
type Failure<E> = { | |
data: null; | |
error: E; | |
}; |
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
Jan 9 10:16:53 asrock org.gnome.Shell.desktop[7997]: The XKEYBOARD keymap compiler (xkbcomp) reports: | |
Jan 9 10:16:53 asrock org.gnome.Shell.desktop[7997]: > Warning: Unsupported maximum keycode 569, clipping. | |
Jan 9 10:16:53 asrock org.gnome.Shell.desktop[7997]: > X11 cannot support keycodes above 255. | |
Jan 9 10:16:53 asrock org.gnome.Shell.desktop[7997]: > Internal error: Could not resolve keysym Invalid | |
Jan 9 10:16:53 asrock org.gnome.Shell.desktop[7997]: Errors from xkbcomp are not fatal to the X server | |
Jan 9 10:16:56 asrock kernel: [ 1059.772067] wlp4s0: No active IBSS STAs - trying to scan for other IBSS networks with same SSID (merge) | |
Jan 9 10:17:00 asrock kernel: [ 1064.048187] rfkill: input handler enabled | |
Jan 9 10:17:01 asrock CRON[8002]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly) | |
Jan 9 10:17:01 asrock CRON[8003]: (unms) CMD (/home/unms/app/update.sh --cron > /dev/null 2>&1 || true) | |
Jan 9 10:17:19 asrock systemd[1]: fprintd.service: Succeeded. |
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 iterate(i) { | |
var result = []; | |
do { | |
var next = i.iterateNext(); | |
result[result.length] = next; | |
} while (next != null) | |
return result; | |
} | |
iterate(document.evaluate("//a[@href and data-mediatype]", document, null, XPathResult.ANY_TYPE)) |
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 scrollIntoViewSensibly | |
* Author: Jonathan Paugh; MIT License | |
* Source: https://gist.github.com/jpaugh/265bbaadd7d3d243d2d52e558863847d | |
* | |
* Scroll the parent element until the child is visible. This is like the 'nearest' option to [Element.scrollIntoView], | |
* except that it actually works --- even in IE, and even when the child is partially visible already. It's not a drop-in | |
* replacement, though: to make a polyfil for [Element.scrollIntoView], you'd want to find the nearest scrollable parent | |
* yourself, and then accept that all options passed to the polyfil would be ignored. | |
* |
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.Collections.Generic; | |
using System.Linq; | |
namespace AsEnumerableVsCasting | |
{ | |
class AsEnumerableVsCasting | |
{ | |
static void Main(string[] args) | |
{ |
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
var bcv_parser, bcv_passage, bcv_utils, root, | |
hasProp = {}.hasOwnProperty; | |
root = self; | |
bcv_parser = (function() { | |
bcv_parser.prototype.s = ""; | |
bcv_parser.prototype.entities = []; |
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
### Keybase proof | |
I hereby claim: | |
* I am jpaugh on github. | |
* I am jpaugh (https://keybase.io/jpaugh) on keybase. | |
* I have a public key ASBMWiTSoNsFFtCJvDAGy8pd9WKJQjjQLuZBxbFl6ejDCwo | |
To claim this, I am signing this 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
if _BASHRC_WAS_RUN 2>/dev/null; then | |
:; | |
else # Stuff that only needs to run the first time we source .bashrc. | |
# Useful to allow re-sourcing new changes, without breaking/changing things in this section | |
alias _BASHRC_WAS_RUN=true | |
# ... continued ... | |
fi | |
# Last mod time of a file or files | |
get_file_timestamp () { |
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
First | |
----- | |
15 | |
He sends out his commandment to the earth. | |
His word runs (very) swiftly. | |
16 | |
He gives snow like wool, | |
and scatters frost like ashes. | |
17 | |
He hurls down his hail like pebbles. |
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 list of `Range's. This is the comprehensive ref type, and | |
-- can form an arbitrarily complex reference to the scripture. | |
data Reference = Reference [Range] -- [ x ] means list of x's | |
deriving (Show, Eq) | |
-- |A Range of verses, or a single ref. "Range" is a bit of a misnomer, | |
-- since we can have a single reference "Range". | |
data Range | |
= Range |
NewerOlder