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 SAScan where | |
| import Network.Shpider | |
| import System.Posix.Unistd | |
| import Data.List | |
| import Char | |
| firstUser = "theprototype" | |
| toLoad = False | |
| savedFile = "SASaved" |
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
| ;A list of your grades. Change this to reflect your grades and run the program. | |
| ( def grades '(\a \b \c \d \f \d \c \b \a) ) | |
| ;Function for mapping grades to numbers and then averaging them. | |
| ( def gpaList '{\a 4, \b 3, \c 2, \d 1, \f 0} ) | |
| ( defn gpa [grades] (double (/ ( reduce + (map (fn [x] (get gpaList x)) grades ) ) (count grades) ) ) ) | |
| ;Prints out your GPA | |
| ( println (gpa grades ) ) |
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
| ------------------------------------ | |
| ------------------------------------ | |
| ------------------------------------ | |
| ------------------------------------ | |
| ------------------------------------ | |
| ------------------------------------ | |
| ------------------------------------ | |
| ------------------------------------ | |
| ------------------------------------ | |
| --------------xx-------------------- |
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
| from random import randint | |
| #GE | |
| #Constants | |
| gens = 150 | |
| popNum = 30 | |
| mutRate = 20 # Rate of mutation = 1/mutRate | |
| goal = 97 | |
| chromosomeLength = 24 # Must be a multiple of 5 - 1. Example: 14, 19, 24, 29, 34 |
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 GE where | |
| import System.Random | |
| import Data.List (elemIndex) | |
| import Control.Monad (foldM) | |
| type Aminal = [Int] | |
| type Population = [Aminal] | |
| gen = 10 {- GENERATIONS -} | |
| pop = 10 {- POPULATION NUMBER -} |
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 = [] |
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 | |
| 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
| <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/python2 | |
| from __future__ import division | |
| from ignoreWords import * | |
| class Classifier: | |
| def __init__ (self): | |
| self.examples = [] | |
OlderNewer