Skip to content

Instantly share code, notes, and snippets.

@tinesubic
tinesubic / How to use
Last active August 16, 2016 11:42
Mocha Unit Tests for qminer JS wrapper
HOW TO - Running Mocha with Chai, unit test files and examples
Install Node:
- "sudo apt-get install npm" to install npm package manager
- "sudo apt-get install uuid-dev" to install dependencies for building node/qminer
- clone "link to be added" Node repository from GitHub
- cd to root directory and run commands "./configure", "make", "make install"
- cd to /test/addons/la
- install node-gyp with "sudo npm install -g node-gyp"
- build qminer with command "node-gyp configure build"
- follow instructions below to install test framework
@bancek
bancek / ucilnica.py
Created March 29, 2013 08:48
Login for FRI ucilnica
# pip install requests
import re
import requests
UCILNICA_LOGIN_URL = 'https://ucilnica.fri.uni-lj.si/login/index.php'
UCILNICA_LOGGEDIN_URL = 'https://ucilnica.fri.uni-lj.si/'
def ucilnica_login(username, password):
"""Check login for FRI ucilnica