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 org.fesler.vanilla; | |
import java.io.*; | |
public enum Unsigned {; | |
public static int add(int i, int j) { | |
return i + j; | |
} | |
public static int subtract(int i, int j) { |
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
import org.gradle.api.DefaultTask | |
import org.gradle.api.Project | |
import org.gradle.api.plugins.BasePlugin | |
/** | |
* apply this plugin after doing all dependency and repo stuff. It will create two idea 'libraries' per subproject | |
* and add them to your .iml files | |
* | |
* Forked from https://gist.github.com/360092 | |
* |
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 com.apexclearing.esperdemo; | |
import com.espertech.esper.client.*; | |
import java.util.*; | |
public class Demo { | |
private final static String[] demoStatements = new String[]{ | |
" CREATE CONTEXT partcontext PARTITION BY part FROM msg" | |
, |
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
# Set variables | |
$zipUrl = "https://digitalcorpora.s3.amazonaws.com/corpora/files/govdocs1/zipfiles/000.zip" | |
$zipFile = ".\000.zip" | |
$unzipPath = ".\unzipped" | |
# Measure download time | |
$downloadTime = Measure-Command { | |
Invoke-WebRequest -Uri $zipUrl -OutFile $zipFile | |
} |