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
class MainWidget(QtGui.QMainWindow): | |
def __init__(self, parent=None): | |
super(MainWidget, self).__init__(parent) | |
self.setWindowTitle("FiFiFactory App") | |
self.resize(720,480) | |
self.setAcceptDrops(True) | |
def dragEnterEvent(self, event): | |
if event.mimeData().hasUrls(): | |
event.accept() |
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
#! encoding:utf-8 | |
""" | |
gui_fileListWidget.py | |
Description: | |
ドラッグアンドドロップでファイルリストを表示するウィジェット | |
本当のデータはmodelが格納している。 | |
Delegeteはリストのindex毎にModeからデータを読み出している。 | |
Example: |
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
#! coding:utf-8 | |
""" | |
a | |
Created by 0160929 on 2016/03/18 10:40 | |
""" | |
from PySide.QtNetwork import QNetworkProxy | |
__version__ = '0.2' | |
__app_name__ = 'Recomen' |
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
""" | |
元ネタ | |
https://github.com/arjendeetman/GCMMA-MMA-Python/blob/master/examples/mma_toy2.py | |
""" | |
import logging | |
from dataclasses import dataclass, field | |
import json | |
import numpy as np |
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
/******************************************************** | |
---- Deproy_TextDocument ver.1.0 ---- | |
テキストを読み込み配置。 | |
アンカーポイントを中心に設定。 | |
(おまけ)カメラの焦点を合わす | |
by fifi 2014/03/22 |
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 numpy import frombuffer, dtype, asarray, iinfo | |
def byteToPCM(data, sample_width): | |
d_type = 'float' | |
if sample_width == 2: | |
d_type = 'short' | |
return frombuffer(data, dtype=d_type) | |
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 python:3.8-buster as builder | |
RUN pip3 install --upgrade pip | |
RUN pip3 install sktime==0.11.0 | |
FROM python:3.8-slim-buster as runner | |
COPY --from=builder /usr/local/lib/python3.8/site-packages /usr/local/lib/python3.8/site-packages | |
RUN apt-get update \ |
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
[dockerコマンドをcronで実行させたら「TTYが無いよ」と怒られた件 | Hodalog](https://hodalog.com/how-to-resolve-the-error-that-the-input-device-is-not-a-tty/) | |
- docker-compose | |
- [cron駆動のdocker(docker-compose) execが走らない問題の対応 - Qiita](https://qiita.com/chankame/items/a939c8653e0e4845fc8a) | |
- docker-compose exec -T app date |
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 os | |
import argparse | |
import glob | |
def build_html(paths, w=500): | |
html = """<style> | |
.d { | |
width: 500px; | |
float:left; |
NewerOlder