Skip to content

Instantly share code, notes, and snippets.

View 2bbb's full-sized avatar

2bit 2bbb

View GitHub Profile
@tyhenry
tyhenry / list-of-addons-git.sh
Last active December 4, 2020 06:51
list ofxAddons for OF project, with git repo / version info > 'addons.git.make'
#!/bin/bash
# list-of-addons-git.sh
#
# to be run inside of an openFrameworks project with 'addons.make' file.
# writes 'addons.git.make' - list addons and git repo urls, branches, and commits to 'addons.git.make' file
INPUT="addons.make" # addons list file
OUTPUT="addons.git.make" # output file

Kiosk Mode macOS

  1. Create two user accounts
    • Administration account
    • Kiosk Account - This account will be locked down with Parental Controls
  2. Set up remote management
  3. Install kiosk software
  • We use a role-based Apple ID (ex: webmaster@[institution].org) to manage macOS software. Managing Apps this way saves lots of headaches.
@kaityo256
kaityo256 / watanabe-chiba-report.md
Created July 8, 2019 02:22
富士通C++コンパイラの最適化機能の改善について

2.4 富士通C++コンパイラの最適化機能の改善について

東京大学物性研究所 物質設計評価施設
渡辺宙志
富士通株式会社 次世代テクニカルコンピューティング開発本部
千葉修一
@yohhoy
yohhoy / ver.cpp
Created April 18, 2019 15:57
compiler version snippet
#if defined(__clang__)
#pragma message "Clang " __VERSION__
#elif defined(__GNUC__)
#pragma message "GCC " __VERSION__
#elif defined(_MSC_VER)
// https://qiita.com/yumetodo/items/8c112fca0a8e6b47072d
#define STR(s) #s
#define DUMP(s) #s "=" STR(s)
#pragma message ("MSVC " DUMP(_MSC_VER) " " DUMP(_MSC_FULL_VER))
#endif
@ksasao
ksasao / detect_marker.py
Last active December 10, 2023 02:38
ZOZOSUITのマーカーのIDを読み取るコードです。公開されている画像を元に独自に解析しているので、公式ではこのように処理しているかどうかは不明です。仕様等については https://twitter.com/ksasao/status/990779583682170881 のスレッドも参照してください。全身を読み取るコード https://twitter.com/ksasao/status/989842844243279872 ライセンスは Apache License 2.0 です。
import numpy as np
import random
import math
import cv2
from PIL import Image
import sys
def detect_markers(im):
markers = []
# 輪郭線抽出のための二値化
#pragma once
#include "ofxWatchFile.h"
#include "ofxJsonUtils.h"
#define KVCS1(name) kv(name)
#define KVCS2(name, ...) KVCS1(name), KVCS1(__VA_ARGS__)
#define KVCS3(name, ...) KVCS1(name), KVCS2(__VA_ARGS__)
#define KVCS4(name, ...) KVCS1(name), KVCS3(__VA_ARGS__)
@kylemcdonald
kylemcdonald / cycloid.cpp
Last active February 1, 2023 15:38
Reconstructing cyclo. id#00 by Carsten Nicolai & Ryoji Ikeda with openFrameworks.
// download cycolid.wav with:
// $ wget -O cycloid.mp4 "https://vimeo.com/73860675/download?t=1446320826&v=187839750&s=46dcfa8c1c9ed3539dcc260443df6da08032ee60796f781df237bb6957cb8138"
// $ ffmpeg -i cycloid.mp4 cycloid.wav
#include "ofMain.h"
#include "ofxAudioDecoder.h"
class ofApp : public ofBaseApp {
public:
ofxAudioDecoder audio;
@hashrock
hashrock / npmbenri.md
Last active August 20, 2023 05:54
npmで入る便利ツールまとめ

npm -gでインストールしたり、npm scripts内から使えそうなツールのまとめ

nodeプロセスマネージャ

開発時にリスタートしてくれる用途のものも含む

  • pm2
  • forever
  • node-dev
  • nodemon
#include "ofMain.h"
#include "ofxCv.h"
const string path_0 = "prev.tif";
const string path_1 = "cur.tif";
class ofApp : public ofBaseApp
{
ofVideoGrabber video;
ofxCv::FlowFarneback forward;
@satoruhiga
satoruhiga / ofxMaxCollTextParser.h
Last active August 29, 2015 14:04
ofxMaxCollTextParser.h
#pragma once
#include "ofMain.h"
class ofxMaxCollTextParser
{
public:
bool open(const string& path)
{