Skip to content

Instantly share code, notes, and snippets.

@djuretic
djuretic / voltage.ino
Created Jul 27, 2014
Microview voltage
View voltage.ino
#include <MicroView.h>
void setup(){
uView.begin();
uView.clear(PAGE);
pinMode(A0, INPUT);
digitalWrite(A0, HIGH);
}
void loop(){
@djuretic
djuretic / vocabs.py
Created Oct 8, 2013
Skritter API: get vocabs
View vocabs.py
from base64 import b64encode
from pprint import pprint
# pip install requests
import requests
# Configuration variables, see examples on http://beta.skritter.com/api/v0/docs/authentication
OAUTH_CLIENT_NAME = ''
OAUTH_CLIENT_SECRET = ''
# which account do you want to access?
USER_NAME = ''
@djuretic
djuretic / Dockerfile
Created Mar 20, 2018
PHP 5.6 Apache with SqlServer support in Docker
View Dockerfile
FROM php:5.6-apache
RUN apt-get update && apt-get install -y freetds-common freetds-bin freetds-dev unixodbc
RUN ln -s /usr/lib/x86_64-linux-gnu/libsybdb.a /usr/lib/
RUN docker-php-ext-install mssql