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
### Keybase proof | |
I hereby claim: | |
* I am sanatem on github. | |
* I am sanatem (https://keybase.io/sanatem) on keybase. | |
* I have a public key ASDw9Ed37x76fDI51QyygaemJsi8jY29zPDAQZoXeXppRAo | |
To claim this, I am signing this object: |
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
### Keybase proof | |
I hereby claim: | |
* I am sanatem on github. | |
* I am sanatem (https://keybase.io/sanatem) on keybase. | |
* I have a public key ASDPvuYEkUFrJEiARnM4gqwp07WAkzvP2FqYfVl2y_3Yzwo | |
To claim this, I am signing this object: |
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
=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button 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
function oauthFlowCompletedShowRooms(access_token, res) { | |
// Retreive rooms from user: GET https://api.ciscospark.com/v1/rooms | |
const options = { | |
method: 'GET', | |
url: 'https://api.ciscospark.com/v1/rooms', | |
headers: | |
{ | |
"authorization": "Bearer " + access_token | |
} |
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
function bindMeetingEvents(meeting) { | |
meeting.on('error', (err) => { | |
console.error(err); | |
}); | |
// Handle media streams changes to ready state | |
meeting.on('media:ready', (media) => { | |
if (!media) { | |
return; | |
} |
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 Webex = require('webex'); | |
const myAccessToken = 'YOUR_ACCESS_TOKEN'; | |
if (myAccessToken === 'YOUR_ACCESS_TOKEN') { | |
alert('Make sure to update your access token in the index.js file!'); | |
return; | |
} | |
webex = Webex.init({ |
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
wget \ | |
--recursive \ | |
--no-clobber \ | |
--page-requisites \ | |
--html-extension \ | |
--convert-links \ | |
--restrict-file-names=windows \ | |
--domains example.com \ | |
www.example.com |
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
$(".modal-btn").click(function (event) { | |
// Get the modal | |
event.preventDefault(); | |
modal = document.getElementById(event.target.closest("button").dataset.modal); | |
modal.style.display = "block"; | |
}); | |
// When the user clicks on (x), close the modal | |
$(".close").click(function (event) { | |
modal = event.target.closest(".modal"); |
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
[ | |
{ | |
"unit_price": 21, | |
"requested_product": "h-basic", | |
"quantity_of_products": 3, | |
"quarters_to_pay": 4, | |
"required_product_quality_index": 0, | |
"market_id": 1, | |
"number": "2-027", | |
"year": 2, |
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 [coords, setCoords] = useState({}); | |
useEffect(() => { | |
navigator.geolocation.getCurrentPosition( | |
position => { | |
const { latitude, longitude } = position.coords; | |
setCoords({ lat: latitude, lng: longitude }); | |
}, | |
error => { | |
console.log(error.message); |