Instantly share code, notes, and snippets.

Tadek Teleżyński tadeoos

View GitHub Profile
View tt-project-biulder.sh
#!/usr/bin/env bash
echo project_name: $1
if [[ "$1" == "" ]] ; then
echo 'provide project name'
exit 0
fi
mkdir $1
cd $1
View dj-custom-test-command.py
import subprocess
from django.core.management import BaseCommand
class Command(BaseCommand):
help = "Run tests with coverage. See options for more actions."
def add_arguments(self, parser):
View stacktracer.py
"""Stack tracer for multi-threaded applications.
Usage:
import stacktracer
stacktracer.trace_start("trace.html",interval=5,auto=True) # Set auto flag to always update file!
....
stacktracer.trace_stop()
"""
View spot.py
from __future__ import print_function, division
import itertools, sys, time
# simple factorial function
def fact(n, acc=1):
return acc if n == 0 else fact(n - 1, n * acc)
# binomial coefficient
def newton(n, k):
return 0 if k > n else fact(n) / (fact(k) * fact(n - k))
View keybase.md

Keybase proof

I hereby claim:

  • I am tadeoos on github.
  • I am tadeo (https://keybase.io/tadeo) on keybase.
  • I have a public key whose fingerprint is 5F13 FB1B 569E 432A 0105 9E35 3890 725B 4477 7E6F

To claim this, I am signing this object: