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
plugins { | |
id 'com.android.application' | |
} | |
import java.util.regex.Matcher | |
import java.util.regex.Pattern | |
/* | |
sonarqube { | |
properties { |
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
<config> | |
<input basedir="input-jars" single-jar="application.jar"> | |
<jar in="app.jar" out="app-obf.jar"/> | |
<jar in="input/*.jar" out="output/*.jar"/> | |
<dir in="in-dir" out="out-dir"/> | |
</input> | |
<classpath basedir="library-jars"> | |
<!-- Adding library.jar to the classpath --> |
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
android { | |
... | |
// for applications | |
applicationVariants.all { variant -> | |
variant.javaCompileProvider.get().doLast { | |
runAllatori(variant) | |
} | |
} | |
// for libraries | |
// libraryVariants.all { variant -> |
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
import java.util.*; | |
class ReadingPractice | |
{ | |
/* What is the return value of |mystery("hi")|? | |
* | |
* (A) hi | |
* (B) hi5 | |
* (C) hi55 | |
* (D) mn |
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
class InheritancePractice | |
{ | |
public static abstract class Vehicle | |
{ | |
public int maxSpeed; // In MPH | |
public int acceleration; // In 0-60MPH secs | |
public Vehicle(int maxSpeed, int acceleration) { | |
this.maxSpeed = maxSpeed; | |
this.acceleration = acceleration; |
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
import java.util.*; | |
class Errors | |
{ | |
/* Adds the given value to everything in the ArrayList. | |
* | |
* This AddToAll method does not work correctly. Explain | |
* why. | |
* | |
* Which of the following replacements for line 19 will fix the method? |
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
import java.util.*; | |
class MoreArrayListTest | |
{ | |
public static void main(String[] args) | |
{ | |
// Run all the tests. | |
testNormalize(); | |
testShuffle(); | |
testRemoveDuplicates(); |
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
function generateModal($modalId, $modalTitle, $fields, $extraHtml = "") { | |
$submitButtonId = $modalId . "Submit"; | |
$submitButtonText = 'Kaydet'; | |
$modal = '<div class="modal fade" id="' . $modalId . '" tabindex="-1" role="dialog" aria-labelledby="' . $modalId . 'Label" aria-hidden="true"> | |
<div class="modal-dialog"> | |
<div class="modal-content"> | |
<div class="modal-header"> | |
<h5 class="modal-title">' . $modalTitle . '</h5> | |
<button type="button" class="close" data-dismiss="modal" aria-label="Kapat"> |
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
function generateBootstrapTable($id, $columns, $dataUrl, $extensions = []) { | |
$tableHtml = "<table id='$id' class='table table-striped'"; | |
// Temel ayarlar | |
$tableHtml .= ' data-id-field="id" data-unique-id="id" data-toolbar="#toolbar"'; | |
// Eklentileri ve özellikleri ekleyin | |
foreach($extensions as $key => $value) { | |
$tableHtml .= ' data-' . $key . '="' . $value . '"'; | |
} |
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
<input type="checkbox" class="read-more-state" id="el-1" /> | |
<div class="read-more-wrap"> | |
${ALLINONEPROJECTS} | |
</div> | |
<label for="homeprojects" class="read-more-trigger"></label> |
OlderNewer