Skip to content

Instantly share code, notes, and snippets.

@JosuaKrause
JosuaKrause / invoke.xq
Created June 27, 2013 16:34
BaseX identifies test.xq as updating expression, while test1.xq, test2.xq are not considered updating expressions. This makes invoke.xq fail with "[BBXQ0001] No updating expression allowed." on https://github.com/BaseXdb/basex/commit/e6f2ef714e1bd53bcca54f502a5fd2739a07026c Expected result would be: 4 4 4 Issue at https://github.com/BaseXdb/base…
xquery version "3.0";
xquery:invoke( file:dir-name(static-base-uri()) || "test1.xq" ),
xquery:invoke( file:dir-name(static-base-uri()) || "test2.xq" ),
xquery:invoke( file:dir-name(static-base-uri()) || "test.xq" )
package foo;
import java.util.logging.Level;
import java.util.logging.Logger;
public final class Foo {
/** The logger. */
private static final Logger LOGGER = Logger.getLogger(Foo.class.getName()); // one logger per class
@JosuaKrause
JosuaKrause / spec.md
Last active August 29, 2015 14:14
JSON specification

JSON specification

The newest version of the spec can be found here.

$foo are custom ids that are not exposed to a user but may be used as HTML ids (restrictions to white-space and special characters eg. '.' or '#' apply and they must be globally unique). <"foo"> are optional fields in an object. Colors are all valid CSS colors (named, hexadecimal, rgb, …)

@JosuaKrause
JosuaKrause / readme.md
Last active August 29, 2015 14:20
An example project welcome page.

Project Super Awesome

Project Super Awesome (PSA) is a visualization tool aimed to show ... ... the dataset is publicly available here. ... ... You can run the tool locally by converting the data with ./magic_script.sh and running a local python server (python -m SimpleHTTPServer). ...

For a more detailed explanation please refer to the project description. You can try out the live demo and see in the video how to interact with the

@JosuaKrause
JosuaKrause / test.py
Last active August 29, 2015 14:20
My base classes
class TypeBase(Object):
def __init__(self):
self.codeTypes = {}
def id():
raise NotImplementedError()
def name():
raise NotImplementedError()
@JosuaKrause
JosuaKrause / git diff blame
Created June 5, 2015 20:20
Blames every line from the diff
#!/bin/bash
cur_file=
cur_commit=
cur_lines=
old_ifs=$IFS
IFS=$'\n'
for line in `git diff -U0 "$@"`; do
case "${line}" in
index*)
# index 12ceb6c..899b332 100755
@JosuaKrause
JosuaKrause / keybase.md
Created July 24, 2015 20:52
keybase.md

Keybase proof

I hereby claim:

  • I am JosuaKrause on github.
  • I am josuakrause (https://keybase.io/josuakrause) on keybase.
  • I have a public key whose fingerprint is 6BA6 B098 1960 2BD9 9218 A051 0A8E 4CBE BC5A 7068

To claim this, I am signing this object:

@JosuaKrause
JosuaKrause / average_all.ipynb
Created June 2, 2020 16:32
Compute average, brighter average, and darker average for icons
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.