Skip to content

Instantly share code, notes, and snippets.

View tkota0726's full-sized avatar
💭
Machine Learning

Kota tkota0726

💭
Machine Learning
View GitHub Profile
# -*- coding: utf-8 -
import json
import requests
import sys
import pprint
argv = sys.argv
# print(type(argv[1]))
base = "http://46.101.137.28:4000/api"
url = base + argv[1]
@tkota0726
tkota0726 / AboutTrig.ipynb
Created February 27, 2018 14:21
Note/AboutTrig.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# -*- coding: utf-8 -*-
import requests
# For print color
import colorama
import pprint
from colorama import Fore, Back, Style
colorama.init(autoreset=True)
url = "https://finance.yahoo.com/quote/%5EIXIC?p=^IXIC"
response = requests.get(url)
@tkota0726
tkota0726 / 同じネットワーク内のRaspberry PiのIPアドレスをMacから調べる
Created February 4, 2018 18:39
同じネットワーク内のRaspberry PiのIPアドレスをMacから調べる
https://studio.beatnix.co.jp/kids-it/hardware/raspberry_pi/local-ip/
# command
arp -a | grep "b8:27:eb"
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# -*- coding:utf-8 -*-
import os
import fnmatch
from subprocess import call
matches = []
for root, dirnames, filenames in os.walk('./'):
@tkota0726
tkota0726 / api.py
Created August 16, 2017 21:58
bitAPIスクリプト
# -*- coding: utf-8 -*-
import pybitflyer
import json
def main():
api = pybitflyer.API(api_key="************",
api_secret="**************")
b = api.board(product_code="BTC_JPY")
t = api.ticker(product_code="BTC_JPY")
@tkota0726
tkota0726 / url_list.md
Last active July 31, 2017 18:13
For programing study
@tkota0726
tkota0726 / emacsインストール方法
Last active July 27, 2017 00:14
emacsインストール方法
http://emacs.rubikitch.com/emacs251-install/
cd src
curl -OL http://ftpmirror.gnu.org/emacs/emacs-25.2.tar.xz
tar Jxvf emacs-25.2.tar.xz
cd emacs-25.2
./configure --without-x
make
make install
cd nextstep
mv Emacs.app/ /Applications/Emacs.app
@tkota0726
tkota0726 / index.html
Created July 3, 2017 20:14
Processing.js
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<title>$title</title>
$styles
</head>
<body>
<h1>$title</h1>