Fork me on GitHub
#off-topic
<
2017-09-15
>
donyorm06:09:49

Trying to install eclipse and getting a weird install error. Has anyone else seen this type of thing?

donyorm06:09:09

Figured it out, there was a bad cache in ~/.p2

noisesmith19:09:57

a fun little trick for friday (via the irc channel)

=> (clojure.main/repl :print (comp println clojure.string/reverse pr-str))

noisesmith19:09:36

(ins)user=> (+ 13 29)
24
(ins)user=> (:a {:a "hello"})
"olleh"
(ins)user=> (pprint {:a 0 :b 1 :c #{1 2 3 4 5 6}})
{:a 0, :b 1, :c #{1 4 6 3 2 5}}
lin
(ins)user=> {:a 0 :b 1 :c 2}
}2 c: ,1 b: ,0 a:{

vuuvi19:09:56

that’s too tricky, my brain hurts looking at that!

vuuvi19:09:15

also, has anyone ever written a script that downloads files directly from google sheets?

donaldball19:09:45

I do a fairly stupid amount of google sheet+drive interop, in fact

vuuvi19:09:55

oh that’s awesome man

vuuvi19:09:24

any advice for getting started? It would be awesome to be able to directly download a google sheet as a .csv from the command line

donaldball19:09:33

One would reasonably expect a cli of some kind, but I’m not aware of one, alas

vuuvi19:09:43

so how do you do it then?

vuuvi19:09:26

so you call this within your projects that use Google products?

donaldball19:09:00

yea. The configuration is a bit whack, but it gets the job done.

vuuvi19:09:32

so you need to setup the OAUTH and then you can wack away at downloading files right?

vuuvi19:09:40

but this library doesn’t do any exporting right? so I’d need to have a script that converted the google spreadsheet into a csv?

donaldball19:09:26

It lets you read (a projection of) a spreadsheet into data structure, which can easily turn into a csv

vuuvi19:09:01

okay so you use a reader object and then parse that into a csv? seems like it makes sense

vuuvi19:09:37

great commenting btw

qqq20:09:36

What are the largest clojure projects by cloc/sloc/lines of code count ?

noisesmith20:09:00

wow, google is a lot of mice

noisesmith20:09:10

but not that many, considering

qqq20:09:00

Hmm, now I want to see a list of all tech companies sorted by "net revenue / lines of code"

qqq20:09:13

minecraft would probably be near the top

noisesmith20:09:45

how about some patent troll - (/ 1.0 0.0) => Infinity in my repl

fellshard21:09:00

First real dive into Ruby metaprogramming

fellshard21:09:33

And it's to make nice, declarative endpoints for an API wrapper

fellshard21:09:17

metaprogramming in a language with heterogeneous syntax makes me appreciate homoiconicity even more, though

fellshard21:09:38

Still... not bad, Ruby! Not bad.