Skip to content

Instantly share code, notes, and snippets.

View AlexanderOtavka's full-sized avatar

Zander Otavka AlexanderOtavka

View GitHub Profile
@AlexanderOtavka
AlexanderOtavka / chihuligans.rkt
Last active November 22, 2016 21:06
Chihuligans - Grinnell CSC 151 Final Project.
#lang racket
(define and-rec
(lambda (lst)
(if (null? lst)
#t
(and (car lst) (and-rec (cdr lst))))))
(define rect
(lambda (x y width height)
@AlexanderOtavka
AlexanderOtavka / gulpfile.js
Created April 10, 2016 20:58
Example of babel-plugin-iife-wrap issue when combined with babel-plugin-transform-es2015-typeof-symbol.
'use strict';
const gulp = require('gulp');
const babel = require('gulp-babel');
gulp.task('default', () =>
gulp.src('iife-bug-reproduction.js')
.pipe(babel({ plugins: [
// To make it work, either comment out this one...
@AlexanderOtavka
AlexanderOtavka / class.js
Created March 8, 2016 18:59
A simple class creation tool for ES5.
// Copyright (c) 2016 Drake Developers Club All Rights Reserved.
/**
* Define a Class function for easy creation of classes.
*
* Usage:
* var MyClass = Class({
* // Defines the constructor. Optional, defaults to calling the superclass
* // constructor without arguments.
* constructor: function MyClass(foo) {