Moved to: https://github.com/nicoulaj/zsh-syntax-highlighting
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
/** | |
* Build the URL to call with the session ID | |
*/ | |
public static function buildAuthenticatedURL(url : String):String | |
{ | |
if (jsessionid == null) { | |
// Get the cookie | |
ExternalInterface.call('eval','window.getCookie = function () {return document.cookie};'); | |
var cookie : String = ExternalInterface.call('getCookie'); |
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
/** | |
* Copyright (c) 2007 Ben Stucki | |
* | |
* 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 all copies or |
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 | |
# Manually apply fix for https://bugs.launchpad.net/ubuntu/+source/libwnck/+bug/144406 | |
# For Ubuntu 10.10 only ! | |
# Install required packages | |
sudo apt-get install compiz-dev compiz-fusion-bcop compizconfig-settings-manager intltool -y | |
# Download and extract sources and patch | |
mkdir /tmp/compiz-plugins-patch && cd /tmp/compiz-plugins-patch | |
wget http://releases.compiz-fusion.org/components/plugins-main/compiz-plugins-main-0.8.6.tar.gz |
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
@echo off | |
REM This one-liner does the same as http://sourceforge.net/projects/tikione | |
for /R "C:\Program Files (x86)\Steam\steamapps" %%I in ("") do if exist "%%~dpIredist" rmdir /s /q "%%~dpIredist" |
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 | |
cat > PrintAvailableProcs.java <<EOF | |
public class PrintAvailableProcs { | |
public static void main(String[] args) { | |
System.out.println(Runtime.getRuntime().availableProcessors()); | |
} | |
} | |
EOF | |
javac PrintAvailableProcs.java |
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 | |
# Looks for /tmp/hsperfdata_* files leaved by unclean Java processes | |
# shutdowns and remove them. | |
# This should be executed by a user without sufficient rights to delete | |
# other users files... | |
for hsperfdata in /tmp/hsperfdata_*/*; do | |
ps -p `basename ${hsperfdata}` &> /dev/null || rm -vf $hsperfdata | |
done |
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
public class ArrayListAddBenchmark extends ListBenchmark { | |
@Override | |
protected List<Object> newInstance() { | |
return new ArrayList<Object>(); | |
} | |
} |
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
.vagrant |
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
/** | |
* Check comparator respects its contract against a given collection. | |
* | |
* @param elements | |
* collection | |
* @param comparator | |
* comparator | |
*/ | |
public static <T> void checkComparatorContract(Collection<T> elements, Comparator<? super T> comparator) { |
OlderNewer