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
Ref: https://en.wikipedia.org/wiki/Merge_algorithm#Merging_two_lists | |
algorithm merge(A, B) is | |
inputs A, B : list | |
returns list | |
C := new empty list | |
while A is not empty and B is not empty do | |
if head(A) ≤ head(B) then | |
append head(A) to C |
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
<?php | |
function isGetParamPresent($param) | |
{ | |
return isset($_GET[$param]) && !empty($_GET[$param]); | |
} | |
$rawData = trim(file_get_contents("php://input")); | |
$decoded_data = json_decode($rawData, true); | |
$FLOCK_API_URL = "https://api.flock.com/hooks/sendMessage/"; |
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
package main | |
import ( | |
"bufio" | |
"bytes" | |
"compress/gzip" | |
"crypto/tls" | |
"fmt" | |
"io" | |
"io/ioutil" |