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
{ | |
} |
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
[/Script/Mordhau.MordhauGameMode] | |
MOTDURL= | |
bIsThirdPersonCameraDisabled=False | |
ConstrainAspectRatio=0.000000 | |
bIsHitStopOnTeamHitsDisabled=False | |
bDisableClientMods=False | |
PlayerRespawnTime=5.000000 | |
AutoKickOnTeamKillAmount=5 | |
BallistaRespawnTime=30.000000 | |
CatapultRespawnTime=30.000000 |
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
public class CoordDistance { | |
public static void main(String[] args) { | |
System.out.println("Results:"); | |
System.out.println(distance(32.9697, -96.80322, 32.9697, -94.80323, Unit.METERS) + " Meters\n"); | |
} | |
/** | |
* Calculates distance between coordinates |
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
public class ConcurrentUUIDGenerator { | |
public static UUID randomUUID() { | |
final Random rnd = ThreadLocalRandom.current(); | |
long mostSig = rnd.nextLong(); | |
long leastSig = rnd.nextLong(); | |
// Identify this as a version 4 UUID, that is one based on a random value. | |
mostSig &= 0xffffffffffff0fffL; | |
mostSig |= 0x0000000000004000L; |
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
<?xml version="1.0" encoding="UTF-8" standalone="no"?><templates><template autoinsert="false" context="classbody_context" deleted="false" description="Code in new class type bodies" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.classbody" name="classbody"> | |
public ${type_name}() { | |
} | |
</template></templates> |
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
<?xml version="1.0" encoding="UTF-8" standalone="no"?><templates><template autoinsert="false" context="typecomment_context" deleted="false" description="Comment for created types" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.typecomment" name="typecomment"> | |
/** | |
* Class responsible for somehting very important ! | |
* | |
* @author {user} | |
* | |
* @since 1.0 | |
* ${tags} | |
*/ | |
</template></templates> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
Licensed to the Apache Software Foundation (ASF) under one or more | |
contributor license agreements. See the NOTICE file distributed with | |
this work for additional information regarding copyright ownership. | |
The ASF licenses this file to You 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 |
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 jjs | |
// Import JOptionPane from javax.swing | |
var JOptionPane = Java.type("javax.swing.JOptionPane"); | |
/** | |
* Nashorn impl. | |
*/ | |
(function() { |
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 br.com.ggdio.util.concurrent.test; | |
import java.util.concurrent.ExecutorService; | |
import java.util.concurrent.Executors; | |
import java.util.concurrent.atomic.AtomicInteger; | |
public class SemaphoreTest { | |
private static Semaphore semaphore = new Semaphore(); | |
private static AtomicInteger count = new AtomicInteger(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
package br.com.ggdio.util.concurrent; | |
import java.util.concurrent.CountDownLatch; | |
import java.util.concurrent.locks.ReentrantLock; | |
/** | |
* Semaphore controller | |
* | |
* Red Signal - Blocks all threads controlled by this Semaphore | |
* Green Signal - All threads controlled by this Semaphore are allowed to proceed |
NewerOlder