Skip to content

Instantly share code, notes, and snippets.

@djuretic
djuretic / Dockerfile
Created March 20, 2018 18:12
PHP 5.6 Apache with SqlServer support in Docker
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
@djuretic
djuretic / voltage.ino
Created July 27, 2014 00:01
Microview voltage
#include <MicroView.h>
void setup(){
uView.begin();
uView.clear(PAGE);
pinMode(A0, INPUT);
digitalWrite(A0, HIGH);
}
void loop(){
@djuretic
djuretic / vocabs.py
Created October 8, 2013 01:11
Skritter API: get vocabs
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 = ''