Skip to content

Instantly share code, notes, and snippets.

View Xjs's full-sized avatar

Jannis Andrija Schnitzer Xjs

View GitHub Profile
alert("hello");
<div style="border: 1px solid black; vertical-align:middle;">
<div><img style="float:left;" src="Bild.gif"></div>
<h1>Eine Überschrift</h1>
</div>
@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
# 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
# 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
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("/"):
; 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
-- --------------------------------------
-- 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
12/13/10 18:45:19 Linkinus[31540] Loading <FOInputController: 0x114fe3d60>
12/13/10 18:45:20 Linkinus[31540] *** Launching Linkinus Agent now...
12/13/10 18:45:20 Linkinus[31540] Try connecting in <LKAgentLookup: 0x115a84790>
12/13/10 18:45:20 Linkinus[31540] Connected to agent socket.
12/13/10 18:45:20 Linkinus[31540] onSocketDidDisconnect:
12/13/10 18:45:21 Linkinus[31540] Try connecting in <LKAgentLookup: 0x1011604b0>
12/13/10 18:45:21 Linkinus[31540] Connected to agent socket.
12/13/10 18:45:21 Linkinus[31540] onSocketDidDisconnect:
12/13/10 18:45:21 Linkinus[31540] Try connecting in <LKAgentLookup: 0x114e41e70>
12/13/10 18:45:21 Linkinus[31540] Connected to agent socket.
1. Banks neglected to maintain a sufficiently diversified portfolio.
2. The compensation systems for leading managers were far too much based on short-term performances.
3. The control system within banks failed.
4. Rating agencies financed by their customers grossly misjudged the values of firms and assets.
5. The measures by the US government to ease the buying of houses by relatively poor people proved to be mistaken.