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
| 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), |
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
| # 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): |
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
| module Mandelbrot where | |
| import Graphics.UI.SDL as SDL | |
| import System.Exit | |
| resolution = 30 | |
| drawSlowly = True |
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
| url: http://daringfireball.net/projects/markdown/syntax |
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
| <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 { |
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
| #! /usr/bin/python2 | |
| from __future__ import division | |
| from ignoreWords import * | |
| class Classifier: | |
| def __init__ (self): | |
| self.examples = [] | |
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
| <html> | |
| <head> | |
| <script src="jsGameSoup/js/jsgamesoup.js"></script> | |
| <script src="jsGameSoup/js/random.js"></script> | |
| <script src="jsGameSoup/js/sprite.js"></script> | |
| <script src="jsGameSoup/js/collisions.js"></script> | |
| <script src="main.js"></script> | |
| </head> | |
| <style> | |
| html, body { |
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
| #! /usr/bin/python | |
| import random | |
| #goal = "This message evolves like my love for you. I'll always love you, Cat. -Josh <3" | |
| goal = "I Love You Cat" | |
| generations = None | |
| popSize = 25 | |
| mutation = 150 #Bigger = Less mutation |
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
| #! /usr/bin/python | |
| import sys, os, pickle | |
| header = "todo.py: A tool for managing tasks\n==================================\n " | |
| def path(): | |
| pathname = os.path.dirname(sys.argv[0]) | |
| return os.path.abspath(pathname) |
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
| #!/usr/bin/python | |
| #An experimental falling(or rising, in this case) sand game coded by Lambdanaut | |
| import pygame, sys, os, random | |
| from pygame.locals import * | |
| if sys.platform == 'win32' or sys.platform == 'win64': | |
| os.environ['SDL_VIDEO_CENTERED'] = '1' | |
| #Init Variables | |
| def popRoom(x,y): | |
| room = [] |