Skip to content

Instantly share code, notes, and snippets.

View joeydotdev's full-sized avatar
🌐

Joey Colon joeydotdev

🌐
View GitHub Profile
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
@joeydotdev
joeydotdev / corgi.png
Last active January 7, 2020 21:22
corgi
corgi.png
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]];
}
}
@joeydotdev
joeydotdev / dynamic_woofbot_runtime_function.js
Created August 4, 2019 01:01
woofbot.io API & Twilio Integration
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`)