Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View staer's full-sized avatar

Dan Harris staer

View GitHub Profile
@staer
staer / sudoku.go
Created March 12, 2021 20:32
sudoku
package main
import (
"errors"
"fmt"
)
func main() {
test_puzzle := [9][9]int{
{5, 0, 0, 0, 0, 9, 1, 0, 0},
@staer
staer / MultiAuthentication.py
Created January 21, 2011 19:13
Custom Django-Piston authentication backend that can handle multiple types of auth methods
# Class that can help django-piston process multiple types of authentication
# Example usage:
#
# from piston.authentication import HttpBasicAuthentication
# from somewhere import OtherCustomAuthModule
#
# httpAuth = HttpBasicAuthentication(realm="CycleCloud")
# otherAuth = OtherCustomAuthModule()
#
# auth = MultiAuthentication([httpAuth, otherAuth])