Skip to content

Instantly share code, notes, and snippets.

Cloning into '/Users/root/development/cura-build-environment'...
remote: Enumerating objects: 2202, done.
remote: Counting objects: 100% (342/342), done.
remote: Compressing objects: 100% (255/255), done.
remote: Total 2202 (delta 205), reused 180 (delta 87), pack-reused 1860
Receiving objects: 100% (2202/2202), 452.73 KiB | 3.59 MiB/s, done.
Resolving deltas: 100% (1387/1387), done.
Using 10.13 as the minimum OSX version.
Set MACOSX_DEPLOYMENT_TARGET to 10.13
Set CMAKE_OSX_DEPLOYMENT_TARGET to 10.13
/*
This script loops trough the artboard and exports each artboard to svg.
The destination folder depends on the artboard width.
!!! This script doesn't currently creates the necessary folder so you need to create the folder structure before exporting.
The destination will be relative to the illustration location: /export/svg/[icon-width]/[artboard name].svg
Artboards with a name starting with - will not be exported
*/
{
"voices": [{
"protagonist": "roomba",
"phrases": [{
"text": "Bruce quote",
"file": "file.mp3",
"targets": [{
"name": "roomba"
}, {
"name": "roomba"
var piccione;
var piccioneWalk;
var piccioneEat;
var backgroundImg;
var groundImg;
var groundSprite;
#include <CurieBLE.h>
#include <Adafruit_NeoPixel.h>
#include "CurieIMU.h"
const int ledPin = 13; // set ledPin to on-board LED
int orientation=0;
BLEService accelerometerService("19B10010-E8F2-537E-4F6C-D104768A1214"); // create service
@lorenzoromagnoli
lorenzoromagnoli / file.rb
Created March 7, 2017 06:57
Neopixel animations
#include <Adafruit_NeoPixel.h>
// Pattern types supported:
enum pattern { NONE, RAINBOW_CYCLE, THEATER_CHASE, COLOR_WIPE, SCANNER, FADE };
// Patern directions supported:
enum direction { FORWARD, REVERSE };
class NeoPatterns : public Adafruit_NeoPixel