Skip to content

Instantly share code, notes, and snippets.

View emmafaye's full-sized avatar

Emma Faye emmafaye

View GitHub Profile
// Sort Numbers by Ascending
// -----------------------------------------------------
// [1, 2, 3, 4, 5, 6, 7, 8, 9];
// [0, 0, 0, 1, 10, 20, 59, 63, 88];
// Time Complexity: O(n²)
function sortAscending(unsortedList) {
if (unsortedList.length < 1) {
return unsortedList;
@emmafaye
emmafaye / run_ifttt_recipe.bat
Created December 22, 2017 09:16
Run an IFTTT recipe using Curl for Windows
@echo off
REM #1 Download Curl for Windows https://curl.haxx.se/download.html#Win64
REM #2 Download the certificate file (cacert.pem) from https://curl.haxx.se/docs/caextract.html
REM #3 Put both curl.exe and cacert.pem into c:/curl directory
REM #4 Add Webhooks as a service https://ifttt.com/maker_webhooks
REM #5 Create a recipe with Webhooks (give it an event name) for starting action and set it to trigger your desired outcome
REM #6 Replace {{event_name}} below with the name you used along with the {{api_key}} which can be found on the documentation page
c:\curl\curl.exe --cacert c:\curl\cacert.pem -X POST https://maker.ifttt.com/trigger/{{event_name}}/with/key/{{api_key}}