This file contains hidden or 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 | |
# 2020 miki-ie.com | |
set -e | |
# change default constants here: | |
readonly PREFIX=/usr/local # install prefix, (can be ~/.local for a user install) | |
readonly DEFAULT_VERSION=4.3.0 # controls the default version (gets reset by the first argument) | |
readonly CPUS=$(nproc) # controls the number of jobs |
This file contains hidden or 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 | |
# 2020 miki-ie.com | |
set -e | |
# change default constants here: | |
readonly PREFIX=/usr/local # install prefix, (can be ~/.local for a user install) | |
readonly DEFAULT_VERSION=4.3.0 # controls the default version (gets reset by the first argument) | |
readonly CPUS=$(nproc) # controls the number of jobs |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 updatePredict($date, $times, $predict,$api_key){ | |
$post_data = [ | |
"mod" => "updatePredict", | |
"date" => $date, | |
"times" => $times, | |
"predict" => $predict | |
]; | |
//curl実行 | |
$curl = curl_init("https://janken.miki-ie.com/jankenApi.php"); |
This file contains hidden or 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 python | |
# -*- coding: utf-8 -*- | |
import urllib.request | |
import json | |
url = 'https://janken.miki-ie.com/jankenApi.php' | |
headers = { | |
'Authorization': 'Bearer @@API_KEY@@', |
This file contains hidden or 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 python | |
# coding: utf-8 | |
target_model = "yolov3-tiny-janken_final.weights" | |
target_config = "yolov3-tiny-janken.cfg" | |
import cv2 as cv | |
import numpy as np | |
MODEL = "./janken_cfg/" + target_model |
This file contains hidden or 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 requests | |
from requests.auth import HTTPDigestAuth | |
TV_IP = "xxx.xxx.xxx.xxx" | |
TV_USER = "user" | |
TV_PASS = "pass" | |
TV_VOLUME_DOWN = "40BF1E" | |
TV_BOTTON_8 = "40BF08" | |
def execjanken(key): |
This file contains hidden or 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
<?php | |
require "twitteroauth/autoload.php"; | |
use Abraham\TwitterOAuth\TwitterOAuth; | |
define("TARGET_TWEET",0); | |
##TARGET_TWEET 0 is newest record | |
$host_name = '127.0.0.1:3307'; | |
$user_name = '@DB_User@'; | |
$password = '@DB_Pass@'; | |
$database_name ='@DB_Name@'; | |
$table_name = '@DB_Table@'; |
This file contains hidden or 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
<?php | |
/************************************************************************* | |
* sendgrid-api (MAIN) | |
* Home Tools for private. Using IFTTT and Google Home etc | |
* | |
* PHP 5 or later | |
* | |
* @category Home IoT | |
* @author Miki | |
* @url https://www.miki-ie.com/ |
This file contains hidden or 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 urllib.request | |
#params for IFTTT | |
ifttt_api_key = '/with/key/@アクセスキー@' | |
url_base = 'https://maker.ifttt.com/trigger/' | |
#EVENT name for IFTTT | |
ifttt_event = 'test' | |
url = url_base + ifttt_event + ifttt_api_key | |
params = {'value1': 123,'value2': 123,'value3': 123,} |
NewerOlder