Skip to content

Instantly share code, notes, and snippets.

@jamiely
jamiely / gist:10117075
Created April 8, 2014 12:29
Programming Books
http://cs.brown.edu/~sk/Publications/Books/ProgLangs/2007-04-26/
@jamiely
jamiely / entry.md
Created June 23, 2014 14:25
iOS Split View Top-Bottom Controller

Summary

Wherein I create a simple top-bottom split view, incorporating pull-to-reveal.

Intro

I needed a container view similar to a split view, but more like a pull-down to refresh. I looked at various options including MGSplitViewController.

def denoms()
[25, 10, 5, 1]
end
# we want to build a table which
# has the amount of cents, and an
# object containing two properties.
# {
# 31 => {
# :count => 3,
@jamiely
jamiely / poker_match.md
Last active August 29, 2015 14:19
poker_match.md
title
Poker Match a Game Using Phaser

Intro

It's been too long since I posted a new entry in this blog. Since I'm not working on anything in particular at the moment, at least in my personal time, I thought I'd comment on the game I wrote in January using the Phaser game framework.

afsd
<div>sadf</div>

MediaWiki Usage Visualization and Web Service API

First and foremost, many thanks to Brian Flad and Core Systems’ UNIX Team for configuring MediaWiki, providing tested mass import mechanisms, and setting up MySQL replication. It’s one thing to setup a service for public use -- it’s another to make it public, accessible, and usable. By skimming the recent changes page, it’s easy to see that the platform is gaining traction as several groups have started using it.

In order to show our gratitude, Jamie Ly of Learning Lab and I decided to build a web application that would visualize the recent changes page. To accomplish this several things had to happen:

  1. Populate recent changes data into a datastore independent of MediaWiki’s
  2. Make t

Lesson Plan

Getting something running

  • How to represent Tic Tac Toe data
  • How to structure a program
    • Abstraction
    • High-level design
    • Pseudocode
  • Debugging
    • Javascript alerts
  • Array indicies
--- subscribe2.bak.php 2010-10-08 13:05:14.000000000 -0400
+++ subscribe2.php 2010-10-08 14:39:48.000000000 -0400
@@ -53,30 +53,51 @@
// start our class
class s2class {
// variables and constructor are declared at the end
-
+ function should_use_ssl() {
+ return isset($this->subscribe2_options['use_ssl']) && $this->subscribe2_options['use_ssl'] == 'yes';
+ }
@jamiely
jamiely / experiment.sh
Created December 5, 2010 19:26
A file to run all the Wattch experiments.
#!/bin/bash
# runs a single experiment
base=$1
commandstring=$2
echo "Operating on file ${1} ${base}"
sim_opts=" -fastfwd 1000000 -max:inst 10000000 "