Skip to content

Instantly share code, notes, and snippets.

View gist:9447635a6e6dd7314599
I along with every other person you do business with appreciate professional
courtesy, you’re lack thereof is alarming to me because I’m sure you have a lot
of potential to do well. I strongly advise you man up and act as an adult when
conducting yourself.
Best Regards,
Brenton Bowyer
View gist:ec9413fa59d85ecf0719
(defn paradox
"Will take number of trials and return the average."
(/ (reduce + (take s (repeatedly
#(reduce * 2 (map inc (take-while odd? (repeatedly (fn [] (rand-int 2))))))))) s))
LuminousMonkey / gist:d2ecacc615cb798a8f16
Last active Aug 29, 2015
Contrived Activation Record Experiment - Assembly
View gist:d2ecacc615cb798a8f16
.file "activerecords.c"
.section .rodata
.string "outerFunction z: %d\n"
.globl outerFunction
.type outerFunction, @function
LuminousMonkey / activationrecords.c
Last active Aug 29, 2015
Contrived Activation Record Experiment
View activationrecords.c
#include <stdio.h>
void outerFunction() {
int z = 88;
printf("outerFunction z: %d\n", z);
int main() {
int x = 11;
View gist:746b3519255402c2b2dd
;; Dynamic just means I can use the binding function with it, otherwise it will complain.
(def ^:dynamic x 11)
(defn func1
(println x))
(func1) ;; Prints 11
(binding [x 22]

Keybase proof

I hereby claim:

  • I am LuminousMonkey on github.
  • I am luminousmonkey ( on keybase.
  • I have a public key whose fingerprint is 5571 650F AAD8 6642 6A0B 5EC2 B776 E60E BE50 57C1

To claim this, I am signing this object:

View gist:9583862
Good Afternoon Mike,
In regards to the linked list question, the assignment was designed to be written using a linked list ADT, however this unit is scheduled for some students before they learn about linked lists (BEng SE students have this unit scheduled for their first semester after the Engineering Common First Year).
For this reason, we allow students who are unaware of what a linked list is, to use static arrays to store the input data.
The idea of the homework assignments is not to test coding ability or quality, but it needs some primitive coding challenge in order to be able to allow you to practise PSP methodologies.
In terms of the input to the program, the assignment specifies that the input should be read from a file. The format of this file can be determined by you, so long as it is documented and you provide example input files with your assignment. This way, you can choose how you want to format the input file (CSV, TSV, one line per number, etc.).
As a error handling specification is not g
View gist:2495345
(ns interface.boot
"This namespace is only used while developing
to start and stop an internal webserver."
(:use [ring.adapter.jetty :only [run-jetty]]
[ring.middleware.stacktrace :only [wrap-stacktrace]])
(:require [interface.routes :as routes])
(def ^:dynamic *port* 8081)