jar tf my-jar-file.jar
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
// Yalnızca UI onayı için kullanılmalıdır | |
// İş önemi olan durumlarda bu api'yi kullanmalısınız: | |
// https://tckimlik.nvi.gov.tr/Service/KPSPublic.asmx?op=TCKimlikNoDogrula | |
private boolean isTCKNCorrect(String id) { | |
if (id == null) return false; | |
if (id.length() != 11) return false; | |
char[] chars = id.toCharArray(); |
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 static org.junit.Assert.*; | |
import org.junit.Test; | |
import org.junit.runner.RunWith; | |
import org.mockito.InjectMocks; | |
import org.mockito.Mock; | |
import org.mockito.runners.MockitoJUnitRunner; | |
#parse("File Header.java") | |
#set($lastIndex = $CLASS_NAME.lastIndexOf(".") + 1) | |
#set($onlyClassName = $CLASS_NAME.substring($lastIndex)) |
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
/* | |
* Example usage: parseCreditCard('1234567890123456') -> [ '1234', '5678', '9012', '3456' ] | |
*/ | |
function parseCreditCard(cardNumber) { | |
return cardNumber.match(/.{1,4}/g); | |
} |
Groovy'de
// derleme hatası
<T> void execute(Request<T> request) {
// kodlar
}
tarzı bir metot imzası ayıklama hatasına(parsing error) sebep olur.
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
# Changed to use content-type flag instead of header: -H 'Content-Type: application/json' | |
siege -c50 -t60S --content-type "application/json" 'http://domain.com/path/to/json.php POST {"ids": ["1","2","3"]}' |
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
#!/bin/bash | |
# store the current dir | |
CUR_DIR=$(pwd) | |
# Let the person running the script know what's going on. | |
echo "\n\033[1mPulling in latest changes for all repositories...\033[0m\n" | |
# Find all git repositories and update it to the master latest revision | |
for i in $(find . -name ".git" | cut -c 3-); do |
NewerOlder