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 <Adafruit_NeoPixel.h> | |
#include <lib_dmx.h> // deskontrol library | |
#define DMX512 0 | |
#define PIN 12 // Arduino data pin for the WS2812s | |
#define DELAY 10 // Millis to sleep each loop | |
#define CLUSTER_SIZE 12 // Size of each LED ring | |
#define CLUSTERS_COUNT 30 // Number of LED rings | |
#define DMX_GROUPS 12 // Number of RGB inputs received via DMX... will interpolate these values into the clusters | |
// DMX_CHANNELS = DMX_GROUPS * 3(for RGB) + 1 effect channel |
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
qt.qpa.input: evdevmouse: Using device discovery | |
qt.qpa.input: udev device discovery for type QFlags(0x1|0x2) | |
qt.qpa.input: Found matching devices ("/dev/input/event3", "/dev/input/event2") | |
qt.qpa.input: Adding mouse at "/dev/input/event3" | |
qt.qpa.input: create mouse handler for "/dev/input/event3" "" | |
qt.qpa.input: Adding mouse at "/dev/input/event2" | |
qt.qpa.input: create mouse handler for "/dev/input/event2" "" | |
qt.qpa.input: Initializing tslib plugin "TsLib" "" | |
qt.qpa.input: tslib device is "/dev/input/event2" |
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
[info] - should respond with error | |
Feb 05, 2014 2:13:41 PM com.twitter.logging.Logger log | |
ERROR: Internal Server Error | |
com.fasterxml.jackson.databind.JsonMappingException: Infinite recursion (StackOverflowError) (through reference chain: com.omc.corona.anon$1["factory"]->com.fasterxml.jackson.databind.MappingJsonFactory["codec"]->com.omc.corona.anon$1["factory"]->com.fasterxml.jackson.databind.MappingJsonFactory["codec"]->com.omc.corona.anon$1["factory"]->com.fasterxml.jackson.databind.MappingJsonFactory["codec"]->com.omc.corona.anon$1["factory"]->com.fasterxml.jackson.databind.MappingJsonFactory["codec"]->com.omc.corona.anon$1["factory"]->com.fasterxml.jackson.databind.MappingJsonFactory["codec"]->com.omc.corona.anon$1["factory"]->com.fasterxml.jackson.databind.MappingJsonFactory["codec"]->com.omc.corona.anon$1["factory"]->com.fasterxml.jackson.databind.MappingJsonFactory["codec"]->com.omc.corona.anon$1["factory"]->com.fasterxml.jackson.databind.MappingJsonFactory["codec"]->com.omc.corona.anon$1["factory"]-> |
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
#!/bin/sh | |
# clear old pipe and lock | |
rmdir worklock 2>/dev/null | |
rm work | |
if [[ ! -p work ]]; then | |
mkfifo work | |
else | |
dd if=work of=/dev/null |
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
package main | |
/** | |
* This is a little too permissive (and hacked together), but it illustrates | |
* the point of encoding a bufio.Scanner that is stateful, so that it can | |
* parse the redis protocol. | |
*/ | |
import ( | |
"bufio" |
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
package main | |
func main() { | |
buf := make([]int, 0) | |
buf = append(buf, 0, 1, 2, 3) | |
sub := buf[0:2] //hang on to a reference of the beginning of the vector | |
for { | |
for i := 0; i < 1000; i++ { | |
buf = append(buf, i) | |
} |
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
package main | |
func main() { | |
buf := make([]int, 0) | |
for { | |
for i := 0; i < 1000; i++ { | |
buf = append(buf, i) | |
} | |
buf = buf[999:1000] | |
} |
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
require 'socket' | |
server = TCPServer.new ENV["PORT"] | |
loop do | |
client = server.accept | |
client.puts "Hello !" | |
client.puts "Time is #{Time.now}" | |
client.close | |
end |
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
#!/usr/bin/env ruby | |
require "open-uri" | |
require "rubygems" | |
require "json" | |
unless ENV["ASANA_API_KEY"] | |
puts "please set ASANA_API_KEY in the env" | |
exit 1 | |
end |
NewerOlder