Skip to content

Instantly share code, notes, and snippets.

View aybabtme's full-sized avatar
👶
I may be slow to respond. Newborn in the house.

Antoine Grondin aybabtme

👶
I may be slow to respond. Newborn in the house.
View GitHub Profile
@aybabtme
aybabtme / BagOfValues.cpp
Created July 19, 2012 16:26
Learning C++ : classes/headers. Doesn't work, and I don't get why.
#include "BagOfValues.h"
BagOfValues::BagOfValues() {
mName = "Jake";
mWeight = 71.8;
mAge = 26;
}
@aybabtme
aybabtme / gist:3148899
Created July 20, 2012 05:39
Idea how to expire gesture steps - in pseudo-pseudo C#/Java code
// Member objects
mTimerTask = new Task(){
mIsTrackingGesture = false;
};
mIsTrackingGesture = false;
// In the frame_ready
mGestureDetector.detectBeginGesture();
@aybabtme
aybabtme / GlutController.cpp
Created August 3, 2012 08:18
Passing member functions as parameters for callback
#include <string>
#include "GlutController.h"
////////////////////////////////////////////////////////////////////////
// Boilerplate
////////////////////////////////////////////////////////////////////////
GlutController::GlutController (int argc, char **argv) {
@aybabtme
aybabtme / GlutController.cpp
Created August 3, 2012 08:30
Error passing pointer to a member functions
/*
* GlutController.cpp
*
* Created on: Aug 3, 2012
* Author: antoine
*/
#include <string>
#include "GlutController.h"
#!/bin/sh
# Modify this according to your needs
DEVICE=”/dev/block/mmcblk1p2″
LOOP=”no”
# Maybe this as well
MNT_PATH=”/mnt/sdcard/arch”
# Modify only if you know, what are you doing
BINDS=”dev dev/pts proc sys mnt/sdcard”
ANDROID_BINDS=” /system /data ”
TMPS=”tmp var/tmp var/log var/run”
@aybabtme
aybabtme / DequeTest.java
Created August 25, 2012 08:10
Test for a properly working Deque - according to Coursera Algorithms Part 1, asg 2.
import java.util.Iterator;
import java.util.NoSuchElementException;
import junit.framework.TestCase;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
/**
@aybabtme
aybabtme / gist:3739487
Created September 17, 2012 20:10
Horror in my CSI2110 Lab
ListNode nNode = new ListNode();
nNode.data = 1;
DLinkedList list = new DLinkedList();
list.firstNode = nNode;
list.lastNode = nNode;
// add items to linked list
for (int i = 2; i < 11; i++) {
nNode = new ListNode();
nNode.data = i;
@aybabtme
aybabtme / gist:3788613
Created September 26, 2012 15:12
CUSEC (and other conferences) motion to Faculty Council

#Preamble:

Many undergraduate students are involved in extracurricular activities relevant to their engineering or computer science education, such as attending conferences and participating in competitions. They would like support of the Faculty when approaching professors seeking accommodation for absences. There is concern that some faculty members may not be aware that such activites are encouraged.

#Motion:

Resolved that Faculty Council encourages the involvement of students in extracurricular activities relevant to their education and professional development. Faculty Council therefore encourages faculty members to accommodate students who request the following in order to attend such activities:

  • Absences from class.
@aybabtme
aybabtme / original_quran.txt
Created October 5, 2012 07:49
Occurence of the word "land" ("ground") in the Qur'an.
This file has been truncated, but you can view the full file.
----------------------------------------------------------
Tanzil Quran Text
Copyright (C) 2008-2009 Tanzil.info
License: Creative Commons 3.0 Unported (by-nd)
This copy of quran text is carefully produced, highly
verified and continuously monitored by a group of specialists
at the Tanzil project.
TERMS OF USE:
@aybabtme
aybabtme / gist:3909791
Created October 18, 2012 03:58
Heroku is messing with me
$ git push heroku master
! Heroku has temporarily disabled this feature, please try again shortly.
! See http://status.heroku.com for current Heroku platform status.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.