This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Author: Fernando Zamora | |
Description: | |
In this program I will attempt to draw out a binary search tree from 16 random values | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
class Node: | |
def __init__(self, data, parent): | |
self.left = None | |
self.data = data | |
self.right = None | |
self.parent = parent | |
def __repr__(self): | |
n = 'Node: ' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
from random import randint | |
class Card: | |
suit_strings = ['','D', 'H', 'C', 'S'] | |
face_strings = ['', 'A', '2', '3', '4', '5', '6', '7', 'J', 'Q', 'K'] | |
def __init__(self, face, suit): | |
self.face = face | |
self.suit = suit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import _winreg | |
#this checker only works on a windows box... i tested it on my windows 7 64bit box | |
#this script displays the history of your wifi connections... or better said | |
#all the wifi connections that you have previously used | |
def val2addr(val): | |
addr = '' | |
for ch in val: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import httplib2 | |
import webbrowser | |
import random | |
from BeautifulSoup import BeautifulSoup, SoupStrainer | |
######################################################### | |
# | |
# Extract all the hyperlinks from the given URL | |
# | |
######################################################### |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import httplib2 | |
from BeautifulSoup import BeautifulSoup, SoupStrainer | |
def getLinks(siteUrl, targetWord): | |
links = [] | |
http = httplib2.Http() | |
status, response = http.request(siteUrl) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Avatar(scene){ | |
var JUMP_FORCE = 14; | |
var sprite = new Sprite(scene, "./img/image.png", 150, 150); | |
var jumping = false; | |
sprite.init = function(){ | |
this.setSpeed(0); | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
fzj_msg_sender | |
converts bytes into binary digits and sends them out | |
by Fernando Zamora | |
*/ | |
const int MAX_MESSAGE_BIT_SIZE = 128; //nice even sixteen bytes of data | |
const int MAX_MESSAGE_CHAR_SIZE = 16; //nice even sixteen bytes of data | |
const int DELAY = 10; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Random; | |
public class SnippyMain { | |
public static void main(String args[]){ | |
System.out.println("Hello World"); | |
SnippyMain snippy = new SnippyMain(); | |
String who = ""; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
fzj_msg_sender | |
converts bytes into binary digits and sends them out | |
by Fernando Zamora | |
*/ | |
const int MAX_MESSAGE_BIT_SIZE = 128; //nice even sixteen bytes of data | |
const int MAX_MESSAGE_CHAR_SIZE = 16; //nice even sixteen bytes of data | |
const int DELAY = 1; |