Re: [ClojureScript] Re: ANN: ClojureScript 0.0-2913, Google Closure Modules, improved nREPL support

2016-10-30 Thread Matthew Chadwick
On Tuesday, February 24, 2015 at 12:37:46 PM UTC, David Nolen wrote:
> :preamble will only be applied to the base module. When using :modules there 
> is not such thing as a main output file.
> 
> 
> You cannot currently have a per module :preamble.
> 

I recently wanted per-module :preamble when playing with webworkers, in order 
to add the importScripts(); line -- is there any other way to get that line 
into a module ?

-- 
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/d/optout.


Re: [ANN] clojure.data.priority-map 0.0.3

2013-10-31 Thread Matthew Chadwick
very cool - thankyou

On Wednesday, October 23, 2013 5:46:00 PM UTC+11, puzzler wrote:
>
> https://github.com/clojure/data.priority-map/
>
> A priority map is similar to a sorted map, but sorts the entries by the 
> values rather than the keys in the map.  Think of it as a kind of priority 
> queue with a full map-like API to query, add, adjust, and remove items and 
> their priorities.
>
> The new 0.0.3 version addresses a common need where the items map to 
> complex values which contain the priority, or from which the priority can 
> be derived.
> For example, consider a map:
> {:apple {:weight 2, :color :red}, :orange {:weight 2, color :orange}, 
> :banana {:weight 3, color :yellow}}
> where you want to sort the map by the fruit's weight.
>
> A common pitfall was to try to solve this with a custom comparator which 
> compares only on weight.  This doesn't work properly because of the 
> Clojure/Java rule that valid comparators must be "total orders".  Among 
> other things, this means the comparator can't have "ties" between unequal 
> objects (known as the trichotomy property).
>
> [See 
> https://groups.google.com/forum/#!msg/clojure/VKvH_eg_FtE/Kpy18zGtio4Jfor one 
> such discussion about this pitfall]
>
> Users were instructed to rework their comparator into a total order, but 
> for some use cases, this can be a tricky proposition.
>
> To address this need, the new version allows one to specify a "keyfn" 
> which extracts or computes the sort keys (i.e., priority) from the map's 
> values.
>
> This is done with one of two new constructors:
> priority-map-keyfn (takes a custom keyfn)
> priority-map-keyfn-by (takes a custom keyfn and custom comparator)
>
> So for example, the above map could be expressed as:
> (priority-map-keyfn :weight 
>   :apple {:weight 2, :color :red}, :orange {:weight 2, color :orange}, 
>   :banana {:weight 3, color :yellow})
>
> See the README for further explanation, and let me know if you have any 
> questions.
>  

-- 
-- 
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.


Using Friend with a proxy

2013-10-17 Thread Matthew Chadwick
hi, I'm using Friend, and it works very well, except now I've got things 
set up in production my app server has a reverse-proxy in front and the 
redirects no longer work for my protected routes. I tried using 
requires-scheme-with-proxy but without success...am playing around with it 
now, don't really know what I'm doing...I know that the proxy is Apache, is 
there anything else I need to know ?

Cheers, and BTW thanks for Friend - yet another Clojure Gem that's made my 
life much easier.

-- 
-- 
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: [ANN] Nightcode, an IDE for Clojure and Java

2013-08-04 Thread Matthew Chadwick
this is great!

please please add structural editing (not simply bracket-matching in a 
text-editor, but direct manipulation of Clojure data structures (including 
code). I've been trying out some ideas in this area & would be happy to 
help out.

On Friday, August 2, 2013 11:03:03 PM UTC+10, Zach Oakes wrote:
>
> I’ve been working on a simple IDE for the past few months. It started as 
> an attempt to add Leiningen integration to Clooj, but eventually I decided 
> to start a new project from scratch. It is very alpha-quality, so please be 
> gentle:
>
> http://nightcode.info/
>
> Here’s what it has:
>
> -Written in Clojure (the UI is written with seesaw)
>
> -Built-in copy of Leiningen to build Clojure and pure-Java projects
>
> -Built-in templates for several common types of Clojure and Java projects
>
> -Always-on REPL in the corner to try Clojure commands
>
> -Android integration (includes the lein-droid plugin, LogCat output, etc)
>
> -ClojureScript integration (includes the lein-cljsbuild plugin)
>
> -Cool looking dark theme, because that’s trendy these days
>
> Here’s what it’s missing:
>
> -Fast build times (it launches Leiningen in a separate process, which is 
> slw...I plan on fixing this and would love any help)
>
> -Important editing features (code completion, text replace, etc)
>
> -Quick switching between recent files
>
> -Jump to definition, built-in documentation
>
> -Integration between editor and REPL (eval form or entire file)
>
> -Integration with git
> -Many other things -- please give me your thoughts!
>

-- 
-- 
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: ANN: Potemkin 0.3.0

2013-06-19 Thread Matthew Chadwick

>
> If anyone has moral or aesthetic objections to 'import-vars', you're not 
> alone, but please remember you're under no obligation to use it.


I used lein-clique to make a graph of Lamina's 
dependencies(huge
 PNG), but the use of import-vars caused several mirrored subgraphs 
which I don't really know how to filter 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: [ANN] alpacas: a new Clojure source viewer

2013-06-04 Thread Matthew Chadwick
hehe looks similar to something I've been writing:

http://celeriac.net/ioio/public/

-- 
-- 
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.