Skip to content

Instantly share code, notes, and snippets.

View .block
license: mit
@darbula
darbula / test.py
Last active Feb 5, 2020
Competitive programming simple input output testing.
View test.py
import argparse
import os
import re
import sys
from sys import platform
from subprocess import check_output, STDOUT, CalledProcessError
from itertools import izip_longest
from timeit import timeit
from subprocess import Popen
from threading import Timer
@darbula
darbula / DOJ.js
Created Feb 12, 2015
Revealing module pattern
View DOJ.js
if (typeof DOJ == 'undefined') {
DOJ = {};
}
// http://toddmotto.com/mastering-the-module-pattern/
DOJ = function () {
var _myPrivateVar = "_myPrivateVar can be accessed only from within DOJ.";
var myPublicProperty = "myPublicProperty is accessible as DOJ.myPublicProperty.";
@darbula
darbula / django_aaieduhr.md
Last active Dec 10, 2018
Instructions on how to implement Single Sign-On authentication using AAI@EduHr in Django. In Croatian language.
View django_aaieduhr.md

AAI@EduHr: Django SSO

  1. Osnovni preduvjet za korištenje Single Sign-On (SSO) autentikacije u Django projektu je instalacija i konfiguracija paketa djangosaml2 koja se može obaviti prateći detaljne upute na stranici https://bitbucket.org/lgs/djangosaml2

    Referentne, testirane te u ovim uputama preporučene verzije potrebnih paketa su:

    • xmlsec1 1.2.18 (openssl)
    • pysaml2==0.4.3
    • djangosaml2==0.10.0
You can’t perform that action at this time.