This file contains 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
(defn demo[] | |
(let [random_motif (str (rand-motif-str (rand-int 30))) | |
random_aa (rand-aa-str (rand-int 10)) | |
translated_aa (str (aa-to-3-letter "ASADD" ))]) | |
) |
This file contains 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
heres my code help me |
This file contains 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 Person | |
jark = Individual("john",...) | |
jay = Individual("jay", ... | |
colber = ... | |
listOfPeople = []; | |
listOfPeople.append(jark) | |
.. |
This file contains 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
Linux ip-10-227-67-228 2.6.21.7-2.fc8xen #1 SMP Fri Feb 15 12:39:36 EST 2008 i686 | |
-------------------------------------------------------------------------------- | |
Welcome to Amazon Elastic MapReduce running Hadoop and Debian/Lenny. | |
Hadoop is installed in /home/hadoop. Log files are in /mnt/var/log/hadoop. Check | |
/mnt/var/log/hadoop/steps for diagnosing step failures. | |
The Hadoop UI can be accessed via the following commands: |
This file contains 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
<?xml version="1.0" ?> | |
<channel> | |
<title> | |
tipcofeed | |
</title> | |
<link> | |
http://www.tipco.com/wir | |
</link> | |
<description> | |
TIPCO RSS agg |
This file contains 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
<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/"> | |
<channel> | |
<title> | |
tipcofeed | |
</title> | |
<link> | |
http://www.tipco.com/wir | |
</link> | |
<description> | |
TIPCO RSS agg |
This file contains 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
<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/"> | |
<channel> | |
<title> | |
tipcofeed | |
</title> | |
<link> | |
http://www.tipco.com/wir | |
</link> | |
<description> | |
TIPCO RSS agg |
This file contains 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
(ns problems.life | |
(:require [clojure.string]));;should use "only" here! (use '[clojure.data.json :only (read-json json-str)]) | |
; GOL is a function, which takes | |
; a function as input - the function takes an index(x,y) and returns a value | |
; for example, 1 or 0. | |
(defn play1 [f] | |
(print (f '(0 0)))) |
This file contains 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
(ns problems.life | |
(:require [clojure.string]));;should use "only" here! (use '[clojure.data.json :only (read-json json-str)]) | |
;This function determines wether a cell is alive or dead. | |
;Its a simplified version of the classic life function. | |
; f: the initial board function (f), | |
; x, y (the x/y coordinates) | |
(defn live [f x y] | |
(let [neighbors | |
(+ |
This file contains 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
jays-MacBook-Pro:logging jayunit100$ lein run -m logging.core | |
Hello, World! | |
log4j:WARN No appenders could be found for logger (logging.core). | |
log4j:WARN Please initialize the log4j system properly. | |
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. | |
jays-MacBook-Pro:logging jayunit100$ lein repl | |
nREPL server started on port 60145 | |
REPL-y 0.1.0-beta8 | |
Clojure 1.4.0 | |
Exit: Control+D or (exit) or (quit) |
OlderNewer