cftbat-code's People
Forkers
pascal-cs rmfbarker liubo404 cwulfman edutanaka jab mkess danielgerigk laroma joseburaschi webbedfooty toddsmall jtyim bbcoumes btaylor5 cbayles bryclee sonbui00 nkabir craftninja robertkuhar josephanthonycollins scbasma zhanart likaiwalkman javiqm12 seriley debuguself lucetzer bayesianbrad jkamlah sudakatux rbarraud zalum burrrhead conqeror tylersanford mixelpixel benbenxong murielsilveira pdevito anlewis japanesepeacelily ruddy22 hochanh stevesf9 mechanicalkeyboard itbhp alexnguyennn jakebrinkmann sffej lnjo zzamboni clojure-land yiddishkop markkra csbigdatahub ashlee3209 jaimesangcap jim80net roachmd martinrubinsztein standardgalactic rohitjain-rj saurabstha ericlebrasseur johnconnor1969 todun zachcorrea geeksperiments stelcodes jeff303 daviderestivo jtmcg tingtinghsu rhettbull eduardoqearley ig0revich lhfei stoating ranjan1501 jsonzilla ailindoyle azurecloudmonk dalanicolai nu-sf thejoeschr acbatista mark-hatch loochao echristopherson ben-liao frenchy64 larryknaebel2 soothingduck sagarpardeshi fishlerd jonathanlbt1 antonioj-mattoscftbat-code's Issues
Where is the pegthing code?
You mention in chapter 5 to download the code from github and then run 'lein run' in the pegthing directory. I don't see a pegthing directory. And I tried to run 'lein run' in the chap 5 directory and got an error. Please advise.
Unquote splicing example issue
In Chapter 8, when explaining unquote splicing you change the macro arguments from 2 arguments to using a map and keywords. The example that follows is then incorrect (and doesn't run in my REPL)
https://github.com/braveclojure/cftbat-code/blob/master/08/code.clj#L231
This line should read instead
(code-critic {:good (1 + 1) :bad (+ 1 1)})
As far as I understand the argument change is unrelated to the unquote splicing and just makes things more confusing. Please correct me if I'm wrong :)
Thanks for the great book. I'm enjoying it a lot
the-divine-cheese-code for windows
On windows the supplied url
function doesn't provide the proper url
since windows returns with \
instead of other systems and browsers that need /
. Its a simple fix however that I at least wanted to mention here.
(defn url
[filename]
(s/replace (str "file:///"
(System/getProperty "user.dir")
"/"
filename)
#"\\" "/"))
Chapter 3 - Hobbit Violence - Unexpected Result
I get a messily ordered vector of hobbit body parts when I execute (symmetrize-body-parts asym-hobbit-body-parts)
.
According to the answer shown in the book and the code , symmetrize should return a vector of body parts which has {left-part} before the matching {right-part}.
But When I execute, I get the following vector.
Note that towards the end of the vector, the matching {right-part} comes before {left-part}.
Am I doing something wrong? or is this a bug?
Thank you.
(symmetrize-body-parts asym-hobbit-body-parts)
=>
[{:name "head", :size 3}
{:name "left-eye", :size 1}
{:name "right-eye", :size 1}
{:name "left-ear", :size 1}
{:name "right-ear", :size 1}
{:name "mouth", :size 1}
{:name "nose", :size 1}
{:name "neck", :size 2}
{:name "left-shoulder", :size 3}
{:name "right-shoulder", :size 3}
{:name "right-upper-arm", :size 3}
{:name "left-upper-arm", :size 3}
{:name "chest", :size 10}
{:name "back", :size 10}
{:name "left-forearm", :size 3}
{:name "right-forearm", :size 3}
{:name "abdomen", :size 6}
{:name "left-kidney", :size 1}
{:name "right-kidney", :size 1}
{:name "left-hand", :size 2}
{:name "right-hand", :size 2}
{:name "right-knee", :size 2}
{:name "left-knee", :size 2}
{:name "right-thigh", :size 4}
{:name "left-thigh", :size 4}
{:name "right-lower-leg", :size 3}
{:name "left-lower-leg", :size 3}
{:name "right-achilles", :size 1}
{:name "left-achilles", :size 1}
{:name "right-foot", :size 2}
{:name "left-foot", :size 2}]
There's an error when do lein run project the-divine-cheese-code
Illegal character in path at index 10: file:/// ..../the-divine-cheese-code/map.html
and here's the code :
(defn -main
[& args]
(let [filename "map.html"]
(->> heists
(xml 50 100)
template
(spit filename))
(browse/browse-url (url filename))))
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.