This file contains hidden or 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/env bash | |
set -eux | |
# Can accept arg for target dir, otherwise this script dir | |
target_dir="$( cd "${1:-$(dirname "${BASH_SOURCE[0]}")}" >/dev/null 2>&1 && pwd )" | |
pushd "$target_dir" | |
for repo in "main_repo" "repoA" "repoB" | |
do |
This file contains hidden or 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 Person { | |
//The syntax obj#field, uses the new operator # which represents a direct access to the field (without getter/setter) | |
//Default public getter/setter | |
private String firstName : (); | |
//Explicitly defined getter/setter using lambda, exact equivalent as the default syntax ().By Default visibility is public | |
private String lastName : (()-> this#lastName, (lastName)-> this#lastName = lastName); |
This file contains hidden or 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
java.lang.Thread.State: RUNNABLE | |
at java.net.SocketInputStream.socketRead0(Native Method) | |
at java.net.SocketInputStream.read(SocketInputStream.java:150) | |
at java.net.SocketInputStream.read(SocketInputStream.java:121) | |
at org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:166) | |
at org.apache.http.impl.io.SocketInputBuffer.fillBuffer(SocketInputBuffer.java:90) | |
at org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInputBuffer.java:281) | |
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:92) | |
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:62) | |
at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:254) |
This file contains hidden or 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
$ curl -v -XHEAD http://owasp-java-html-sanitizer.googlecode.com/svn/maven/org/terracotta/bigmemory/bigmemory/4.0.0/bigmemory-4.0.0.pom | |
* About to connect() to owasp-java-html-sanitizer.googlecode.com port 80 (#0) | |
* Trying 173.194.72.82... connected | |
* Connected to owasp-java-html-sanitizer.googlecode.com (173.194.72.82) port 80 (#0) | |
> HEAD /svn/maven/org/terracotta/bigmemory/bigmemory/4.0.0/bigmemory-4.0.0.pom HTTP/1.1 | |
> User-Agent: curl/7.21.4 (universal-apple-darwin11.0) libcurl/7.21.4 OpenSSL/0.9.8r zlib/1.2.5 | |
> Host: owasp-java-html-sanitizer.googlecode.com | |
> Accept: */* | |
> | |
< HTTP/1.1 404 Not Found |
This file contains hidden or 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 PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | |
"http://www.w3.org/TR/html4/loose.dtd"> | |
<html> | |
<head> | |
<title>test</title> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script> | |
<script type="text/javascript"> | |
function inject(){ | |
jQuery.get('../myPartialContent.html', function(data) { | |
jQuery('#injectedContent').html(data); |
This file contains hidden or 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 jug; | |
import java.net.MalformedURLException; | |
import java.net.URL; | |
public class Initializer { | |
static class A{ | |
protected String myString; | |
A(String rawString){ | |
myString = veryComplexTransformation(myString); |