Skip to content

Instantly share code, notes, and snippets.

View Xjs's full-sized avatar

Jannis Andrija Schnitzer Xjs

View GitHub Profile
-- --------------------------------------
-- Exec Script for Linkinus
-- Original by Jannis Andrija 'Xjs' Schnitzer
-- Version 0.1
-- --------------------------------------
on linkinuscmd(parameter)
try
set output to do shell script parameter
on error
; Only for mg.mud.de and use with the TinyMacros also found on GitHub:
; Executes /check_props and /updatePlayer periodically if the prompt is >.
; In that case, removes the prompt.
/def -h"PROMPT" catch_prompt = \
/test set(strcat("the_prompt=",{*}))%; \
/if (the_prompt !~ "" & the_prompt !~ ">") \
/test prompt(strcat("%the_prompt", " "))%; \
/endif
diff --git a/couchdbkit/client.py b/couchdbkit/client.py
index dbf9e10..3d1988e 100644
--- a/couchdbkit/client.py
+++ b/couchdbkit/client.py
@@ -223,10 +225,7 @@ class Database(object):
uri_parsed = urlparse.urlparse(uri)
server_uri = "%s://%s" % (uri_parsed.scheme, uri_parsed.netloc)
- dbname = uri_parsed.path[1:]
- if dbname.endswith("/"):
# url_match.py
# Find out if a string is, or contains, a common URL.
#
# Copyright (c) 2009 Jannis Andrija Schnitzer
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# Copyright (c) 2009 Jannis Andrija Schnitzer
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
@Xjs
Xjs / recursive_dictionary.py
Created May 20, 2009 14:00
a recursive updating dictionary in Python
# recursive_dictionary.py
# Created 2009-05-20 by Jannis Andrija Schnitzer.
#
# Copyright (c) 2009 Jannis Andrija Schnitzer
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
<div style="border: 1px solid black; vertical-align:middle;">
<div><img style="float:left;" src="Bild.gif"></div>
<h1>Eine Überschrift</h1>
</div>
alert("hello");