Skip to content

Instantly share code, notes, and snippets.

View ptcc's full-sized avatar

Tiago Coelho ptcc

  • Portugal
  • 15:48 (UTC +01:00)
View GitHub Profile
function makeHotKeys() {
let commands = {};
const keyMap = {};
let largestKeyValue = 0;
let bitValues = [];
function bitValue(bit) {
bitValues[bit] = bitValues[bit] || 2n ** BigInt(bit);
return bitValues[bit];
}
const peopleFilters = document.querySelector('#ghx-quick-filters ul:nth-of-type(2)');
const child = Array.from(peopleFilters.children);
const reject=(...elements)=>item=>!elements.includes(item.innerText);
peopleFilters.replaceChildren(...child.filter(reject("Only My Issues","Recently Updated")).sort(()=>Math.random()-0.5));
@ptcc
ptcc / Universal Reconciliation.md
Created January 17, 2020 15:36 — forked from spsaucier/Universal Reconciliation.md
A scriptural argument for Christ's universal reconciliation of mankind to himself. See also https://gist.github.com/spsaucier/f8ac91d5f0fc3c6f34aa8f724ae0b95f for companion arguments.

Universal Reconciliation

The doctrine that Christ will eventually bring all men to himself, as opposed to eternal damnation or annihilation

AKA Patristic Universalism, Universal Restoration, Ultimate Redemption/Reconciliation, Hopeful Inclusivism, Doctrine of Inclusion, The Larger Hope, The Greater Faith, Universal Salvation, apokatastasis, etc.

It is not pluralistic universalism or 'pop' universalism.

Notable terms

javascript:(function(){function mouseEvent(type, sx, sy, cx, cy) { var evt; var e = { bubbles: true, cancelable: (type != "mousemove"), view: window, detail: 0, screenX: sx, screenY: sy, clientX: cx, clientY: cy, ctrlKey: false, altKey: false, shiftKey: false, metaKey: false, button: 0, relatedTarget: undefined }; if (typeof( document.createEvent ) == "function") { evt = document.createEvent("MouseEvents"); evt.initMouseEvent(type, e.bubbles, e.cancelable, e.view, e.detail, e.screenX, e.screenY, e.clientX, e.clientY, e.ctrlKey, e.altKey, e.shiftKey, e.metaKey, e.button, document.body.parentNode); } else if (document.createEventObject) { evt = document.createEventObject(); for (prop in e) { evt[prop] = e[prop]; } evt.button = { 0:1, 1:4, 2:2 }[evt.button] || evt.button; } return evt;}function dispatchEvent (el, evt) { if (el.dispatchEvent) { el.dispatchEvent(evt); } else if (el.fireEvent) { el.fireEvent('on' + ty
@ptcc
ptcc / flattenArray.js
Created March 15, 2017 18:14
flatten an array in ecmascript
const flattenArray = (nestedArray) =>
(nestedArray || []).reduce(
(acc, element) =>
Array.isArray(element)
? [...acc, ...flattenArray(element)]
: [...acc, element]
,[])