Skip to content

Instantly share code, notes, and snippets.

darbula

Block or report user

Report or block darbula

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@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.";
View .block
license: mit
@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
@darbula
darbula / test.py
Last active May 1, 2019
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
You can’t perform that action at this time.