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
#!/usr/bin/env python | |
import sys | |
from PyQt4.QtCore import * | |
from PyQt4.QtGui import * | |
from PyQt4.QtWebKit import * | |
app = QApplication(sys.argv) | |
web = QWebView() | |
web.load(QUrl("http://google.fr")) |
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
#!/usr/bin/perl | |
use CGI; | |
use File::Tail; | |
print "Content-type: text/html\n\n"; | |
$| = 1; #set auto flush on | |
# hardcode filename |
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 qi4j; | |
import java.util.ArrayList; | |
import java.util.Collection; | |
import java.util.Collections; | |
import java.util.List; | |
import java.util.function.Function; | |
import java.util.stream.Collector; | |
import java.util.stream.Stream; | |
import org.junit.Test; |
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
@Mixins( { HelloWorld.Mixin.class } ) | |
public interface HelloWorld | |
{ | |
String say(); | |
interface State | |
{ | |
@NotEmpty Property<String> phrase(); | |
@NotEmpty Property<String> name(); | |
} |
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
INFO [org.netbeans.gradle.project.ProjectLookupHack]: Using custom lookup for type org.netbeans.spi.java.classpath.ClassPathProvider | |
INFO [org.netbeans.gradle.project.ProjectLookupHack]: Using custom lookup for type org.netbeans.spi.java.classpath.ClassPathProvider | |
INFO [org.netbeans.gradle.project.ProjectLookupHack]: Using custom lookup for type org.netbeans.spi.java.classpath.ClassPathProvider | |
INFO [org.netbeans.gradle.project.ProjectLookupHack]: Using custom lookup for type org.netbeans.spi.java.classpath.ClassPathProvider | |
INFO [org.netbeans.gradle.project.ProjectLookupHack]: Using custom lookup for type org.netbeans.spi.java.classpath.ClassPathProvider | |
INFO [org.netbeans.gradle.project.ProjectLookupHack]: Using custom lookup for type org.netbeans.spi.java.classpath.ClassPathProvider | |
INFO [org.netbeans.gradle.project.ProjectLookupHack]: Using custom lookup for type org.netbeans.spi.java.classpath.ClassPathProvider | |
INFO [org.netbeans.gradle.project.ProjectLookupHack]: Using custom lookup for type org.netbea |
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
// Allow easy download of all dependencies to go offline | |
// ./gradlew gooffline | |
task gooffline { | |
doLast { | |
allprojects.configurations.flatten()*.resolvedConfiguration | |
} | |
} |
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
def "Initialize @Unmanaged property on @Managed type"() { | |
given: | |
buildFile << """ | |
interface SomeThing { | |
void doSomething(String param) | |
} | |
class DefaultSomeThing implements SomeThing { | |
@Override | |
public void doSomething(String param) { | |
println param |
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
Settings settings = Settings.settingsBuilder(). | |
put( "path.work", new File( new File( fileConfig.temporaryDirectory(), identity.toString() ), "work" ).getAbsolutePath() ). | |
put( "path.home", new File( new File( fileConfig.temporaryDirectory(), identity.toString() ), "home" ).getAbsolutePath() ). | |
put( "path.logs", new File( fileConfig.logDirectory(), identity.toString() ).getAbsolutePath() ). | |
put( "path.data", new File( fileConfig.dataDirectory(), identity.toString() ).getAbsolutePath() ). | |
put( "path.conf", new File( fileConfig.configurationDirectory(), identity.toString() ).getAbsolutePath() ). | |
put( "http.enabled", false ). | |
put( "index.cache.type", "weak" ). | |
put( "index.number_of_shards", 1 ). | |
put( "index.number_of_replicas", 0 ). |
OlderNewer