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
function FindProxyForURL(url, host) { | |
proxy = "SOCKS5 192.168.200.48:4128; SOCKS4 192.168.200.48:4128" | |
if (dnsDomainIs(host, ".ardanlabs.com.") | |
|| dnsDomainIs(host, ".ardanlabs.com") | |
|| dnsDomainIs(host, "ardanlabs.com") | |
|| dnsDomainIs(host, ".ardmediathek.de.") | |
|| dnsDomainIs(host, ".ardmediathek.de") | |
|| dnsDomainIs(host, "ardmediathek.de") | |
) { | |
return proxy; |
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
#!/bin/bash | |
JENKINS_SERVER=http://build.rtbrick.com:8080 | |
JOB=$1 | |
JOB_QUERY=/job/${JOB} | |
CURRENT_BUILD_NUMBER_QUERY=/lastBuild/buildNumber | |
CURRENT_BUILD_JSON=`curl --silent ${JENKINS_SERVER}${JOB_QUERY}${CURRENT_BUILD_NUMBER_QUERY}` | |
echo $CURRENT_BUILD_JSON | |
BUILD_STATUS_QUERY=/$CURRENT_BUILD_JSON/api/json | |
JOB_STATUS_JSON=`curl --silent ${JENKINS_SERVER}${JOB_QUERY}${BUILD_STATUS_QUERY}` |
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 Zero { | |
public static void main(String[] args) { | |
int s = 10; | |
System.out.println(s++ - --s); | |
System.out.println(++s - s--); | |
System.out.println(s-- - ++s); | |
System.out.println(--s - s++); | |
System.out.println(s++ + --s + s++ + --s); | |
} |
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 Highlander { | |
private Highlander() { | |
// Singleton | |
} | |
private static class SingletonHolder { | |
public static final Highlander SINGLETONHOLDER = new Highlander(); | |
} | |
public static Highlander getInstance() { |
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
<p:fileUpload fileUploadListener="#{fileUpload.handleFileUpload}" | |
mode="advanced" dragDropSupport="true" multiple="true" | |
update="messages" sizeLimit="100000" fileLimit="3" | |
allowTypes="/(\.|\/)(gif|jpe?g|png)$/" /> | |
<p:growl id="messages" showDetail="true" /> |
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 at.freelenzer.jsftest.bootstrap; | |
import java.io.IOException; | |
import java.util.ArrayList; | |
import java.util.HashMap; | |
import java.util.Iterator; | |
import java.util.List; | |
import java.util.Map; | |
import javax.faces.application.FacesMessage; |
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
<AnchorPane AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0" xmlns:fx="http://javafx.com/fxml" fx:controller="at.freelenzer.dagobert.fx.accounts.AccountsPresenter"> | |
leftSide.getChildren().add(accountsView.getView()); |
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
import java.util.HashMap; | |
import java.util.Map; | |
@SuppressWarnings("boxing") | |
public enum IndexStrategy { | |
DEFAULT(0), FASTINDEX(1), FINEGRAINED(2); | |
private final int value; | |
private IndexStrategy(int value) { | |
this.value = value; | |
} |
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 Test { | |
public void test() { | |
Map<String, String> test = newHashMap(); | |
} | |
public static <K,V> Map<K,V> newHashMap() { | |
return new HashMap<K, V>(); | |
} | |
} |
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
private static String[] array = new String[]{"Test", "Test"}; | |
private static List<String> arraylist = new ArrayList<String>() { | |
{ | |
add("Test"); | |
add("Test"); | |
} | |
}; | |
private static Map<String,String> map = new HashMap<String,String>() { | |
{ |
NewerOlder