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 itertools | |
import sys | |
def spinner(granularity): | |
"""Wraps a function in an ASCII spinner display loop. granularity | |
represents the number of times the function should be called | |
before moving the spinner.""" | |
spinner_chars = itertools.cycle("\|/-") | |
def make_spinner(f): | |
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
(defun huwigs-build-ipregistry (clean) | |
"Build the IP Registry UI project. | |
Argument CLEAN if prefix arg is given, clean and then build." | |
(interactive "P") | |
(let ((default-directory *ipregistry-project-directory*) | |
(command (if clean | |
"/home/huwigs/bin/mvn -B clean pmd:check tomcat6:run" | |
"/home/huwigs/bin/mvn -DskipTests=true tomcat6:run")) | |
(tags-revert-without-query t)) |
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
create function python_exception_bug() | |
returns void as $$ | |
raise plpy.spiexceptions.InvalidParameterValue() | |
$$ language 'plpython3u'; | |
create function python_exception_sql() | |
returns text as $$ | |
begin | |
select python_exception_bug(); | |
return 'cannot happen'; |
NewerOlder