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
set -s escape-time 0 | |
# Set prefix to space | |
unbind C-b | |
set -g prefix C-space | |
# Change vertical / horizontal splits | |
bind | split-window -h | |
bind - split-window -v |

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 twoSum = (arr, target) => { | |
const hashTable = {}; | |
populateTable(hashTable, arr); | |
for (let i = 0; i < arr.length; i++) { | |
const desiredValue = target - arr[i]; | |
if (validValueExists(desiredValue, hashTable, i)) { | |
return [i, hashTable[desiredValue]]; | |
} | |
} |
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 axios = require('axios'); | |
exports.handler = function(context, event, callback) { | |
let twiml = new Twilio.twiml.MessagingResponse(); | |
// Take in user input | |
let breed = event.Body.toLowerCase(); | |
axios | |
// Include the `breed` variable in our HTTP request. | |
// Note the change from ' to ` | |
.get(`https://api.woofbot.io/v1/breeds/${breed}/image`) |