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
<!DOCTYPE html> | |
<html> | |
<body> | |
<style type="text/css"> | |
body { | |
border: 1; | |
background-color: gray; | |
} |
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
var utils; | |
(function (utils) { | |
/** | |
* 画像からピクセルカラー値を取得するユーティリティクラスです。 | |
* @auther Kentaro Kawakatsu | |
*/ | |
var ImageColorPicker = (function () { | |
function ImageColorPicker() { | |
} | |
ImageColorPicker.init = function ($canvas) { |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/89/three.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/stats.js/r16/Stats.min.js"></script> | |
<script src="js/controls/OrbitControls.js"></script> | |
<script src="js/loaders/TDSLoader.js"></script> |
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
CPU: 2 cores is the recommended number of cores and supports up to 500 users | |
Memory: 8GB RAM is the recommended memory size for all installations and supports up to 100 users |
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
<?php | |
declare(strict_types=1); // 型チェック | |
/** | |
* 残高を格納するクラス | |
*/ | |
class Balance | |
{ |
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<script> | |
window.onload = function (){ | |
} |
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
<?php | |
/* | |
(使い方) | |
php download_csv_php.php | |
*/ | |
// $r = file_get_contents("assets.json"); | |
$res = file_get_contents("https://api.cryptowat.ch/assets/btc"); |
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
def s3_upload(file_name:str): | |
import boto3 | |
print("s3 ", file_name) | |
s3_client = boto3.client('s3') | |
bucket_name = 'nohara-dnn-workspace' | |
s3_client.upload_file(file_name, bucket_name, "dataset/"+Path(file_name).name) |
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 __future__ import print_function | |
import keras | |
from keras.datasets import cifar10 | |
from keras.preprocessing.image import ImageDataGenerator | |
from keras.models import Sequential | |
from keras.layers import Dense, Dropout, Activation, Flatten | |
from keras.layers import Conv2D, MaxPooling2D | |
batch_size = 32 |
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 numpy as np | |
import pyqtgraph as pg | |
import pyaudio | |
from PyQt4 import QtCore, QtGui | |
FS = 44100 #Hz | |
CHUNKSZ = 1024 #samples | |
class MicrophoneRecorder(): | |
def __init__(self, signal): |