Re: Making cryptograms, my first Clojure function. Feedback welcome.

2013-06-13 Thread Dan Neumann
I actually like the original lower/upper/digit the best:

lower (seq "abcdefghijklmnopqrstuvwxyz")
upper (seq "ABCDEFGHIJKLMNOPQRSTUVWXYZ")
digit (seq "0123456789")

It's just immediately obvious, especially for instance if you wanted to 
remove ambiguous chars like 0, O, l, I.


On Wednesday, June 12, 2013 7:30:31 PM UTC-5, Shannon Severance wrote:
>
> Thank you all, I've learned something from each entry. My latest version, 
> incorporating some of the changes suggested:
>
> (defn make-crypto []
>   (let [lower (map char (range (int \a) (inc (int \z
> upper (map char (range (int \A) (inc (int \Z
> digit (map char (range (int \0) (inc (int \9
> 
> [sl su sd] (map shuffle [lower upper digit])
> 
> encrypt (zipmap (concat lower upper digit) 
> (concat sl su sd))]
> (fn [s]
>   (apply str (map #(encrypt % %) s)
>
> I specified the range the way I did because I wanted meaningful start and 
> end points, I don't have the code points for many characters memorized.
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Loop run until a Clojure Agent send-off is complete

2013-05-28 Thread Dan Neumann
Aw, come on. No need to squander value back out of the world.

On Monday, May 27, 2013 8:02:28 PM UTC-5, Kelker Ryan wrote:
>
> I wrote it for fun and deleted after no one took interest. There was no 
> real purpose other than to see if it could be done. 
>  
> 28.05.2013, 08:33, "PlĂ­nio Balduino" >:
>
> 404?
> On May 10, 2013 8:04 AM, "Kelker Ryan" > 
> wrote:
>
> I would like to share a library that allows for bodies of code to loop run 
> until a Clojure Agent send-off is complete. 
> https://github.com/runexec/hollywood#how
>  
>
>  
> -- 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clo...@googlegroups.com 
> Note that posts from new members are moderated - please be patient with 
> your first post.
> To unsubscribe from this group, send email to
> clojure+u...@googlegroups.com 
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> --- 
> You received this message because you are subscribed to the Google Groups 
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to clojure+u...@googlegroups.com .
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  
>
>  
> -- 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clo...@googlegroups.com 
> Note that posts from new members are moderated - please be patient with 
> your first post.
> To unsubscribe from this group, send email to
> clojure+u...@googlegroups.com 
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> --- 
> You received this message because you are subscribed to the Google Groups 
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to clojure+u...@googlegroups.com .
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  
>
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: New CSS library - Garden

2013-04-10 Thread Dan Neumann
Good stuff! 

I'm using it in my hobby apps while I continue to cut my teeth on Clojure's 
web development toolkit. 

I'll definitely communicate any problems/improvements I spot as I try to 
scratch my own itch.


-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.