Skip to content

Instantly share code, notes, and snippets.

kidapu kidapu

Block or report user

Report or block kidapu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@kidapu
kidapu / resize.sh
Last active Oct 21, 2019
リサイズするとき便利だよ
View resize.sh
 #!/bin/sh
resize2 () {
for inpath in `\find ./191004_illust/2_thumbnail -name '*.jpg' -or -name '*.png' `; do
outpath=${inpath/191004_illust/191004_illust_resize}
echo "- - - - - - - -"
echo $inpath
echo $outpath
@kidapu
kidapu / convert-from-utf8str-to-utf16-ascii-char.cpp
Last active Aug 2, 2019
Touch Designer が日本語うけとれないらしいので?、文字列をutf16 ascii char に変換 in cpp
View convert-from-utf8str-to-utf16-ascii-char.cpp
#include <iostream>
#include <codecvt>
#include <sstream>
// https://onlineutf8tools.com/convert-utf8-to-utf16
// https://cpprefjp.github.io/lang/cpp11/char16_32.html
using namespace std;
View fit-model-simple.cpp
/*
* eos - A 3D Morphable Model fitting library written in modern C++11/14.
*
* File: examples/fit-model-simple.cpp
*
* Copyright 2015 Patrik Huber
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
View brightness.h
#pragma once
#include "ofMain.h"
// lib
#include "ofxGui.h"
#include "ofxKinectV2.h"
#include "format.h"
class Const
@kidapu
kidapu / ffmpeg-trimming.sh
Last active Sep 3, 2017
movie trimming for training yolo
View ffmpeg-trimming.sh
#!/bin/sh
# 縦 x 横
width=1280
height=720
# crop
crop='720:720:0:0'
crop2='720:720:510:0'
@kidapu
kidapu / root-ro
Last active Jun 24, 2019 — forked from sbonfert/root-ro
Read-only Root-FS with overlayfs for Raspian
View root-ro
#!/bin/sh
#
# Read-only Root-FS for Raspian
#
# Modified 2016 by Stefan Bonfert to make it compatible with Raspbian
# Jessie (vanilla).
#
# Modified 2015 by Pascal Rosin to work on raspian-ua-netinst with
# overlayfs integrated in Linux Kernel >= 3.18.
#
View convert-mp4.sh
#!/bin/sh
echo "Hello"
for file in *.m4v
do
echo "-------------"
echo "CONVERT $file"
ffmpeg -vcodec "h264" -i "$file" "./output/$file.mp4"
# ffmpeg -i "$file" -vf scale=960:540 "./output/$file.mp4"
@kidapu
kidapu / movie-cut.js
Created Sep 26, 2016
ffmpegで動画を繰り刻む君.txt
View movie-cut.js
// require
var _exec = require('child_process').execSync;
var _util = require('util');
// static const
var _scale = 1.0;
var _fps = 30;
var _input_path = "./src/test.mov";
var _output_format ="./dest/test%d.mov"
@kidapu
kidapu / movie-cut.js
Created Sep 26, 2016
ffmpegで動画を繰り刻む君.txt
View movie-cut.js
// require
var _exec = require('child_process').execSync;
var _util = require('util');
// static const
var _scale = 1.0;
var _fps = 30;
var _input_path = "./src/test.mov";
var _output_format ="./dest/test%d.mov"
@kidapu
kidapu / hexUtils.cpp
Created Jun 7, 2016
floatやintから16進数化したstringが得られる。あんまり使うことなさそう。
View hexUtils.cpp
class Utils
{
private:
template< typename T >
static std::string IntToHex( T i )
{
std::stringstream stream;
stream
<< std::setfill ('0')
You can’t perform that action at this time.