-
add kills
-
add assists x [LostVikings=0.75, Abathur=0.8, other=1]
-
add (timeSpentDead / gameLength) x 100 x [Murky=-1, Gall=-1, Cho=-0.85, other=-0.5]
-
add 1 if player has top hero damage of his team
-
add 1 if player has top hero damage of the match
This file contains hidden or 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.agile.api; | |
| import org.junit.Test; | |
| import java.util.HashMap; | |
| import java.util.Map; | |
| import static com.agile.api.CommonConstants.ATT_PAGE_TWO_MULTITEXT10; | |
| import static com.agile.api.ItemConstants.ATT_TITLE_BLOCK_NUMBER; | |
| import static com.agile.api.ItemConstants.CLASS_PART; | |
| public class TestTransactionManager |
This file contains hidden or 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.Queue; | |
| import java.util.concurrent.ConcurrentLinkedQueue; | |
| import java.util.concurrent.Executors; | |
| import java.util.concurrent.ScheduledExecutorService; | |
| import java.util.concurrent.TimeUnit; | |
| import java.util.concurrent.atomic.AtomicInteger; | |
| /** | |
| * @author ashwinrayaprolu | |
| * | |
| * @param <T> |
This file contains hidden or 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
| ThreadLocal<String> threadLocal = new ThreadLocal<String>(); | |
| threadLocal.set("Test"); // do this in otherThread | |
| Thread otherThread = Thread.currentThread(); // get a reference to the otherThread somehow (this is just for demo) | |
| Field field = Thread.class.getDeclaredField("threadLocals"); | |
| field.setAccessible(true); | |
| Object map = field.get(otherThread); | |
| Method method = Class.forName("java.lang.ThreadLocal$ThreadLocalMap").getDeclaredMethod("getEntry", ThreadLocal.class); |
This file contains hidden or 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 OutInterceptor extends AbstractPhaseInterceptor<Message> { | |
| public OutInterceptor() { | |
| super(Phase.POST_MARSHAL); | |
| } | |
| @Override | |
| public void handleMessage(final Message aMessage) throws Fault { | |
| } | |
| } |
This file contains hidden or 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
| const inquirer = require('inquirer'); | |
| const fs = require('fs'); | |
| const CHOICES = fs.readdirSync(`${__dirname}/templates`); | |
| const QUESTIONS = [ | |
| { | |
| name: 'project-choice', | |
| type: 'list', | |
| message: 'What project template would you like to generate?', |
This file contains hidden or 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
| ssh-keygen -t rsa -b 4096 -f jwtRS256.key | |
| # Don't add passphrase | |
| openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub | |
| cat jwtRS256.key | |
| cat jwtRS256.key.pub |
This file contains hidden or 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
| const sp = require('secure-password'); | |
| const pwd = sp(); | |
| var b1 = Buffer.from('Apples13'); | |
| var b2 = Buffer.from('Apples13'); | |
| var h1 = pwd.hashSync(b1); | |
| var h2 = pwd.hashSync(b2); | |
| var c1 = h1.toString('base64'); |
This file contains hidden or 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
| var express = require('express'); | |
| var path = require('path'); | |
| var favicon = require('serve-favicon'); | |
| var logger = require('morgan'); | |
| var cookieParser = require('cookie-parser'); | |
| var bodyParser = require('body-parser'); | |
| var index = require('./routes/index'); | |
| var user = require('./routes/user'); | |
| var auth = require('./routes/auth'); |
This file contains hidden or 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
| <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" > | |
| <!-- Some applications state they are dpiAware when they are not. Mainly Installation programs --> | |
| <asmv3:application> | |
| <asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings"> | |
| <dpiAware>false</dpiAware> | |
| </asmv3:windowsSettings> | |
| </asmv3:application> | |
| </assembly> |