Skip to content

Instantly share code, notes, and snippets.

View tkota0726's full-sized avatar
💭
Machine Learning

Kota tkota0726

💭
Machine Learning
View GitHub Profile
@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 -*-
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)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@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.
# -*- 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 / InsertTime
Created March 17, 2018 07:01
GoogleAppScript_日付自動挿入スクリプト
function insertLastUpdated() {
var ss = SpreadsheetApp.getActiveSheet();//現在触っているシートを取得
var currentRow = ss.getActiveCell().getRow(); //アクティブなセルの行番号を取得
var currentCell = ss.getActiveCell().getValue(); //アクティブなセルの入力値を取得
var updateRange = ss.getRange('A' + currentRow) //どの列に更新日時を挿入したいか。この場合はA列
Logger.log(updateRange);
//更新日の記入
if(currentRow>10){ //1行目を除くため
if(currentCell) {
updateRange.setValue(new Date());
@tkota0726
tkota0726 / diskiutil
Created April 24, 2018 08:11
USBフォーマットコマンド
diskutil eraseDisk ExFAT KOTA /dev/disk2
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import tensorflow as tf
from tensorflow.keras.applications import InceptionV3, VGG16, MobileNet
from tensorflow.keras.layers import GlobalAveragePooling2D, Dense
from tensorflow.keras.models import Model
from tensorflow.keras.callbacks import History, Callback
import tensorflow.keras.backend as K
from tensorflow.contrib.tpu.python.tpu import keras_support
from keras.utils import to_categorical
from keras.datasets import cifar10
KEYBINDINGS
byobu keybindings can be user defined in /usr/share/byobu/keybindings/ (or within .screenrc if byobu-export was used). The common key bindings
are:
F2 - Create a new window
F3 - Move to previous window
F4 - Move to next window