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
const checkbox = form.find('input[name="agreementAccepted"]'); | |
checkbox.simulate('change', { | |
persist: () => {}, | |
target: { | |
checked: true, name: 'agreementAccepted' | |
} | |
}); | |
const contactNameInput = form.find('input[name="contactName"]'); |
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
ssh-add -K ~/.ssh/id_rsa |
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
File.open('file/path/that/exists/file.xml', 'w') { |file| file.puts response } |
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
def my_flatten(array) | |
flattened_array = [] | |
array.each do |el| | |
if el.is_a?(Array) | |
flattened_array.concat(my_flatten(el)) | |
else | |
flattened_array << el | |
end |