Skip to content

Instantly share code, notes, and snippets.

<!doctype html>
<html>
<head>
<style>
html, body {
margin: 0px;
height: 100%;
width: 100%;
}
.header {
.data
line: .asciiz "\n"
adding: .asciiz "Adding three\n"
.macro print_string($funcArg)
la $a0, $funcArg
li $v0, 4
syscall
.end_macro
.macro print_bin($toPrint)
.data
arg1: .word 0
arg2: .word 0
error: .asciiz "Incorrect argument provided\n"
sm: .asciiz "Signed Magnitude: "
one: .asciiz "One's Complement: "
gray: .asciiz "Gray Code: "
dbl: .asciiz "Double Dabble: "
msg1: .asciiz "You entered "
msg2: .asciiz " which parsed to "
from operator import mul
def sqftBox(l,w,h):
return 2*l*w + 2*w*h + 2*h*l
def areaSmallestSide(l, w, h):
return min([l * w, l * h, w * h])
package code.advent.day4;
/**
* Created by Nick on 12/3/2015.
*/
public class Coordinate {
public int x;
public int y;
public Coordinate(int x, int y) {
import java.util.Arrays;
/**
* Created by RudeTheGee on 8/28/2015.
*/
public class eHdrWlo {
public static void main(String[] args) {
Arrays.asList(new Integer[] {1,0,5,5, 6, 0xDF, 4, 6, 3, 5, 2}).forEach((d) -> System.out.print(d < 7 ? new Object() {}.getClass().getEnclosingClass().getName().toCharArray()[d]:(char) 0x20));
}
}
@RGamberini
RGamberini / gist:0f67100d8347361f94f4
Created October 11, 2015 00:48
GOD DAMN FUCKING MEMES
error: src refspec master does not match any.
error: failed to push some refs to 'https://github.com/RGamberini/AutoPlay.git'
@RGamberini
RGamberini / README.md
Last active August 29, 2015 14:14 — forked from mbostock/.block

This maze is generated using Wilson’s algorithm and then flooded with color. Hue encodes Manhattan distance from the starting cell. (This is not an optimal visual encoding, but it suffices and is pretty.)

Color is useful to visually compare the structure of mazes; without color, the black and white alternating cells are too noisy to offer any pre-attentive comparisons. Compare a maze generated by Wilson’s algorithm to Prim’s algorithm, random traversal and randomized depth-first traversal.

See this color flood applied directly to the pixel grid.

@RGamberini
RGamberini / index.html
Last active August 29, 2015 14:14
Circle Animation
<html>
<head>
</head>
<body>
<form>
Stroke: <input type="checkbox" id="stroke">
</form>
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script>
<script>
function HueCircle(scale, quantity) {