Skip to content

Instantly share code, notes, and snippets.

View eligundry's full-sized avatar
🧥
3 junior developers stacked upon each other in a trench coat

Eli Gundry eligundry

🧥
3 junior developers stacked upon each other in a trench coat
View GitHub Profile
@eligundry
eligundry / c.cpp
Created October 15, 2013 01:37 — forked from anonymous/c.cpp
/*
* =====================================================================================
*
* Filename: c.cpp
*
* Description: Our attempt at the 'Give me an E' problem
*
* Version: 1.0
* Created: 10/14/2013 06:14:39 PM
* Revision: none
@eligundry
eligundry / alternate.html
Created June 13, 2012 19:49
Better way of attaching event listeners
<ul>
<li id="item-1">Item 1</li>
<li id="item-2">Item 2</li>
<li id="item-3">Item 3</li>
</ul>
<script type="text/javascript">
$('ul').on('click', 'li', function(e) {
alert( "You clicked " + $(this).text() );
});
#include "battleship.h"
int main()
{
ship battleships[FLEET_SIZE];
location target;
deploy(battleships);
printFleet(battleships);
@eligundry
eligundry / lottery.cpp
Created March 2, 2012 21:12
Lottery Lap
#include <iostream>
#include <ctime>
#include <cstdlib>
using namespace std;
void initalize(int array[], int size, int val);
int check(int array[], int size, int val);
void draw(int array[], int size);
void entry(int& guess);
#include <iostream>
using namespace std;
/*
* Basically, this code right here will swap the
* values of two variables. I was able to do it
* in one line, which my professor said should be
* impossible.
*/