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
{ | |
"fx": { | |
"enabled": false, | |
"status": { | |
"fxType": "channel", | |
"id": 1 | |
}, | |
"channel": { | |
"0": { | |
"flags": 1048577, |
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
mkdir -p tmp | |
cd tmp | |
#BOOST | |
echo "Downloading Lib Boost 1.70.0 ...." | |
wget -c https://dl.bintray.com/boostorg/release/1.70.0/source/boost_1_70_0.tar.gz -O - | tar -xz | |
echo "Downloading CMake..." |
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
/** | |
Requirements: Linux or macOS with curl, chrome (+ dev tools) installed. | |
Demo: https://twitter.com/ModusJesus/status/1131255310704873472 | |
Step 1: Go to a Lenovo device driver page like: https://pcsupport.lenovo.com/us/en/products/laptops-and-netbooks/thinkpad-t-series-laptops/thinkpad-t580-type-20l9-20la/downloads | |
Step 2: Copy and paste the below code & run | |
Step 3: Copy the CURL output | |
Step 4: Paste in a text file and run via bash. | |
Step 5: Do something that is more useful than having to click a ton of times to download device drivers and rename them. | |
*/ |
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
/* | |
This is a non-threaded & blocking TCP/IP sender program to your RPI running hzeller's RGB Matrix | |
thread. | |
It will loop and create a random color, sending `totalBytes` to the receving pi. | |
Original thread: https://github.com/hzeller/rpi-rgb-led-matrix/issues/796 | |
Client example: https://gist.github.com/jaygarcia/c8b0ce341b36c453c869fc2fe8c4f29c | |
*/ |
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
/* | |
This gist demonstrates how to setup threaded & blocking (probably could have used the async transfer instead) | |
Boost ASIO server to receive a number of bytes from a client. It was developed as a proof of concept and has many areas that | |
could be improved for speed. I ran this on a Raspberry PI 3b+ using the active RGB Matrix board from electrodragon. | |
Here's a demonstration this code executing on the PI 3b+ pumping 49,152 bytes for the video data ((6 x (64x64 rgb matrices) * 2). | |
https://www.youtube.com/watch?v=ODnbhvbLX9E&feature=youtu.be | |
This works spawning two threads (Network & Display) |
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 <SDL2/SDL.h> | |
#include <SDL2/SDL_audio.h> | |
#include "xmp.h" | |
#include "sndfile.h" | |
#include "stdlib.h" | |
#include "string.h" | |
#define SAMPLE_RATE 44100 | |
#define CHANNELS 2 |
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
Hit:1 http://us.archive.ubuntu.com/ubuntu artful InRelease | |
Hit:2 http://security.ubuntu.com/ubuntu artful-security InRelease | |
Hit:3 http://us.archive.ubuntu.com/ubuntu artful-updates InRelease | |
Hit:4 http://us.archive.ubuntu.com/ubuntu artful-backports InRelease | |
Reading package lists... | |
Return code from apt-get update is 0 | |
Selecting previously unselected package dkms. | |
(Reading database ... | |
(Reading database ... 5% | |
(Reading database ... 10% |
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
renderer.block = ^(const AERenderContext * _Nonnull context) { | |
AEBufferStack *bufferStack = context->stack; | |
const AudioBufferList * bufferList = AEBufferStackPushWithChannels(bufferStack, 1, 2); | |
if ( !bufferList ) { | |
return; | |
} | |
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
PROGMEM const unsigned char A[] = { | |
7, 6, | |
0x20, 0x38, 0x2E, 0x23, 0x27, 0x1C, 0x30 | |
}; | |
PROGMEM const unsigned char B[] = { | |
6, 6, | |
0x3F, 0x21, 0x21, 0x2D, 0x3F, 0x12 | |
}; |
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
RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation | |
moduleName:@"GORUCK" | |
initialProperties:nil | |
launchOptions:launchOptions]; | |
// JG: Configure the scaled image for the background | |
CGRect bounds =[UIScreen mainScreen].bounds; | |
UIGraphicsBeginImageContext(bounds.size); |
NewerOlder