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
<!doctype html> | |
<html> | |
<head> | |
<script src="jquery-1.4.js"></script> | |
<script> | |
/** | |
* @return null if param not found | |
* @return string if param found once | |
* @return array if param found more than once or name ends with "[]" | |
*/ |
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 javax.sound.midi.MidiChannel; | |
import javax.sound.midi.MidiSystem; | |
import javax.sound.midi.Synthesizer; | |
public class Beeper { | |
public static void main(String[] args) throws Exception { | |
beep(); | |
} | |
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
" set the langmenu before everything else!!! | |
set langmenu=en | |
"language messages en | |
set nocompatible | |
source $VIMRUNTIME/vimrc_example.vim | |
source $VIMRUNTIME/mswin.vim | |
behave mswin | |
set diffexpr=MyDiff() |
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 java.io.BufferedOutputStream; | |
import java.io.FileOutputStream; | |
import java.io.InputStream; | |
import java.io.StringWriter; | |
import javax.xml.parsers.DocumentBuilderFactory; | |
import javax.xml.transform.OutputKeys; | |
import javax.xml.transform.Transformer; | |
import javax.xml.transform.TransformerFactory; | |
import javax.xml.transform.dom.DOMSource; |
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
jQuery(function ($) { | |
// detect support for input attribute | |
var input = document.createElement('input'); | |
if (!('autofocus' in input)) { | |
$('[autofocus=]').focus(); // http://bugs.jquery.com/ticket/5637 | |
} | |
}); |
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
package fileupload; | |
import java.io.IOException; | |
import javax.servlet.Filter; | |
import javax.servlet.FilterChain; | |
import javax.servlet.FilterConfig; | |
import javax.servlet.ServletException; | |
import javax.servlet.ServletRequest; | |
import javax.servlet.ServletResponse; | |
import javax.servlet.annotation.WebFilter; |
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
<script>var ccMsie = -1;</script> | |
<!--[if gte IE 6]><script>ccMsie = 6;</script><![endif]--> | |
<!--[if gte IE 7]><script>ccMsie = 7;</script><![endif]--> | |
<!--[if gte IE 8]><script>ccMsie = 8;</script><![endif]--> | |
<!--[if gte IE 9]><script>ccMsie = 9;</script><![endif]--> | |
<script>/*@cc_on @if (@_jscript_version == 10) ccMsie = 10; @end @*/</script> | |
<script> | |
(function(){ | |
function readVersion(s) { | |
var ua = navigator.userAgent; |
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 java.util.Calendar; | |
import java.util.GregorianCalendar; | |
public class CalendarApp { | |
public static void main(String[] args) { | |
// 2013/09/03 11:46:00.000 UTC | |
Calendar cal = new GregorianCalendar(TimeZone.getTimeZone("UTC"), Locale.ENGLISH); | |
cal.set(2013, 8, 3, 11, 46, 0); | |
cal.set(Calendar.MILLISECOND, 0); | |
long epoch = cal.getTimeInMillis(); |
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
package be.crydust.validator; | |
import static org.apache.commons.lang3.StringEscapeUtils.escapeHtml4; | |
import java.io.CharArrayWriter; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.OutputStream; | |
import java.io.PrintWriter; | |
import java.net.URL; |
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
# Warning this is a destructive operation. | |
git ls-tree --abbrev -r -l HEAD | sort +3 | tail | |
git filter-branch --all --tree-filter 'rm -f blueray.iso' HEAD | |
# Git keeps track of the original refs which keeps the repo large. | |
# We remove those now. | |
# 1) Make sure original refs are gone: | |
rm -rf .git/refs/original |
OlderNewer