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 sys | |
global_counter = 0 | |
def count_calls(func, *args, **kwargs): | |
"""Count calls in function func""" | |
calls = [ -1 ] | |
def tracer(frame, event, arg): | |
global global_counter |
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 time | |
def mxdiflg1(a1, a2): | |
if a1 and a2: | |
return max( | |
len(max(a1, key=len)) - len(min(a2, key=len)), | |
len(max(a2, key=len)) - len(min(a1, key=len))) | |
return -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
function TestPort | |
{ | |
Param( | |
[parameter(ParameterSetName='ComputerName', Position=0)] | |
[string] | |
$ComputerName, | |
[parameter(ParameterSetName='IP', Position=0)] | |
[System.Net.IPAddress] | |
$IPAddress, |
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
Show hidden characters
{ | |
"folders": | |
[ | |
{ | |
"path": "", | |
"folder_exclude_patterns": | |
[ | |
"Img" | |
], |
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
pdflatex main.tex | |
pause |
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
% Copyright 2004 by Till Tantau <[email protected]>. | |
% | |
% In principle, this file can be redistributed and/or modified under | |
% the terms of the GNU Public License, version 2. | |
% | |
% However, this file is supposed to be a template to be modified | |
% for your own needs. For this reason, if you use this file as a | |
% template and not specifically distribute it as part of a another | |
% package/program, I grant the extra permission to freely copy and | |
% modify this file as you see fit and even to delete this copyright |