I hereby claim:
- I am devries on github.
- I am idolstar (https://keybase.io/idolstar) on keybase.
- I have a public key ASDjQ7wmNg3jKlaiv6K55IgdJqaJ9w_CI-UISWDjnYZV7Ao
To claim this, I am signing this object:
#include <SPI.h> | |
//LightStrand_RobotMike | |
//by Mike Winter | |
//version 3 | |
//Demonstrates chaseing lights | |
//Intented use: testing LED interface | |
//Code State: experimental, but it worked for me with 25 lights | |
//Concept: user adjust Pots to make a color. Color travels down strand of lights | |
//SPI Interface to strand based on Keith's excellent SPI code, thanks Keith |
#!/usr/bin/env python | |
import json | |
from datetime import datetime | |
class ObjectEncoder(json.JSONEncoder): | |
def default(self,obj): | |
try: | |
return json.JSONEncoder.default(self,obj) | |
except TypeError: | |
pass |
#!/usr/bin/env python | |
import numpy.random as random | |
def de_population(pmin,pmax,np): | |
"""Create a population of np randomly distributed sets of floating point | |
parameters whose elements are uniformly distributed between the values | |
in the array pmin and the values in pmax. Return a list of np of these | |
arrays. | |
pmin - minimum parameter values |
/************************************************************** | |
* rainbling.ino | |
* | |
* An idea for having rainbow colors appear in groups (totems) | |
* with occasional flashes. | |
***************************************************************/ | |
#include <SPI.h> | |
#include <TCL.h> | |
const int REPEATS = 24; |
I hereby claim:
To claim this, I am signing this object:
#cloud-config | |
users: | |
- name: cloudservice | |
uid: 2000 | |
write_files: | |
- path: /etc/systemd/system/cloudservice.service | |
parmissions: 0644 | |
owner: root |
FROM python:3.6-alpine | |
RUN apk add --update \ | |
gcc \ | |
make \ | |
musl-dev \ | |
libuv-dev \ | |
linux-headers \ | |
libxml2-dev \ | |
libxslt-dev \ |
#!/usr/bin/env python | |
import time | |
import math | |
def main(): | |
#fout = open('spidev','w') | |
fout = open('/dev/spidev2.0', 'w') | |
ctr = 0 |
package main | |
import ( | |
"fmt" | |
"sync" | |
"time" | |
) | |
func main() { | |
go setter() |