This file contains 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
const accordionInstance = ( | |
<Accordion> | |
<Panel header="Collapsible Group Item #1" eventKey="1"> | |
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS. | |
</Panel> | |
<Panel header="Collapsible Group Item #2" eventKey="2"> | |
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, s |
This file contains 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
const Test = React.createClass({ | |
render: function() { | |
return ( | |
React.createElement(React.createClass({ | |
getInitialState: function() { | |
return {term: "test"}; | |
}, | |
handleChange: function(event) { | |
this.setState({term: event.target.value}); |
This file contains 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
(boolean (seq (filter #(= k (key %)) m))) | |
(defn contains-key [m k] | |
(loop [[entry & rest :as coll] (seq m)] | |
(if (empty? coll) | |
false | |
(or (= (first entry) k) | |
(recur rest))))) |
This file contains 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
const data = [ | |
{ | |
"client_number": "00001", | |
"client_name": "voila Communications Ltd.", | |
"address1": "Ben votrant", | |
"address2": "voila Communications", | |
"address3": "P.O. Box 2086", | |
"address4": "55 Victoria Street", | |
"address5": "toronto", | |
"address6": "BERMUDA" |
This file contains 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
require 'minitest/mock' | |
## | |
# This monster eats Symbols. Give it a Symbol and how many to eat and nom nom! | |
monster = Minitest::Mock.new | |
monster.expect :eat, :nom_nom, [Symbol, Numeric] | |
## | |
# Let's verify the monster in fact ate its Symbols: | |
monster.verify |
This file contains 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
(defn remove-one [item list] | |
(let [[n m] (split-with (partial not= item) list)] (vec (concat n (rest m))))) | |
(defn sorting-sort [unsorted] | |
(loop [inner-unsorted unsorted sorted []] | |
(let [min-val (apply min inner-unsorted)] | |
(if | |
(or | |
(= 1 (count inner-unsorted)) | |
(empty? inner-unsorted)) |
This file contains 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
/** | |
* ------------------ The Life-Cycle of a Composite Component ------------------ | |
* | |
* - constructor: Initialization of state. The instance is now retained. | |
* - componentWillMount | |
* - render | |
* - [children's constructors] | |
* - [children's componentWillMount and render] | |
* - [children's componentDidMount] | |
* - componentDidMount |
This file contains 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
image |
This file contains 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
{ | |
"Action": [ | |
"s3:*", | |
], | |
"Effect": "Allow", | |
"Resource": [ | |
"${module.s3_lambda_els_bucket.bucket_arn}", | |
] | |
} |
This file contains 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
import R from 'ramda'; | |
const capitalize = | |
R.converge( | |
R.concat(), | |
[ | |
R.compose( | |
R.toUpper, | |
R.head | |
), |