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
// 手続き | |
function selectOptimumCombination(amount, myCoupons) { | |
var selectedCoupons = [0, 0, 0]; | |
if(amount>1000){ | |
while(myCoupons[0]>0){ | |
if(amount<500) break; | |
amount=amount-500; | |
myCoupons[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
import Cocoa | |
// 標準入力で入力した行全体を取得、スペース区切りにして配列で返す | |
// String型の入力 | |
func stdinStr(array:String?)->[String]{ | |
let str: String = array! | |
let array = str.components(separatedBy:" ")//ここの" "を変更すると区切るワードを変えられる | |
return array | |
} |
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 time import sleep | |
from datetime import datetime, date, timezone, timedelta | |
import time | |
import poloniex | |
import pandas as pd | |
polo = poloniex.Poloniex() | |
above15minute = 0 | |
above10minute = 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
imac2017:poloniex Sobue$ python getclose.py | |
------------------------------------------------------------ | |
2017/12/9/ 20:53:0 | |
トレンド変化なし | |
BTC/USDT = 14749.99999969 (-0.6065%) 利益 : 0 購入状態 : 0 | |
------------------------------------------------------------ | |
2017/12/9/ 20:54:0 | |
トレンド変化なし | |
BTC/USDT = 14749.99999969 利益 : 0 購入状態 : 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
# Python 2/3 compatibility | |
from __future__ import print_function | |
# modded by ryosism | |
# sys.argv[1] : input .flo file | |
# sys.argv[2] : output .png file | |
import cv2 as cv | |
import numpy as np | |
import sys |