875 karma · joined January 21, 2013
I really wanted to create a spec for the data in app-state, and check the value in the app-state atom each time I edited it (perhaps with an add-watch). That gets you many of the same advantages of static typing, but you only add the extra insurance when you think its worthwhile instead of always.
Instead of using strings for time-choices and page-choices (in the code at [1]), you can use maps like
[{:title "Day" :time 24}, {:title "Hour" :time 1}...]
and expand when nessicary. It shouldn't be too difficult to keep them in sync this way.You might want to check out clojurescript again sometime soon. Clojure.spec (and cljs.spec) are going to offer a huge jump in usability. Clojure.spec is a tool kit, and specs are basically definitions of data, that can be used for parsing, unparsing, and generating that very data. The beginning of this (interactive, cljs driven) blog post shows clojure.spec off a bit.
[1] - http://escherize.com/cljsfiddle/#gist=eea10854f99ef124f8dc15...
[2] - http://blog.klipse.tech/clojure/2016/10/10/defn-args.html
School is like a prison for kids. One form of punishment is detention - more school.
Also, "In the 2000 report, commissioned by the American Association of University Women, surveyors asked students between eighth and 11th grades whether they had ever experienced inappropriate sexual conduct at school. The list of such conduct included lewd comments, exposure to pornography, peeping in the locker room, and sexual touching or grabbing. Around one in 10 students said they had been the victim of one or more such things from a teacher or other school employee, and two-thirds of those reported the incident involved physical contact." - http://www.slate.com/articles/news_and_politics/explainer/20...
So, asking if something the public school system is doing is student focused betrays a fundamental misunderstanding of its purpose.
cmd+alt+control+k emaKs cmd+alt+control+T Trello cmd+alt+control+M chroMe
And I have cmd+alt+control+/ print this bubble message onto the screen to help remember them all: https://fetchh--captured.s3.amazonaws.com/2016-07-15_135709....
An example is that I use Clojure Refactor Mode (with CIDER) for emacs. A trick (and treat) that a lot of Clojure code uses is the arrow macros: -> and ->>. Clojure Refactor Mode has thread-first, thread-first-all, thread-last, thread-last-all and unwind. Since I've committed those to my long term memory, I can just call thread-first-all on something like:
(reduce * (repeat 4 (count (str (* 100 2)))))
and get: (->> 2
(* 100)
str
count
(repeat 4)
(reduce *))
This is so huge, because many times changing the levels of threading makes reasoning about the code so much easier.I settled on prelude because it is the most like a "vanilla" emacs installation (unlike spacemacs), and is easily extensible.
[1]: https://gitlab.com/escherize/talks/tree/master/cljsfiddle
[2]: https://github.com/yjwen/org-revealI write org-mode files (kind of like a richer version of markdown), and use org-reveal and emacs' publishing system turn them into slide shows like [1] this: (pic: [2]). The best part about the workflow is including code snippets using org mode's add source block, which allows me to edit code in the usual mode that I edit code with. Also org-reveal uses emacs' code highlighting settings to do code highlighting.
[1] http://escherize.com/rethinkdb_talk/
[2] http://take.ms/FHrR0I installed Parinfer it on my project: CLJSFiddle[2], and it's not what I'm used to and doesn't have everything but for a novice it is highly usable - check it out!
[1] https://shaunlebron.github.io/parinfer/ [2] http://cljsfiddle.com
And where does Ion fit here?
Seems like amazon is content to run razor thin margins, and if they jack up the price after competitors go out of business, that move would recreate a market for item X and burn some Amazon good will.
I also find the Amazon branding on that laptop stand to be really tacky, though!
(r/create-class
{:reagent-render render-fn
:component-did-mount (fn [] (js/alert "hi"))})
No metadata there Trump uses political language
political language makes murder respectable
------
Trump makes murder respectable
Why focus on Trump then? Care to name a politician who's not using political language? That seems to be an oxymoron.Trump was against the Iraq War, probably the biggest killing event of the last xxx years.
countdown to 8:30pm PST
or use this link: https://www.google.com.au/?q=countdown+to+8%3A15pm+PST#q=cou...Also it looks like the dns server hasn't updated so if that link is broken try: http://52.62.155.17/
[1] - http://sachachua.com/blog/2014/01/tips-learning-org-mode-ema...