Skip to content

Instantly share code, notes, and snippets.

View orther's full-sized avatar
🏠
Working from home

Brandon Orther orther

🏠
Working from home
View GitHub Profile
@orther
orther / Master List of Logical Fallacies.md
Last active May 26, 2021 11:48
Master List of Logical Fallacies
    • Master List of Logical Fallacies
  •  Fallacies are fake or deceptive arguments, "junk cognition," that is, arguments that seem irrefutable but prove nothing. Fallacies often seem superficially sound and they far too often retain immense persuasive power even after being clearly exposed as false. Like epidemics, fallacies sometimes "burn through" entire populations, often with the most tragic results, before their power is diminished or lost. Fallacies are not always deliberate, but a good scholar’s purpose is always to identify and unmask fallacies in arguments. Note that many of these definitions overlap, but the goal here is to identify contemporary and classic fallacies as they are used in today's discourse. Effort has been made to avoid mere word-games (e.g., "The Fallacist's Fallacy," or the famous "Crocodile's Paradox" of classic times), or the so-called "fallacies" of purely formal and symbolic, business and financial, religious or theological logic.  No claim is made to "academic rigor" in this
@orther
orther / idb-workaround.py
Created May 24, 2021 00:54 — forked from adapptor-kurt/idb-workaround.py
Helps Flipper connect to physical iOS devices more reliably.
#!/usr/bin/env python3
# See https://github.com/facebook/flipper/issues/262
import os
import sys
import syslog
import shlex
import time
import subprocess
@orther
orther / machine.js
Last active May 8, 2021 06:58
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
// - XState (all XState exports)
@orther
orther / machine.js
Created April 29, 2021 08:54
Generated by XState Viz: https://xstate.js.org/viz
const what_can_i_order = {
id: 'what_can_i_order',
type: 'compound',
initial: 'consulting_bom_team',
states: {
consulting_bom_team: {
on: {
CONSULTED: 'done'
}
},
@orther
orther / MEMOIZE.md
Created April 20, 2021 05:36 — forked from mrousavy/MEMOIZE.md
Memoize!!! 💾 - a react (native) performance guide
In computing, memoization or memoisation
is an optimization technique used primarily
to speed up computer programs by storing
the results of expensive function calls and  
returning the cached result when the same
inputs occur again.                                         
                                                     — wikipedia
@orther
orther / aws-iot-update-thing-shadow-lambda-function.js
Created January 15, 2021 07:38 — forked from dave-malone/aws-iot-update-thing-shadow-lambda-function.js
AWS Lambda function example of how to update IoT Thing Shadows
const AWS = require('aws-sdk')
AWS.config.region = process.env.AWS_REGION
const iotdata = new AWS.IotData({
endpoint: process.env.MQTT_BROKER_ENDPOINT,
accessKeyId: process.env.ACCESS_KEY_ID,
secretAccessKey: process.env.SECRET_ACCESS_KEY
})
@orther
orther / parler-video.md
Created January 14, 2021 17:49 — forked from kylemcdonald/parler-video.md
How to view a video on Parler.

How to view a video on Parler

Let's say you have a video ID, like wfy02V209EwU taken from this map

The link for the video kiBnNejo0JW0 is at https://video.parler.com/ki/Bn/kiBnNejo0JW0. Notice that the link is: https://video.parler.com/ followed by the first two characters of the video ID, then /, then the next two characters, another /, and the video ID.

But if you click on this, you will get an error.

This is because the Parler video servers are still running (as of January 12) but the Domain Name System (DNS) is not running.

@orther
orther / machine.js
Last active November 13, 2020 04:28
Generated by XState Viz: https://xstate.js.org/viz
const bleManager = Machine({
id: 'bleManager',
initial: 'disconnected',
context: {
phoneBleState: null,
session: null,
publisher: null,
streams: null,
token: null
},
@orther
orther / machine.js
Created November 13, 2020 03:53
Generated by XState Viz: https://xstate.js.org/viz
const video = Machine({
id: 'video',
initial: 'disconnected',
context: {
sessionId: null,
session: null,
publisher: null,
streams: null,
token: null
},
@orther
orther / machine.js
Created November 11, 2020 19:16
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions