A Pen by Emily Seibert on CodePen.
A Pen by Emily Seibert on CodePen.
A Pen by Emily Seibert on CodePen.
A Pen by Emily Seibert on CodePen.
A Pen by Emily Seibert on CodePen.
At src/cljs/wombats_web_client/components/chat_box.cljs:25:
Consider using:
(.-key event)
instead of:
(-> event .-key)
At src/cljs/wombats_web_client/components/countdown_timer.cljs:32:
Consider using:
(pos? (seconds-until start-time))
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| |-- react-boilerplate | |
| | |-- src | |
| | | |-- js | |
| | | | |-- actions | |
| | | | | |-- ui.js | |
| | | | |-- config | |
| | | | | |-- a11y.js | |
| | | | |-- containers | |
| | | | | |-- app | |
| | | | | | |-- index.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| text = "a a b c d d d d" # creates a str | |
| words = text.split # splits on space | |
| frequencies = Hash.new(0) # creates empty hash with default value of 0 when initializing new key | |
| words.each do |word| # for each word | |
| frequencies[word] += 1 # if word/key is in hash, access the word in the hash map and increment value. otherwise initialize key/value pair as word --> 0 then increment by 1 | |
| end | |
| frequencies.sort_by do |word, num| |
NewerOlder