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
var bbb = {}; | |
bbb.extend = function(dst, src) { | |
for(var key in src) if(src.hasOwnProperty(key)) dst[key] = src[key]; | |
return dst; | |
}; | |
bbb.math = {}; | |
var vec2 = (function() { |
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 MatF2 = { | |
from_string: M => M.split('\n').map(l => l.replace(/ /g, '')).filter(l => l != '').map(l => l.split('').map(b => 0 ^ b)), | |
translate: M => M[0].map(() => (M.map(() => 0))).map((l, i) => l.map((_, j) => M[j][i])), | |
product: (G, H) => { | |
const res = []; | |
for(let i = 0; i < G.length; i++) { | |
const arr = []; | |
for(let j = 0; j < H[0].length; j++) { | |
let tmp = 0; | |
for(let k = 0; k < H.length; k++) { |
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 <iterator> | |
namespace bbb { | |
namespace detail { | |
template <typename _> | |
std::true_type make_true(_ = std::declval<_>()); | |
}; | |
template <typename checkee_type> | |
struct is_iteratable { |
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 | |
g++ -Inode_modules/abletonlink/libs/link/include -Inode_modules/abletonlink/libs/link/modules/asio-standalone/asio/include -std=c++11 -DLINK_PLATFORM_LINUX=1 -pthread link.cpp -o link.o |
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
// | |
// ofxListenerUtils.h | |
// | |
// Created by ISHII 2bit on 2017/03/04. | |
// | |
// | |
#pragma once | |
#ifndef ofxListenerUtils_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 Finder = Application("Finder"); | |
Finder.activate(); | |
const window = Finder.finderWindows()[0]; | |
const path = decodeURI(window.target().url().slice(7)); | |
const currentApp = Application.currentApplication(); | |
currentApp.includeStandardAdditions = true; | |
currentApp.doShellScript("/usr/local/bin/code " + path); |
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 "ofMain.h" | |
#include "ofxOsc.h" | |
#include "ofxExtendedOscMessage.h" | |
class ofApp : public ofBaseApp { | |
ofxOscReceiver receiver; | |
ofxOscSender sender; | |
public: | |
void setup() { | |
sender.setup("localhost", 9005); |
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 "ofMain.h" | |
#include <array> | |
template <std::size_t size_, typename T> | |
struct mat { | |
static constexpr std::size_t size = size_; | |
std::array<std::array<T, size>, size> body; | |
std::array<T, size> &operator[](std::size_t index) { |
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
#pragma once | |
#include "ofConstants.h" | |
#define OFX_MAKE_OF_VERSION(major, minor, patch) (major * 10000 + minor * 100 + patch) | |
#define OFX_THIS_OF_VERSION OFX_MAKE_OF_VERSION(OF_VERSION_MAJOR, OF_VERSION_MINOR, OF_VERSION_PATCH) | |
#define OFX_THIS_OF_IS_OLDER_THAN(major, minor, patch) (OFX_OF_VERSION < OFX_MAKE_OF_VERSION(major, minor, patch)) | |
#define OFX_THIS_OF_IS_OLDER_THAN_EQ(major, minor, patch) (OFX_OF_VERSION <= OFX_MAKE_OF_VERSION(major, minor, patch)) | |
#define OFX_THIS_OF_IS_NEWER_THAN(major, minor, patch) (OFX_MAKE_OF_VERSION(major, minor, patch) < OFX_OF_VERSION) | |
#define OFX_THIS_OF_IS_NEWER_THAN_EQ(major, minor, patch) (OFX_MAKE_OF_VERSION(major, minor, patch) <= OFX_OF_VERSION) |
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 | |
cd $1 | |
FILES="*" | |
for FILEPATH in $FILES; | |
do | |
if [ -d $FILEPATH ]; | |
then | |
cd $FILEPATH | |
git config --get remote.origin.url >/dev/null 2>&1 |