Skip to content

Instantly share code, notes, and snippets.

View seeARMS's full-sized avatar

Colin Armstrong seeARMS

View GitHub Profile
@seeARMS
seeARMS / keybase.md
Created June 10, 2015 05:48
Keybase Proof

Keybase proof

I hereby claim:

  • I am seeARMS on github.
  • I am colinarms (https://keybase.io/colinarms) on keybase.
  • I have a public key whose fingerprint is C4FD 386E A03E D823 4612 22FA 9B01 0991 CB63 48DC

To claim this, I am signing this object:

# Exponential backoff using Ruby lambdas
#
# Continuously retry sending a request at exponentially increasing
# values, with a top at 1 second
num_retries = 5
exp_backoff = ->(i) { [1, (0.5 * (2.0**(i/2.0) - 1.0))].min }
# stores the delays
Verifying that +armstrong is my blockchain ID. https://onename.com/armstrong
@seeARMS
seeARMS / Hacker News monitoring
Created February 25, 2020 06:33
Huginn Scenarios
{
"schema_version": 1,
"name": "News - Hacker News",
"description": "Monitor Hacker News for relevant discussion keywords you're interested in.",
"source_url": false,
"guid": "3fe5a3bf0684c6bd4c8bc731b62e7093",
"tag_fg_color": "#ffffff",
"tag_bg_color": "#5bc0de",
"icon": "gear",
"exported_at": "2020-02-23T05:55:49Z",
@seeARMS
seeARMS / tweet-node.tsx
Created July 20, 2022 15:29
Tweet node
import { mergeAttributes, Node } from "@tiptap/core"
import { ReactNodeViewRenderer } from "@tiptap/react"
import Component from "./StaticTwitter"
export default Node.create({
name: "tweet-embed",
group: "block",
addAttributes() {
return {