Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 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://mitsuru.hateblo.jp/entry/20100321/joyprint | |
上記URLのJoystick value viewerを改造し、軸をファイルに書き出すようにしています。 | |
Public Domainに感謝です。このファイルもPublic Domainです | |
出力ファイル名は ./axis.log としています。ファイルが存在すると例外が出ます。 | |
frame_no,controller, axis,valueのtsvファイルとしています。 | |
(複数ジョイスティック接続時にすべてが正しく出力されるかどうかは未確認です) | |
動作環境:Python 3.7 + Pygame 1.9.6 |
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
#!/bin/bash | |
# First: Install nvidia-driver and cuda | |
# Install nvidia-driver | |
sudo apt-get update | |
sudo apt-get install --no-install-recommends nvidia-375 | |
sudo apt-get install --no-install-recommends nvidia-opencl-icd-375 nvidia-opencl-dev opencl-headers | |
# Cuda and cudnn installation |
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 collections import Counter | |
import pandas as pd | |
class WikiepediaEvaluation: | |
"""抽出した属性情報を評価する。 | |
使い方: | |
from evaluation import WikiepediaEvaluation |
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 -*- | |
def main(): | |
print(chap10()) | |
print(chap11()) | |
chap12() | |
chap13() | |
def chap10(): | |
with open("./hightemp.txt", "r") as fin: |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.