Skip to content

Instantly share code, notes, and snippets.

View roryokane's full-sized avatar

Rory O’Kane roryokane

View GitHub Profile
@roryokane
roryokane / Lemongrass Thai Dinner Menu (Test Page).html
Created January 21, 2014 23:25
Price Clarifier, an unfinished Greasemonkey user script to fix misleading currency amounts on all web pages. I release it (the parts that are mine) under the MIT License.
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Dinner Menu</title>
<link rel="stylesheet" href="style.css">
<!--mstheme--><link rel="stylesheet" type="text/css" href="_themes/099tgfp_natural_threelayout/099t1011.css"><meta name="Microsoft Theme" content="099tgfp_natural_threelayout 1011, default">
<style type="text/css">
.style7 {
font-size: xx-small;
@roryokane
roryokane / with_stdout.rb
Created September 11, 2013 02:52
Ruby method `with_stdout` lets you output to an arbitrary stream with `puts`, etc., for convenience
# lets you output to an arbitrary stream with `puts`, etc., for convenience
def with_stdout(new_stdout)
old_stdout = $stdout # $stdout usually be STDOUT here, but not if you nest this function
$stdout = new_stdout
yield
$stdout = old_stdout
end
@roryokane
roryokane / message.md
Last active December 20, 2015 20:19
“[rust-dev] New Rust runtime turned on. What next?” – formatted version of mailing list message
@roryokane
roryokane / Unicode symbols for copy-pasting.txt
Last active December 18, 2015 14:39
Unicode symbols (mostly punctuation) for copy-pasting
Unicode symbols for copy-pasting
(this file is UTF-8 encoded)
apostrophe
http://en.wikipedia.org/wiki/Apostrophe
quotation marks
http://en.wikipedia.org/wiki/Quotation_mark
@roryokane
roryokane / template Sikuli script.sikuli
Created May 29, 2013 18:08
template Sikuli script (in Jython)
# app name: do thing
def mainAction():
main_region = None#TODO literal region
main_region.click(None)#TODO whatever actions
App.focus("")#TODO app name string e.g. "Sikuli IDE"
for i in range(1):
mainAction()
var HomeURL = 'http://syntax.ubergibson.com/';
var SHJSLoaded = false;
var SHJSSyntaxLoaded = false;
var SyntaxHighlighted = false;
function shjsLoaded() {
SHJSLoaded = true;
if (SHJSSyntaxLoaded && !SyntaxHighlighted) {
SyntaxHighlighted = true;
sh_highlightDocument();
@roryokane
roryokane / README.md
Last active December 11, 2015 09:08
MIT/GNU Scheme basic testing framework – test that function outputs given inputs are equal to expected values.

Here is a testing framework I wrote (for CS 360 class). You can use it to test if your Scheme functions give the correct output. Here’s an example of how you use it:

(load "test-framework.scm")
(load "foo.scm")


(test-with-cases foo
  (list
    '(( 1 1 ) 2)

'(( 10 5 ) 15)

@roryokane
roryokane / .rbenv-version
Last active December 11, 2015 08:09
[Colossal Cue Adventure](http://adventure.cueup.com/) puzzle solvers
1.9.3-p327
@roryokane
roryokane / README.md
Last active December 10, 2015 01:28
random and non-random dot distributions side by side
@roryokane
roryokane / kernighan_2015-10-20_q&a_notes.md
Last active October 21, 2015 08:19
A summarized transcript of Brian Kernighan’s 2015-10-20 Q&A at Paperless Post

A summarized transcript of Brian Kernighan’s 2015-10-20 Q&A

The Q&A was at Paperless Post on 2015-10-20 from 6 to 8 PM.

Transcribed by Rory O’Kane. Typed on a phone and cleaned up later.

Questions from the moderator

First, some questions from an employee of Paperless Post, starting around 6:35 PM.