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
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="muCommander" default="default" basedir="."> | |
<taskdef name="bundleapp" | |
classname="com.oracle.appbundler.AppBundlerTask" | |
classpath="appbundler-1.0.jar" /> | |
<target name="bundle"> | |
<bundleapp outputdirectory="." | |
name="muCommander" |
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 javax.servlet.http.HttpServlet | |
import javax.servlet.http.HttpServletRequest | |
import javax.servlet.http.HttpServletResponse | |
import javax.servlet.annotation.WebServlet as web | |
import javax.inject.Inject | |
import javax.enterprise.context.Dependent | |
web(name = "Hello", value = array("/hello")) | |
public class HomeController : HttpServlet() { |
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
buildscript { | |
ext.kotlin_version = '0.9.976' | |
repositories { | |
mavenCentral() | |
maven { | |
url "https://oss.sonatype.org/content/repositories/snapshots" | |
} | |
} | |
dependencies { | |
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" |
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 com.mongodb.*; | |
import javax.servlet.ServletException; | |
import javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletResponse; | |
import javax.xml.ws.Endpoint; | |
import java.io.IOException; | |
import java.io.PrintWriter; | |
import java.util.StringJoiner; |
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
Morphia morphia = new Morphia(); | |
Datastore ds = morphia.map(Repository.class). | |
createDatastore(new MongoClient("localhost", 27017), "mydb"); | |
Organization org = new Organization("MegaOrg"); | |
Repository repository = new Repository(org, "MegaRepository"); | |
repository.owner = new GithubUser("Antonius"); | |
repository.owner.fullName = "Anton"; | |
repository.owner.repositories = Arrays.asList(repository); | |
ds.save(repository); |
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
/* | |
* Copyright 2002-2013 the original author or authors. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
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.BitSet; | |
import java.util.concurrent.CountDownLatch; | |
public class WordTearingExample { | |
public static void main(String[] args) throws Exception { | |
BitSet bs = new BitSet(); | |
CountDownLatch latch = new CountDownLatch(1); | |
System.out.println("getting ready"); |
NewerOlder