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.company; | |
public class SquareSubMatrix { | |
public static void main(String[] args) { | |
byte[][] matrix = new byte[][] {{0,1,1,0,1}, | |
{1,1,0,1,0}, | |
{0,1,1,1,0}, | |
{0,1,1,1,0}, | |
{1,1,1,1,1}, |
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
sudo vim /usr/share/applications/intellij.desktop | |
[Desktop Entry] | |
Version=2017.2 | |
Type=Application | |
Terminal=false | |
Icon[en_US]=/home/ata/Downloads/idea-IU-172.4343.14/bin/idea.png | |
Name[en_US]=IntelliJ | |
Exec=/usr/local/bin/idea | |
Name=IntelliJ |
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 static <T extends Enum<T>> List<T> getEnumList(List<Object> values, Class<T> cls) | |
{ | |
List<T> results = new ArrayList<T>(); | |
for(Object o : values ) | |
{ | |
results.add(Enum.valueOf(cls, o.toString())); | |
} | |
return results; | |
} |
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
for i in $(git diff --diff-filter=ACMRTUXB --name-status master | grep "\.php" | cut -c3-);do php -l $i;done |
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
echo $(lsof -p $(ps -ef | grep -m1 tomcat-juli | awk '{ print $2 }')| grep "TCP localhost" | wc -l) |