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
class Antlr4Plugin implements Plugin<Project> { | |
void apply(Project project) { | |
project.with { | |
apply plugin : 'java' | |
configurations.maybeCreate 'antlr' | |
Antlr4GenerationTask genTask = tasks.create 'generateGrammarSource', Antlr4GenerationTask | |
genTask.group = 'Build' | |
genTask.description = 'Generate source code from ANTLR grammar' |
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.gradle.training | |
import org.gradle.api.tasks.Input | |
import org.gradle.api.tasks.OutputDirectory | |
import org.gradle.api.tasks.TaskAction | |
import org.gradle.api.DefaultTask | |
import org.gradle.util.GFileUtils | |
import org.gradle.api.artifacts.Configuration | |
import org.gradle.api.artifacts.component.ModuleComponentIdentifier | |
import org.gradle.maven.MavenModule |
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 java.util.Random; | |
import java.util.concurrent.ConcurrentHashMap; | |
import java.util.concurrent.atomic.LongAdder; | |
import java.util.stream.IntStream; | |
public class LongAdderTest { | |
ConcurrentHashMap<Integer,LongAdder> frequencyMap = new ConcurrentHashMap<>() ; | |
Random rnd = new Random() ; | |
void run() { |
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
cd repository | |
git checkout --orphan orphan_name | |
git rm -rf . | |
rm '.gitignore' | |
echo "#Title of Readme" > README.md | |
git add README.md | |
git commit -a -m "Initial Commit" | |
git push origin orphan_name |