Skip to content

Instantly share code, notes, and snippets.

scotty-macbook-air:server scotty$ make FT_BACKEND=terminal
c++ -Wall -O3 -I../common -DFT_BACKEND=2 -c -o main.o main.cc
main.cc:66:9: error: use of undeclared identifier 'getresuid'
if (getresuid(&ruid, &euid, &suid) >= 0) {
^
main.cc:76:9: error: use of undeclared identifier 'setresgid'
if (setresgid(g->gr_gid, g->gr_gid, g->gr_gid) != 0) {
^
main.cc:85:9: error: use of undeclared identifier 'setresuid'
if (setresuid(p->pw_uid, p->pw_uid, p->pw_uid) != 0) {
#include "FastLED.h"
FASTLED_USING_NAMESPACE
// FastLED "100-lines-of-code" demo reel, showing just a few
// of the kinds of animation patterns you can quickly and easily
// compose using FastLED.
//
// This example also shows one easy way to define multiple
// animations patterns and have them automatically rotate.
#include "FastLED.h"
FASTLED_USING_NAMESPACE
#if FASTLED_VERSION < 3001000
#error "Requires FastLED 3.1 or later; check github for latest code."
#endif
#define BRIGHTNESS 96
#define FRAMES_PER_SECOND 240
import socket
class Flaschen(object):
def __init__(self, host, port, width, height, layer=0):
self.host = host
self.port = port
self.width = width
self.height = height
self.layer = layer
self.pixels = []
@scottyallen
scottyallen / flaschen_workshop.md
Last active July 14, 2016 07:05
Flaschen Taschen in Python Workshop
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
0
SECTION
2
HEADER
9
$ACADVER
1
AC1014
9
$HANDSEED
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.