Skip to content

Instantly share code, notes, and snippets.

View tifletcher's full-sized avatar

Themba Fletcher tifletcher

  • CrunchBase
  • San Francisco, CA
View GitHub Profile
@tifletcher
tifletcher / fossil2bitbucket.md
Last active December 16, 2015 07:38
Quick Export: (local) fossil -> (remote) git

fossil2bitbucket.sh

###NOTES:

  • remote path is hardcoded to MY BITBUCKET PATH!!
  • create your remote before running this script
  • this will export from and push the first repo it finds in cwd
@tifletcher
tifletcher / colorize-unified-diff.md
Last active December 16, 2015 07:38
Colorize Unified Diff

Colorize Unified Diff

USAGE

diff -u <fileA> <fileB> | colorize-unified-diff

NOTES

  • Tested mostly on output from 'fossil diff' -- YMMV
@tifletcher
tifletcher / diy-backup.md
Last active December 16, 2015 07:39
DIY Backup

DIY Backup

Usage

This goes in crontab:

  0  4   *   *   *   /<full path to>/bin/backup.sh
@tifletcher
tifletcher / f-diff.md
Last active December 6, 2022 15:00
Colorized diffs for fossil-scm

Colorized Diffs on the CLI for Fossil

Usage

  f-diff <options - passed unmodified to 'fossil diff'>

Notes

  • 2013-04-30: Now requires Colorize Unified Diff on your path somewhere. For a standalone version see this gist's first revision.
@tifletcher
tifletcher / readme.md
Last active December 17, 2015 15:29
Alice's Adventures in Javascript
<style type="text/css">header, footer, aside{display: none}</style>
§
> 'In my youth,' Father William replied to his son,
'I feared it might injure the brain;
But, now that I'm perfectly sure I have none,
Why, I do it again and again.'
@tifletcher
tifletcher / cheshirecat.js
Last active December 17, 2015 15:39
cheshirecat.js
window.onload = function () {
var style = document.createElement("style")
style.type = "text/css"
style.innerHTML = [
"input {width: 100%; outline: none; border:none; font-size: large; margin-left: 1em}",
"pre {width: 100%; margin: 1em; 0; 1em; 1em;}"
].join(" ")
document.body.appendChild(style)
@tifletcher
tifletcher / readme.md
Last active December 17, 2015 15:39
Advice from a Caterpillar
<style type="text/css">header, footer, aside{display: none}</style>
§

Das Blinkenlights

fingerpoken here

@tifletcher
tifletcher / readme.md
Created May 27, 2013 22:33
Advice from a Caterpillar
<style type="text/css">header, footer, aside{display: none}</style>
§

What could this mean?

0100 0001 0110 1100 0110 1001 0110 0101
  • UInt32? 1,097,623,909
@tifletcher
tifletcher / readme.md
Created May 27, 2013 22:36
Advice from a Caterpillar
<style type="text/css">header, footer, aside{display: none}</style>
§

What could this mean?

0100 0001 0110 1100 0110 1001 0110 0101

When converting a DBCS mixed-width encoding to and from Unicode, the full-width characters in such a mixed-width encoding are mapped to the full-width compatibility characters in the FFxx block, ...

@tifletcher
tifletcher / readme.md
Created May 28, 2013 04:48
Advice from a Caterpillar
<style type="text/css">header, footer, aside{display: none}</style>
§

Context

  • Data is meaningless without context
  • Computation without context is pointless

What is that caterpillar smoking?