Skip to content

Instantly share code, notes, and snippets.

View Lambdanaut's full-sized avatar
👁️‍🗨️
λ

Joshua Quirk Lambdanaut

👁️‍🗨️
λ
View GitHub Profile
@Lambdanaut
Lambdanaut / lambdatumblr.html
Created April 19, 2012 16:44
An old tumblr layout I wrote with simplicity in mind.
<html>
<head>
<title>{Title}</title>
<link rel="shortcut icon" href="{Favicon}">
<link rel="alternate" type="application/rss+xml" href="{RSS}">
{block:Description}
<meta name="description" content="{MetaDescription}" />
{/block:Description}
<style>
body {
@Lambdanaut
Lambdanaut / markdown
Created April 21, 2012 18:51
My cheat sheets for the "sheet" Ruby program
url: http://daringfireball.net/projects/markdown/syntax
@Lambdanaut
Lambdanaut / Mandelbrot.hs
Created April 29, 2012 16:54
A Mandelbrot Set visualizer in Haskell
module Mandelbrot where
import Graphics.UI.SDL as SDL
import System.Exit
resolution = 30
drawSlowly = True
@Lambdanaut
Lambdanaut / main.py
Created September 8, 2012 22:59
A Text Based RPG that my Nephew is working on.
# Constants
class Player:
def __init__(self):
self.name = "Clinton Bill"
self.room = Family_Den()
self.description = "You are a tall dark and mysterious rogue android hell bent on finding your creator. You are a robotic aparition used for being a butlerbot. "
self.items = [Tophat()]
def view_items(self):
@Lambdanaut
Lambdanaut / Percept.hs
Last active December 11, 2015 14:18
A binary labeling perceptron written in Haskell
module Percept where
-- The example training/testing data has single digit numbers set to True, and double digit numbers set to False
trainingData :: [([Double], Bool)]
testingData :: [([Double], Bool)]
trainingData = [
([1], True),
([5], True),
([6], True),
([9], True),
@Lambdanaut
Lambdanaut / gist:6134156
Created August 1, 2013 18:54
A script to flood a phisher's database with fake usernames and passwords. For great justice.
import requests
import random
target = "http://mtgox.com.bz/login.php"
wordlist_file = "wordlist"
wordlist = open(wordlist_file, "r").readlines()
wordlist_len = len(wordlist)
while True:
@Lambdanaut
Lambdanaut / ann.hs
Created March 10, 2014 21:53
Artificial Neural Network
module Main where
config_input_cells = 1 :: Int
config_hidden_layer_cells = 10 :: Int
config_hidden_layers = 2 :: Int
config_output_cells = 1 :: Int
-- [ [ (Threshhold, [Connection Weights] ) ] ]
type Net = [ [ (Double, [Double] ) ] ]
@Lambdanaut
Lambdanaut / vq.py
Created June 9, 2014 22:33
Integer Vector Quantization
""" Classifies a point as belonging to a cluster of points """
from math import sqrt
from random import shuffle
WIDTH = 28
HEIGHT = 28
POINT_TO_CLASSIFY = (2,4)
@Lambdanaut
Lambdanaut / gist:d980fb47e66a1a6dbd9b
Last active August 29, 2015 14:07
PHP Candidate interview questions
## Q
CSS:
Explain the difference between visibility:hidden; and display:none;
## A
Visibility:Hidden; - It is not visible but takes up it's original space.
Display:None; - It is hidden and takes up absolutely no space as if it was never there.
import random
class MM(object):
def __init__(self):
# Wordlist form = ['this','is','words']
# Graph form = [((1,1)],[(2,1)],[]]
# [((count, index)],[(count, index)],[]]
self.wordlist = []
self.graphlist = []