Skip to content

Instantly share code, notes, and snippets.

View KyeRussell's full-sized avatar
🪴

Kye Russell KyeRussell

🪴
View GitHub Profile
@KyeRussell
KyeRussell / battleship.c
Created March 12, 2013 08:18
battleship.c, or how to suck at programming. I DID NOT WRITE THIS.
/* - Battle Ship - */
/* - By Simplicity - */
#include <stdio.h>
//#include <conio.h>
#include <stdlib.h>
void checkShips();
void quitGame();
void targeting();
@KyeRussell
KyeRussell / keybase.md
Created February 13, 2017 09:17
keybase verification

Keybase proof

I hereby claim:

  • I am kyerussell on github.
  • I am kyerussell (https://keybase.io/kyerussell) on keybase.
  • I have a public key whose fingerprint is 3723 DA1F B7D4 B502 A2F6 A956 0DE9 1520 BECF 5478

To claim this, I am signing this object:

@KyeRussell
KyeRussell / such gdb, wow!
Created October 30, 2013 03:03
such gdb, wow!
lab220-07:~/librarymanager:16927140$ gdb ./librarymanager
GNU gdb (GDB) Red Hat Enterprise Linux (7.1-29.el6_0.1)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Main Menu
- load from file
- sort array
- search array
- build bst
- search bst
- exit
>>> load from file
path> /Users/KyeRussell/Downloads/DataMillion.csv
public class Dicks
{
public static void main(String[] args)
{
try
{
throw new Exception();
} catch (Exception e) {
return;
} finally {
# Basics
Port 22
Protocol 2
# Keys
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
HostKey /etc/ssh/ssh_host_ecdsa_key
AuthorizedKeysFile %h/.ssh/authorized_keys
@KyeRussell
KyeRussell / bubble.py
Created August 2, 2013 11:04
Python bubble sort
set = [1, 6, 2, 1, 21, 8, 34, 9, 9.1, 1, 12, 901, 0.31, -3]
searchable_set = len(set) - 1;
while searchable_set >= 0:
count = 0
while count <= searchable_set - 1:
if set[count] > set[count + 1]:
old = set[count + 1]
set[count + 1] = set[count]
@KyeRussell
KyeRussell / argument-passing-for-dummies.php
Created June 7, 2013 16:21
Argument passing for dummies, for somebody else. Gross oversimplifications.
<?php
/* Let's say we have this function, it just adds one to a
* number and returns the resulting value.
*
* It takes in a paramater, which we call $number.
*
* $number is a variable which only exists within the function, when we try
* to access $number from outside the function, it simply doesn't exist.
* $number simply refers to whatever we've passed to addOneToNumber. We use
@KyeRussell
KyeRussell / parse.py
Created September 26, 2011 05:02
Facebook API Example
import urllib2
import json
class FBParser(object):
"""Receive Facebook Open Graph API calls and return an object containing
the results"""
def call(self, call, api="https://graph.facebook.com/"):
"""Process Facebook API calls."""
# Grab the content.
@KyeRussell
KyeRussell / sample.py
Created September 23, 2011 11:49
Sample Gist
print("Hello, World!")