Skip to content

Instantly share code, notes, and snippets.

@nomissbowling
nomissbowling / DistRGB.cpp
Created March 20, 2020 03:17 — forked from masazdream/DistRGB.cpp
距離カメラとRGBカメラの座標変換。距離による表示フィルター。
#include <iostream>
#include <sstream>
// この順番でインクルード
#include <Windows.h>
#include <NuiApi.h>
#include <opencv2/opencv.hpp>
#define ERROR_CHECK( ret ) \
@nomissbowling
nomissbowling / 電池の放電特性.md
Last active April 26, 2020 03:46
電池(マンガン電池アルカリ電池リチウムイオン電池)の寿命とか保管方法とか
@nomissbowling
nomissbowling / process-large-csv-with-dask.py
Created May 1, 2020 05:35 — forked from mak00s/process-large-csv-with-dask.py
PythonのDASKを使ってpandasでは処理できない巨大CSVを前処理する方法
import dask.dataframe as dd
# 分割されたCSVでも一つの巨大CSVでも同じように読み込める
file1 = 'DW-exported-*.csv'
df = dd.read_csv(file1, header=0, names=('Pages','VisitNum','HitDepth','Date','CV','Customer ID','Referrer','PV'), dtype={'Pages':'object','VisitNum':'int16','HitDepth':'int16','Date':'object','CV':'object','eVar13':'object','Referrer':'object','PV':'int16'})
# カラム名や型を指定しない場合
#df = dd.read_csv(file1, header=0)
# この結果、複数のパーティションに分割されたpandas dataframeが生成される
@nomissbowling
nomissbowling / qrcode.xml
Created May 14, 2020 12:07 — forked from anonymous/qrcode.xml
HaarCascade file for QR-Code Detecting.
<?xml version="1.0"?>
<opencv_storage>
<qrcode type_id="opencv-haar-classifier">
<size>
48 48</size>
<stages>
<_>
<!-- stage 0 -->
<trees>
<_>
@nomissbowling
nomissbowling / real_time_vc.py
Created May 21, 2020 02:33 — forked from tam17aki/real_time_vc.py
PyWorldでリアルタイム分析合成(+ 声質変換)
#!/usr/bin/env python3
# -*- coding:utf-8 -*-
# Copyright (c) 2020 Akira TAMAMORI
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
@nomissbowling
nomissbowling / least_significant_bit.py
Created May 22, 2020 05:22
A python script to perform steganography on the basis of least significant bit (LSB) modification method.
#!/usr/bin/env python3
"""
A python script to perform steganography on the basis of
least significant bit (LSB) modification method.
"""
# Copyright (c) 2018 Ryan Gibson
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
#! /usr/bin/env python3
""" A Python script for demostration of Hilbert transform."""
# Copyright (C) 2020 by Akira TAMAMORI
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#!/usr/bin/env python
""" A Python script to produce fourier series animation of sawtooth wave."""
# Copyright (C) 2020 by Akira TAMAMORI
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.