Skip to content

Instantly share code, notes, and snippets.

View andre-geldenhuis's full-sized avatar

Andre Geldenhuis andre-geldenhuis

View GitHub Profile
@andre-geldenhuis
andre-geldenhuis / main.cpp
Created January 17, 2019 03:08
FastLed ColorTemperature
#include "FastLED.h"
FASTLED_USING_NAMESPACE
#if defined(FASTLED_VERSION) && (FASTLED_VERSION < 3001000)
#warning "Requires FastLED 3.1 or later; check github for latest code."
#endif
#define NUM_STRIPS 1
#define NUM_LEDS_PER_STRIP 60
@andre-geldenhuis
andre-geldenhuis / main.cpp
Last active August 12, 2018 02:32
Fastled break one long strip into virtual substrips with CRGBSet
#include "FastLED.h"
FASTLED_USING_NAMESPACE
#define NUM_LEDS 60
#define NUM_LEDS_1 20
#define NUM_LEDS_2 30
#define NUM_LEDS_3 10
CRGBArray<NUM_LEDS> leds;
#include <FastLED.h>
#define LEDPIN D4
#define NUM_LEDS 5
CRGB leds[NUM_LEDS];
CRGB leds_virt[NUM_LEDS];
const int led_map[NUM_LEDS] = {
[slurm_master]
master ansible_ssh_host=xxx01.net
[slurm_clients]
node2 ansible_ssh_host=xxx2.net
node3 ansible_ssh_host=xxx3.net
node4 ansible_ssh_host=xxx4.net
node5 ansible_ssh_host=xxx5.net
node6 ansible_ssh_host=xxx6.net
node7 ansible_ssh_host=xxx7.net
#!/bin/bash
### everpad_to_zim.sh v0.1
### Copyleft 2013 by alteist@gmail.com
###
### This script exports everpad's Evernote client (https://github.com/nvbn/everpad/)
### database (Schema v5) to zim wiki file sctructure:
### Evernote/notebook/note -> zim/notebook/note.txt + notebook/note/attachments.ext
###
### THIS SCRIPT DOES NOT:
### * copy attachments in the right place, but in the end of the note instead.