Skip to content

Instantly share code, notes, and snippets.

@kvahuja
kvahuja / Items.php
Created March 4, 2017 04:55
Vainglory Items
<?php
return [
'*1000_Item_HalcyonPotion*' => 'halcyon-potion',
'Mulled Wine' => 'halcyon-potion',
'*1002_Item_WeaponBlade*' => 'weapon-blade',
'Weapon Blade' => 'weapon-blade',
'*1003_Item_CrystalBit*' => 'crystal-bit',
'Crystal1' => 'crystal-bit',
@kvahuja
kvahuja / setup-user.MD
Last active November 27, 2017 08:06
Ubuntu Management - Server Setups

User Setup

Add a User

Run the following command to add a new user on a system.

sudo adduser <username>
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.slf4j.Logger;
@kvahuja
kvahuja / SpinWords
Created May 13, 2021 20:57
Code Wars Kata - Spinwords
public final class SpinWords {
public String spinWords(String sentence) {
String[] words = sentence.split(" ");
for (int i = 0; i < words.length; i++) {
// for each word
String word = words[i];
if (word.length() >= 5) {