Skip to content

Instantly share code, notes, and snippets.

View okiyama's full-sized avatar

Julian Jocque okiyama

View GitHub Profile
@okiyama
okiyama / Makefile
Last active April 16, 2016 07:59
Makefile for a game I'm working on
#Originally from: http://www.cs.colby.edu/maxwell/courses/tutorials/maketutor/
#But will be heavily modified
IDIR =../include
CXX=g++
CXXFLAGS=
CPPFLAGS=-Wall -I$(IDIR)
#ODIR=obj
LDIR =../lib
LDFLAGS=-L$(LDIR)
@okiyama
okiyama / gist:6265730
Created August 19, 2013 04:18
Example of bad BASIC code I wrote during my early days of programming. It was for a robot challenge.
' {$STAMP BS2}
' {$PBASIC 2.5}
'This is the final program for Team Dutchmen exploring engineering soccer playing robot
'Programmed by Julian Jocque, Union College 10/2011
'Basic idea is turn to the right pedestal, walk up, bump and close, up
'turn right, bump wall, back up, turn left, bump wall, back up, turn left
'forward to the goal, turn right forward bump then open
Counter VAR Word
@okiyama
okiyama / notworking.rb
Created November 26, 2012 01:16
Silly loops
sortedArray.each do |sortedWord|
comparison = sortedWord.length <=> word.length
if (comparison == -1 and sortedWord.next == nil)
sortedArray.insert(wordCount+1,word)
elsif (comparison == -1 and sortedWord.next != nil)
next
else
sortedArray.insert(wordCount,word)
end
wordCount++
@okiyama
okiyama / quiz1.qm
Created November 21, 2012 21:48
Quiz 'Em Sample DSL
question "Who was the president?"
right "Your face"
wrong "My face"
wrong "Lincoln"
question "Where did he go?"
wrong "Canada"
wrong "Isreal"
right "Flug Bug"
wrong "To the right, now y'all"