Skip to content

Instantly share code, notes, and snippets.

View jayunit100's full-sized avatar
🎯
Focusing

jay vyas jayunit100

🎯
Focusing
View GitHub Profile
(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" ))])
)
heres my code help me
@jayunit100
jayunit100 / homework
Created January 30, 2012 00:07
jark homeowrk
import Person
jark = Individual("john",...)
jay = Individual("jay", ...
colber = ...
listOfPeople = [];
listOfPeople.append(jark)
..
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:
<?xml version="1.0" ?>
<channel>
<title>
tipcofeed
</title>
<link>
http://www.tipco.com/wir
</link>
<description>
TIPCO RSS agg
@jayunit100
jayunit100 / rss
Created September 26, 2012 00:36
rss
<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
@jayunit100
jayunit100 / rss2.xml
Created September 26, 2012 01:24
rss2.xml
<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
(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))))
@jayunit100
jayunit100 / PureGOL
Created October 21, 2012 23:21
A Pure implementation of the Game of Life.
(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
(+
@jayunit100
jayunit100 / gist:5273274
Created March 29, 2013 20:06
lein repl bug? or am i crazy.
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)