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:
#!/usr/bin/env python | |
import math | |
import sys | |
def main(argv=None): | |
if argv is None: | |
argv = sys.argv | |
if len(argv) != 3: | |
print >>sys.stderr, "Usage:",sys.argv[0],"<datafile1> <datafile2>" |
/************************************************************** | |
* 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; |
#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 |
from urllib import quote | |
class SSLRedirect(object): | |
def __init__(self,app): | |
self.app=app | |
def __call__(self,environ,start_response): | |
proto = environ.get('HTTP_X_FORWARDED_PROTO') or environ.get('wsgi.url_scheme', 'http') | |
if proto=='https': |
#!/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 |
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 \ |