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
<scheme name="Solarized Light for IntelliJ Darcula" version="142" parent_scheme="Default"> | |
<option name="FONT_SCALE" value="1.0" /> | |
<metaInfo> | |
<property name="created">2018-10-26T11:42:59</property> | |
<property name="ide">idea</property> | |
<property name="ideVersion">2018.3.0.0</property> | |
<property name="modified">2018-10-26T11:43:09</property> | |
<property name="originalScheme">Solarized Light for IntelliJ Darcula</property> | |
</metaInfo> | |
<option name="LINE_SPACING" value="1.2" /> |
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
val application = Energy4Java().newApplication( | |
ApplicationAssembler { factory -> | |
factory.newApplicationAssembly("Application 1") { | |
mode = Application.Mode.development | |
version = "1" | |
setMetaInfo(Object()) | |
val layer1 = layer("Layer 1") { | |
module("Module 1/A") { | |
values(Some::class) { | |
withTypes(Some::class) |
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
value | host_statistics_pages | host_statistics_mb | vm_stat_mb | vm_stat_pages | |
---|---|---|---|---|---|
free | 10637 | 41 | 39 | 10178 | |
inactive | 1415946 | 5531 | 5533 | 1416664 | |
wired | 686800 | 2682 | 2682 | 686822 | |
active | 1424004 | 5562 | 5561 | 1423734 | |
external | 734911016 | 2870746 | 2302 | 589350 | |
speculative | 1 | 0 | 23 | 6022 | |
total | 4194304 | 16384 | 16384 | 4194304 | |
available_fcache | 734921652 | 2870787 | 2318 | 593506 | |
available_inact | 1426582 | 5572 | 5550 | 1420820 |
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
#!/bin/bash | |
set -e | |
vmstat=$(vm_stat) | |
page_size=$(echo "$vmstat"|grep 'page size'|cut -d ' ' -f 8) | |
free_pages=$(echo "$vmstat"|awk '/^Pages free/ {print substr($3, 1, length($3)-1)}') | |
inactive_pages=$(echo "$vmstat"|awk '/^Pages inactive/ {print substr($3, 1, length($3)-1)}') | |
speculative_pages=$(echo "$vmstat"|awk '/^Pages speculative/ {print substr($3, 1, length($3)-1)}') | |
file_pages=$(echo "$vmstat"|awk '/^File-backed pages/ {print substr($3, 1, length($3)-1)}') |
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 ). |
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
// 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
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
@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
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; |
NewerOlder