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
<h:form> | |
<p:commandButton value="open dialog" id="btncallWidget" process="@this" oncomplete="PF('editDlg').show()"/> | |
</h:form> | |
<p:dialog id="editDialog" header="Dialog" widgetVar="editDlg" modal="true" appendToBody="true"> | |
<p:tooltip /> | |
<h:form> | |
<p:growl id="growl" showDetail="true" sticky="false" /> | |
<h:panelGrid id="grid" cellpadding="5" columns="3" style="margin-bottom:10px"> | |
<f:facet name="header"> |
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 streams; | |
import java.util.Arrays; | |
import java.util.List; | |
public class Java8Filter { | |
private static List<kabnr> kabnrs = Arrays.asList( | |
new kabnr(1234,0,2017, "1234"), | |
new kabnr(1234,0,2017, "1590"), |
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
SELECT kakan1,kakan2, kavjah, kavmon, kaerft, add_months(kaerft,6) addMonth, | |
YEAR(kaerft) created_Y, Month(kaerft) created_M , | |
YEAR(add_months(kaerft,6)) newYear, Month(add_months(kaerft,6)) newMonth | |
FROM verkauf.kalkN | |
order by kaerft DESC; |
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 date; | |
import java.time.LocalDate; | |
import java.time.LocalDateTime; | |
import java.time.ZoneId; | |
import java.time.ZonedDateTime; | |
import java.util.Date; | |
public class JavaTimeToDate { public static void main(String[] args) | |
{ |
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 date; | |
import java.time.LocalDate; | |
import java.time.LocalDateTime; | |
import java.time.ZoneId; | |
import java.time.ZonedDateTime; | |
import java.util.Date; | |
public class JavaTimeToDate { | |
public static void main(String[] args) { |
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
var a = document.getElementById('form:tabView:kan1'), | |
b = document.getElementById('form:tabView:kan2'), | |
c = document.getElementById('form:tabView:jahr'); | |
a.onkeyup = function() { | |
if (this.value.length === parseInt(this.attributes["maxlength"].value)) { | |
b.focus(); | |
} | |
} | |
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 com.mathai.pdf; | |
import java.io.ByteArrayOutputStream; | |
import java.io.File; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import org.apache.pdfbox.io.IOUtils; | |
import org.apache.pdfbox.pdmodel.PDDocument; |
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 int roundUp(int dividend, int divisor) { | |
return (dividend + divisor - 1) / divisor; | |
} |
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
-- find all Line Feed Characters \u000A, chr(10), chr(13) | |
select * from verkauf.faserbc | |
where fbaun1=5620 | |
and | |
( instr(FBTEXT, chr(10)) > 0 | |
or | |
instr(FBTEXT, chr(13)) > 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
//garbage collector | |
git gc | |
// alle remotes die keinen verbindung mehr zum server haben | |
git remote prune origin -n | |
// alle branches die nicht gemergt sind und nicht master|develop|\* heißen löschen | |
git branch | egrep -v "(master|develop|\*)"| xargs git branch -d | |