Skip to content

Instantly share code, notes, and snippets.

@iwatake2222
iwatake2222 / Linux用.txt
Created March 8, 2019 15:31
Deep Learningアプリケーション開発_Anaconda環境
(tf_test01) ~/Desktop/win_share/CNN_NumberDetector/02_Tensorflow_Python$ conda list
# packages in environment at /home/tak/anaconda3/envs/tf_test01:
#
# Name Version Build Channel
_tflow_select 2.3.0 mkl
absl-py 0.7.0 py36_0
astor 0.7.1 py36_0
blas 1.0 mkl
bzip2 1.0.6 h14c3975_5
c-ares 1.15.0 h7b6447c_1
@iwatake2222
iwatake2222 / tensorflow.def
Created March 6, 2019 05:35
tensorflow.def 1.12 for Visual Studio 2017
LIBRARY tensorflow
EXPORTS
??0?$MaybeStackArray@D$0CI@@icu_62@@AEAA@AEBV01@@Z
??0?$MaybeStackArray@D$0CI@@icu_62@@QEAA@$$QEAV01@@Z
??0?$MaybeStackArray@D$0CI@@icu_62@@QEAA@H@Z
??0?$MaybeStackArray@D$0CI@@icu_62@@QEAA@XZ
??0Appendable@icu_62@@QEAA@AEBV01@@Z
??0Appendable@icu_62@@QEAA@XZ
??0BreakIterator@icu_62@@IEAA@AEBV01@@Z
??0BreakIterator@icu_62@@IEAA@AEBVLocale@1@0@Z
@iwatake2222
iwatake2222 / call.c
Last active April 11, 2018 23:40
ARMアセンブリ言語の実装色々とNEON命令のサンプル ref: https://qiita.com/take-iwiw/items/cea0a2cb4d2709cb7ee5
#include <stdio.h>
int main()
{
int a;
int ret;
extern int func1(int *a);
ret = func1(&a);
printf("ret = %d, a = %d\n", ret, a);
}
@iwatake2222
iwatake2222 / common.h
Last active February 5, 2018 13:16
ZYBO (Zynq) でHDMI出力をする ref: https://qiita.com/take-iwiw/items/b323e129f96426031f9f
#ifndef SRC_COMMON_H_
#define SRC_COMMON_H_
#include <stdint.h>
/* common return code */
#define RET_OK 0x00000000
#define RET_NO_DATA 0x00000001
#define RET_TIMEOUT 0x00000002
#define RET_ERR 0x80000001
@iwatake2222
iwatake2222 / alt_tab.py
Created December 14, 2017 14:23
1秒おきにアクティブwindowをランダムに切り替える。 チャットなどの無操作オフライン防止
# -*- coding: utf-8 -*-
import sys
import os
import time
import pyautogui
import random
###
# Main
###
@iwatake2222
iwatake2222 / file0.txt
Last active December 6, 2017 04:40
Python + Scrapyで画像を巡回取得する ref: https://qiita.com/take-iwiw/items/be292150316a3ca033eb
scrapy startproject test_scrapy
cd test_scrapy
@iwatake2222
iwatake2222 / file0.txt
Last active December 5, 2017 04:43
ラズパイでフレームバッファ(/dev/fb0)を使用して、直接ディスプレイ画像を入出力する ref: https://qiita.com/take-iwiw/items/0a7a2fefec9d93cdf6db
cat /dev/fb0 > aaa.raw
@iwatake2222
iwatake2222 / .vscode_sftp.json
Last active July 1, 2018 12:18
ラズパイ用のC/C++開発環境をお手軽に構築する ref: https://qiita.com/take-iwiw/items/46119bb7d41c6030d34f
{
"host": "192.168.1.88",
"port": 22,
"username": "pi",
"password": "rasp",
"protocol": "sftp",
"agent": null,
"privateKeyPath": null,
"passphrase": null,
"passive": false,
@iwatake2222
iwatake2222 / convResizeMp4.bat
Created November 6, 2017 08:29
Resize movie image size using ffmpeg
rem @echo off
setlocal ENABLEDELAYEDEXPANSION
set FFMPEG="C:\\asd\\tool\\ffmpeg-20170827-ef0c6d9-win64-static\\bin\\ffmpeg"
set /a HEIGHT=1080
cd /d %~dp1
for %%f in (%1\*.mp4) do (
@iwatake2222
iwatake2222 / convMts2Mp4.bat
Created November 6, 2017 06:25
Convert MTS files to MP4 files
rem @echo off
setlocal ENABLEDELAYEDEXPANSION
set FFMPEG="C:\\asd\\tool\\ffmpeg-20170827-ef0c6d9-win64-static\\bin\\ffmpeg"
cd /d %~dp1
for %%f in (%1\*.MTS) do (
%FFMPEG% -i %%f -vcodec copy -acodec copy %%f.mp4
)