This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import traceback | |
| n = 6 | |
| # Рекурсия. | |
| def summa_n1(x): | |
| global n_calls | |
| global max_stack | |
| n_calls += 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import dis | |
| import cProfile | |
| import timeit | |
| def f1(): | |
| global y | |
| global x | |
| k = y / x |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import traceback | |
| # Variants of CPS fibonacci from article | |
| # https://coderscat.com/understanding-recursion-and-continuation-with-python/ | |
| # . | |
| n = 5 | |
| end_cont = lambda v: v | |
| n_calls = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import traceback | |
| # Variants of examples from | |
| # https://www.ps.uni-saarland.de/~duchier/python/continuations.html . | |
| max_stack = 0 | |
| end_cont = lambda v: v |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "time" | |
| "math" | |
| "bufio" | |
| "os" | |
| "sort" | |
| "golang.org/x/net/idna" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # exifautotran [list of files] | |
| # | |
| # Transforms Exif files so that Orientation becomes 1 with exiftool and | |
| # imagemagick. | |
| # | |
| trap "if test -n \"\$tempfile\"; then rm -f \"\$tempfile\"; fi" INT QUIT TERM | |
| for i |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import XMonad | |
| import XMonad.Util.EZConfig | |
| import XMonad.Util.DebugWindow | |
| import XMonad.Hooks.DebugStack | |
| import XMonad.Hooks.ManageDocks | |
| import XMonad.Hooks.EwmhDesktops | |
| import XMonad.Hooks.ManageHelpers | |
| import qualified XMonad.Util.ExtensibleState as XS | |
| import XMonad.Util.WindowProperties (getProp32s) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import XMonad | |
| import XMonad.Util.EZConfig | |
| import XMonad.Util.DebugWindow | |
| import XMonad.Hooks.DebugStack | |
| import XMonad.Hooks.ManageDocks | |
| import qualified XMonad.StackSet as W | |
| import XMonad.Hooks.EwmhDesktops | |
| import Data.List |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import XMonad | |
| import XMonad.Operations | |
| import XMonad.Util.EZConfig | |
| import XMonad.Util.DebugWindow | |
| import XMonad.Hooks.DebugStack | |
| import XMonad.Hooks.ManageDocks | |
| import qualified XMonad.StackSet as W | |
| import XMonad.Hooks.EwmhDesktops | |
| import Control.Monad |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Sender address setting is implemented using untrusted_set_sender/acl_not_smtp | |
| # pair (see below), thus i don't need to trust to mgrsecure (== everyone). | |
| #trusted_groups = mgrsecure | |
| # No such user. | |
| #trusted_users = 80 | |
| # I need this to allow any $sender_address pass through into non_smtp ACL checks. | |
| untrusted_set_sender = * | |
| <..> |