This file contains hidden or 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
| autocompile = true; | |
| outlets = 3; | |
| var NoteOutlet = 0, | |
| CCOutlet = 1, | |
| OSCOutlet = 2; | |
| var ps2 = (function() { | |
| var Controller = { | |
| Buttons: { |
This file contains hidden or 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
| #define flaot float | |
| #define unsinged unsigned | |
| #define cosnt const | |
| #define Typename typename | |
| #define tmpelate template | |
| #define testApp ofApp |
This file contains hidden or 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 app = Application.currentApplication(); | |
| app.includeStandardAdditions = true; | |
| JSON.parse(app.doShellScript("cat ~/launch.json")).map(Application).forEach(function(app){app.launch();app.activate();}); |
This file contains hidden or 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
| javascript:var%20d=document,f=function(e,i)%7Bfor(i=0;i%3C2;i++)e.setAttribute('style',%5B'','-webkit-'%5D%5Bi%5D+'filter:blur(6px)');%7D,p=d.getElementsByTagName('img'),i=0;for(;p&&i%3Cp.length;f(p%5Bi++%5D)); |
This file contains hidden or 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
| javascript:var%20d=document,g='getElement',f=function(e,i)%7Bfor(i=0;i%3C2;i++)e.setAttribute('style',%5B'','-webkit-'%5D%5Bi%5D+'filter:blur(6px)');%7D,p,i;if(p=d%5Bg+'ById'%5D('player'))f(p);for(p=d%5Bg+'sByTagName'%5D('iframe'),i=0;p&&i%3Cp.length;i++)if(0%3C=p%5Bi%5D.src.search('youtube'))f(p%5Bi%5D); |
This file contains hidden or 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
| namespace laziness { | |
| struct SimpleStopWatch { | |
| void start() { | |
| _start = std::chrono::high_resolution_clock::now(); | |
| } | |
| template <typename T = std::chrono::nanoseconds> | |
| typename T::rep rap() { | |
| _end = std::chrono::high_resolution_clock::now(); | |
| return std::chrono::duration_cast<T>(_end - _start).count(); |
This file contains hidden or 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 <cstdio> | |
| #include <cstdint> | |
| template <typename T> | |
| void hex_print(T v) { | |
| switch(sizeof(T)) { | |
| case 1: printf("0x%01X\n", *(reinterpret_cast<uint8_t *>(&v))); break; | |
| case 2: printf("0x%02X\n", *(reinterpret_cast<uint16_t *>(&v))); break; | |
| case 4: printf("0x%04X\n", *(reinterpret_cast<uint32_t *>(&v))); break; | |
| case 8: printf("0x%08llX\n", *(reinterpret_cast<uint64_t *>(&v))); break; |
This file contains hidden or 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 <iostream> | |
| union IntFloatUnion { | |
| int i; | |
| float f; | |
| }; | |
| using namespace std; | |
| int main(int argc, char *argv[]) { | |
| IntFloatUnion u; |
This file contains hidden or 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 <iostream> | |
| #include <iomanip> | |
| template <typename T, size_t Size = sizeof(T)> | |
| struct HexPrintable { | |
| static void hex_print(T v) { | |
| union { | |
| T original; | |
| uint8_t printing[Size]; | |
| } value; |
This file contains hidden or 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" | |
| class ofApp : public ofBaseApp { | |
| struct hex_info { | |
| bitset<32> bit_seq; | |
| string str_form; | |
| }; | |
| deque<hex_info> lines; | |
| union { |