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 ( | |
"context" | |
"crypto/tls" | |
"flag" | |
"fmt" | |
"io" | |
"io/ioutil" | |
"log" |
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
import math | |
def binarysearch(arr, key, low, high): | |
if low > high: | |
return -1 | |
mid = math.floor((high+low)/2) | |
if arr[mid] == key: | |
return mid |
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
U2FsdGVkX1//NyMTGYB7buRu/Y92+u6Tjx0x149LWoRddib0d4ysIW0PuRv5kFsK | |
+5NoXgYH0NmHdgjHfj9TJZKCoDClPJS/Strg5J9nQYiXa42b2k+/1PVJYJR4zR03 | |
Z9Jt8EyXIfFct1FcKiwEZBHaVLJLkY9pApKTRHe7zt8fAHTu6jBtMG9w+ZpuQZkl | |
al6qe0FzN2cc7wB/4s5yWcbeY6NEf5HwajtiGSWfN1DmWrYazlDwAar+E3eAi3AH | |
CryYW/5Vjs9cd5Kayifuyb733Iw6i3saMywJRo0c/TcgCHAXxLNaFNXK/s5iHzwP | |
oBB6brx+fZFy3fWVn0+AYUf28U1AWCrNGglVJq8HqQ+vdk00+dwfHJMxAbMmI06w | |
2UbG/xq85geibOar0WZxLoqM3Hx93vyUJH9s9uJiX1oB3dXZw0ZgRTB48yvRapYX | |
UJNBAymmz76DyV+faLd4t8JGsdK5BVwNhpgf4//zZO6+zlZnaeC16fwz7MBpPBf3 | |
4G3I88UUuyikl2Y0eMWC0LazVQoFB7g6FtYdkA+sziShRw4VPHcbcHOBmHLZqoqR | |
H8isewO6ie8AyxsP/DapIAJzICPVTFwW6Min90D0nOLPXCnnjPuyfx5YgEyav+Yq |
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
#!/bin/bash | |
# This script requires jq to run, see: https://stedolan.github.io/jq/ | |
if [ ! -x "$(which jq)" ]; then | |
echo 'jq not found on $PATH | |
Installation instructions (Mac OSX) | |
curl -Lo /usr/local/bin/jq https://github.com/stedolan/jq/releases/download/jq-1.6/jq-osx-amd64 | |
chmod +x /usr/local/bin/jq | |
' |