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
New-Alias l ls | |
New-Alias grep findstr | |
New-Alias wget Invoke-WebRequest | |
# New-Alias python python.bat | |
# $Folders = "".Split("\") | |
# $LastElement = $Folders.Count - 1 | |
# $CmdPromptCurrentFolder = "" | |
# for ($i = 0; $i -lt $LastElement; $i++) { | |
# $Folder = $Folders[$i] |
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 net.omny.utils; | |
import java.util.Arrays; | |
import java.util.Collection; | |
import java.util.ConcurrentModificationException; | |
import java.util.Iterator; | |
import java.util.List; | |
import java.util.ListIterator; | |
import java.util.NoSuchElementException; | |
import java.util.Objects; |
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 static String getSoundexCode(String s){ | |
char[] x = s.toUpperCase().toCharArray(); | |
char firstLetter = x[0]; | |
for (int i = 0; i < x.length; i++) { | |
switch (x[i]) { | |
case 'B': | |
case 'F': | |
case 'P': | |
case 'V': { | |
x[i] = '1'; |