Skip to content

Instantly share code, notes, and snippets.

@darbula
darbula / test.py
Last active April 12, 2022 07:21
Competitive programming simple input output testing.
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 / django_aaieduhr.md
Last active March 7, 2021 19:37
Instructions on how to implement Single Sign-On authentication using AAI@EduHr in Django. In Croatian language.

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
@darbula
darbula / .block
Created May 6, 2018 13:56
fresh block
license: mit
@darbula
darbula / DOJ.js
Created February 12, 2015 20:51
Revealing module pattern
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.";