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 Divide { | |
public static int divide(int dividend, int divisor) throws Exception { | |
int result = 0; | |
int sign = 1; | |
if (divisor == 0) { | |
System.out.println("Divide by 0 error"); | |
throw new Exception("Divide by 0"); | |
} |
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 void main (String[] args) { | |
List<String> fruits = new ArrayList<>(); | |
fruits.add("Apple"); | |
fruits.add("Banana"); | |
fruits.add("Peach"); | |
fruits.add("Orange"); | |
fruits.add("Cherries"); | |
fruits.add("Watermelon"); | |
System.out.println("Before Fruits = " + fruits); | |
for (String fruit : fruits) { |
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
$('body').on('click', '#IdWhereYouWatJcropt', function(e) { | |
bindJCrop($this); | |
}); |
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
@ECHO off | |
:AGAIN | |
echo "Checking internet connection ..." | |
ping "www.google.com" -n 1 -w 1000 >NUL | |
if errorlevel 1 goto AGAIN | |
echo "You are connected" |
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
<ui:repeat value="#{taskMap.value}" var="task"> | |
<f:selectItem itemLabel="#{task.textInLocale}" | |
itemValue="#{task.value}"></f:selectItem> | |
</ui:repeat> |
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
<table id="currentPositionUpdate:roleBasedOnCustomer" class="inputWrap radioTable"> | |
<tr> | |
<td> | |
<input name="currentPositionUpdate:roleBasedOnCustomer" id="currentPositionUpdate:roleBasedOnCustomer:0" value="clerk" type="checkbox" /><label for="currentPositionUpdate:roleBasedOnCustomer:0" class=""> Sachbearbeiter</label></td> | |
</tr> | |
<tr> | |
<td> | |
<input name="currentPositionUpdate:roleBasedOnCustomer" id="currentPositionUpdate:roleBasedOnCustomer:1" value="expert" type="checkbox" /><label for="currentPositionUpdate:roleBasedOnCustomer:1" class=""> Fachkraft</label></td> | |
</tr> | |
<tr> |
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 resource_url($url) { | |
@return ("#{$url}"); | |
} |
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
// I have moved the fonts in a dedicated folder at the same level as css and img | |
@font-face { | |
font-family: 'LigatureSymbols'; | |
src: url(resource_url('fonts/LigatureSymbols-2.11.eot')); | |
src: url(resource_url('fonts/LigatureSymbols-2.11.eot?#iefix')) format('embedded-opentype'), | |
url(resource_url('fonts/LigatureSymbols-2.11.woff')) format('woff'), | |
url(resource_url('fonts/LigatureSymbols-2.11.ttf')) format('truetype'), | |
url(resource_url('fonts/LigatureSymbols-2.11.svg#LigatureSymbols')) format('svg'); | |
src: url(resource_url('fonts/LigatureSymbols-2.11.ttf')) format('truetype'); | |
font-weight: normal; |
NewerOlder