I hereby claim:
- I am rbaumbach on github.
- I am rbaumbach (https://keybase.io/rbaumbach) on keybase.
- I have a public key whose fingerprint is 4587 A453 D349 0003 27EF B83E C018 DAC9 50B6 00DD
To claim this, I am signing this object:
{ | |
"status": "ok", | |
"totalResults": 3457, | |
"articles": [ | |
{ | |
"source": { | |
"id": null, | |
"name": "Seekingalpha.com" | |
}, | |
"author": "Victor Dergunov", |
const axios = require('axios'); | |
// Note: axios.get() returns a promise | |
const getPhoto = () => { | |
return axios.get('https://jsonplaceholder.typicode.com/photos/1'); | |
}; | |
console.log('Return of getPhoto:', getPhoto()); |
// Creating ALF object | |
const alf = { | |
name: 'Gordon Shumway', | |
'home-planet': 'Melmac', | |
likes: ['cats', 'jokes', 'mischief'], | |
eatCat: function() { | |
return new Promise(function(resolve, reject) { | |
const isAbleToCatchCat = Math.floor(Math.random() * 2); |
// Classic completionHandler callback scenario | |
// Creating the timerFunction() | |
const timerFunction = function(completionHandler) { | |
console.log('Setting first timeout of 1 second'); | |
setTimeout(function() { | |
console.log('Setting second timeout of 2 seconds'); |
// Tests that I used to get my solution | |
import Quick | |
import Nimble | |
@testable import AlgorithmsAndDataStructuresInSwift | |
// Problem: Write a method that returns the total amount of words for a given input word | |
// ex: Input String: "Billy goat is a fiery, but kind goat that is also a black goat" | |
// word to search for: "goat" -> 3 |
// These are the tests that I used to make sure my problem worked for circular references. It also describes the problem | |
// that I was trying to solve. | |
import Quick | |
import Nimble | |
@testable import AlgorithmsAndDataStructuresInSwift | |
// Problem: Write a method that takes a "Movie" object and integer value n | |
// The method should return an array of the highest ranking movies no larger than n. |
#!/bin/bash | |
# nodereinstall | |
# credit: http://stackoverflow.com/a/11178106/2083544 | |
# get sudo | |
sudo -v | |
# check to see if npm is installed | |
IS_NPM_MISSING=$(which npm) | |
if [[ -z $IS_NPM_MISSING ]]; then |
I hereby claim:
To claim this, I am signing this object: