Skip to content

Instantly share code, notes, and snippets.

@paf31
paf31 / 24days.md
Last active August 8, 2023 05:53
24 Days of PureScript

This blog post series has moved here.

You might also be interested in the 2016 version.

@seanhess
seanhess / index.jsx
Last active August 29, 2015 14:16
Cursor Proposal
const React = window.React = require('react')
const {map, append, partial, curry, compose} = require('ramda')
const shortid = require('shortid')
// STATE --------------------------------------------------------
// returns a state object, and automatically creates sub-cursors
// state.items = cursor to items
// state.items[0] = cursor to items[0].
@robertknight
robertknight / hypothesis-webextensions.md
Last active January 23, 2018 18:57
Hypothesis Firefox WebExtensions Prototype Instructions

Hypothesis Firefox WebExtensions prototype

  1. Install Firefox Developer Edition from https://www.mozilla.org/en-GB/firefox/developer/ and run it
  2. Enter "about:config" in Firefox's URL bar and press Enter
  3. Search for "xpinstall.signatures.required" and double click the setting to toggle it to "false"
  4. Download the Firefox WebExtensions prototype build from https://s3.amazonaws.com/io.github.robertknight/hypothesis/prototypes/hypothesis-stage.xpi
  5. Open it in Firefox by going to File -> Open and selecting the downloaded extension

What works:

  • Annotation badge. Looks slightly more attractive than Chrome.
@mrmurphy
mrmurphy / prepend.bash
Created May 27, 2016 16:45
Insert a line at the beginning of files matching search pattern
# Requires siver-searcher to be installed
FILES=$(ag "<search term here, can be regex>" -l --js)
for i in $FILES; do
echo -e "<stuff to prepend here>\n$(cat $i)" > $i
done