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
tap "homebrew/bundle" | |
tap "homebrew/cask" | |
tap "homebrew/core" | |
# build tools | |
brew "autoconf" | |
brew "automake" | |
brew "ccache" | |
brew "cmake" | |
brew "coreutils" |
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 | |
# 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 |
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
// | |
// ofxAVFoundationVideoPlayerUtils.hpp | |
// | |
// Created by 2bit on 2020/05/03. | |
// | |
#ifndef ofxAVFoundationVideoPlayerUtils_hpp | |
#define ofxAVFoundationVideoPlayerUtils_hpp | |
#include "ofVideoPlayer.h" |
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
const fs = require('fs'); | |
const crypto = require('crypto'); | |
const hash_from_file = (file, algorithm = 'sha256') => new Promise((resolve, reject) => { | |
try { | |
const stat = fs.statSync(file); | |
const hash = crypto | |
.createHash(algorithm) | |
.setEncoding('hex'); | |
fs |
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
#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 |
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
// original code (with C++14) by kazatsuyu (https://github.com/kazatsuyu) | |
// CC0 https://creativecommons.org/publicdomain/zero/1.0/deed.en | |
/* | |
CC0 1.0 Universal (CC0 1.0) | |
Public Domain Dedication | |
No Copyright | |
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of his or her rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. | |
You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission. See Other Information below. |
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
#include <cstddef> | |
#include <cstdint> | |
#include <type_traits> | |
namespace bbb { | |
namespace { | |
template <bool b, typename type> | |
using enable_if_t = typename std::enable_if<b, type>::type; | |
template <bool b, typename t, typename f> | |
using conditional_t = typename std::conditional<b, t, f>::type; |
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
#include <string> | |
#include <sstream> | |
#include <cstdio> | |
#include <type_traits> | |
#include <cstddef> | |
#include <iostream> | |
namespace bbb { | |
inline namespace string_utils { |
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
#include <cstddef> | |
#include <cstdint> | |
#include <type_traits> | |
#include <functional> | |
namespace bbb { | |
namespace { | |
template <bool b, typename type> | |
using enable_if_t = typename std::enable_if<b, type>::type; | |
}; |
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
#include <utility> | |
namespace bbb { | |
namespace infix_op { | |
template <typename function_type> | |
struct infix_op { | |
inline infix_op() : f() {}; | |
template <typename ... arguments> | |
inline infix_op(arguments ... args) : f(std::forward<arguments>(args) ...) {}; | |
NewerOlder