This file contains 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
class AClass<T> { | |
public string hello() { | |
return "hello"; | |
} | |
} | |
class BClass { | |
} |
This file contains 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
# general consideration: store as much of the shell config as feasible in | |
# ~/.zsh to keep this file concise | |
# requirements: | |
# - z | |
# - git | |
# optionals: | |
# - zsh syntax highlighting | |
# - iterm2 for shell integration |
This file contains 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
class JarStreamMustacheFactory extends DefaultMustacheFactory | |
{ | |
String resourceRoot; | |
public JarStreamMustacheFactory(String resourceRoot) | |
{ | |
super(resourceRoot); | |
if (!resourceRoot.endsWith("/")) resourceRoot += '/'; | |
this.resourceRoot = resourceRoot; |
This file contains 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
$.each(location.pathname.split('/'), function(key, section) { | |
var id = section || (key === 0) ? "index" | |
: location.pathname.split('/')[key-1]; | |
var index = section.indexOf('.'); | |
if (index > 0) id = id.substring(0, index); | |
$('html').attr('id', id+'-page'); | |
// CSS classes must not begin with a number... |
This file contains 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
php -r 'for (;;) print eval(fread(STDIN, 4096));' |
This file contains 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 math | |
def prime(n): | |
i = 2 | |
while i < 0.5 + math.sqrt(n): | |
if n % i == 0: | |
return False | |
i+=1 | |
return True |
This file contains 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
#!/usr/bin/php | |
<?php | |
/** | |
Convert iTunes Music Library.xml path locations | |
usage: convert.php library.xml old_library_path new_library_path | |
converted library is written to stdout | |
old and new library paths have to include trailing slashes and |
This file contains 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(n,j){function G(a){return c.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function w(a){if(!ea[a]){var b=l.body,d=c("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){u||(u=l.createElement("iframe"),u.frameBorder=u.width=u.height=0);b.appendChild(u);if(!H||!u.createElement)H=(u.contentWindow||u.contentDocument).document,H.write((l.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>"),H.close();d=H.createElement(a);H.body.appendChild(d); | |
e=c.css(d,"display");b.removeChild(u)}ea[a]=e}return ea[a]}function t(a,b){var d={};c.each(sa.concat.apply([],sa.slice(0,b)),function(){d[this]=a});return d}function db(){V=j}function ta(){setTimeout(db,0);return V=c.now()}function ua(){try{return new n.XMLHttpRequest}catch(a){}}function fa(a,b,d,e){if(c.isArray(b))c.each(b,function(b,f){d||eb.test(a)?e(a,f):fa(a+"["+(typeof f=="object"||c.isArray(f)?b:"")+"]",f,d,e)});else if(!d&&b!=null&&typeof b=="object")for(var f in b)fa(a+"["+f+"]",b[f],d,e); | |
else e(a,b)}functi |
This file contains 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
[user] | |
email = [email protected] | |
name = Stefan Graupner | |
[color] | |
diff = auto | |
status = auto | |
branch = auto | |
ui = auto | |
[core] | |
compression = 7 |
This file contains 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
#!/bin/sh | |
git clone git://github.com/v8/v8.git | |
cd v8 | |
installdir='/usr/local' | |
if [ "$1" -ne "" ]; | |
then | |
installdir=$1 | |
fi |
NewerOlder