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
#!/usr/bin/env bash | |
# Taken from Karl Runge's FAQ on x11vnc | |
# http://www.karlrunge.com/x11vnc/faq.html#faq-xinerama | |
x11vnc -safer -localhost -nopw -once -viewonly -clip 1920x1080+0+0 -display :0 |
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
from datetime import date, datetime | |
from dateutil.relativedelta import relativedelta | |
from six import print_ | |
exchanges = { | |
'bitfinex': 'btcusd', | |
'bitstamp': 'btcusd', | |
'okcoin': 'btccny', | |
} |
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
# Example data line: | |
# 06/01 06/01 Bestbuy.com 00009944 888-237-8289 MN -$49.26 | |
echo '06/01 06/01 Bestbuy.com 00009944 888-237-8289 MN -$49.26' \ | |
| sed 's:[0-9]\+/[0-9]\+:&,:g' \ | |
| sed 's: -\?\$[0-9]\+:,&:' |
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
from math import floor, ceil, sqrt | |
p = int(input().strip()) | |
for a0 in range(p): | |
n = int(input().strip()) | |
if n == 1: | |
print('Not prime') | |
continue |
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
version: '3' | |
services: | |
zookeeper: | |
image: "confluentinc/cp-zookeeper:3.0.1" | |
ports: | |
- '2181' | |
environment: | |
ZOOKEEPER_CLIENT_PORT: 2181 | |
broker: |
OlderNewer