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 kotlinx.cinterop.* | |
import platform.posix.* | |
fun main(args: Array<String>) { | |
if(args.size >= 1) { | |
if(args[0].equals("-file", true) || args[0].equals("-f", true)) { | |
val fileName = args[1] | |
val file = fopen(fileName, "r") | |
if (file == null) { |
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 org.apache.commons.lang3.reflect.FieldUtils | |
import javax.swing.JFrame | |
import javax.swing.JLabel | |
import javax.swing.JTable | |
import javax.swing.table.TableCellRenderer | |
import java.awt.Component | |
class NoHtmlRenderer() : JLabel(), TableCellRenderer { | |
init { | |
putClientProperty("html.disable", true) |
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 Warte bis der MySQL Server hochgefahren ist... | |
:: Es wird solange versuche eine Verbindung zum MySQL Server aufzubauen, bis es funktioniert. | |
:: Der Parameter "-e" bedeutet "execute" und führt das nachfolgende Statement aus | |
:: Als nachfolgendes Statement nutzen wir hier ein leeres Statement, da wir keinerlei Query ausführen wollen. | |
:: Ist die Testabfrage nicht erfolgreich, so wird die variable %ERRORLEVEL% auf 1 gesetzt und dass nachfolgende "echo" und das "goto" werden getriggert | |
:offline | |
PATHTOMYSQL\mysql.exe --host=HOST --port=PORT -u User -pPassword -e ";" || (echo Konnte keine Verbindung aufbauen, versuche erneut & goto :offline) |
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.io.File; | |
import java.io.IOException; | |
import java.nio.file.Files; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.Collection; | |
import java.util.List; | |
import java.util.Objects; | |
/** |
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.msc.serverbrowser | |
import org.jnativehook.GlobalScreen | |
import org.jnativehook.keyboard.NativeKeyAdapter | |
import org.jnativehook.keyboard.NativeKeyEvent | |
import java.awt.Robot | |
import java.awt.event.KeyEvent | |
import java.util.logging.Level | |
import java.util.logging.Logger |
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 cdb() { | |
#suppress all output and run the original cd with all given arguments | |
command cd $@ &>/dev/null | |
#If the original ran successfully, do an early exit | |
if [ $? -eq 0 ]; then | |
return | |
fi | |
START_DIR="$PWD" |
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.awt.Color; | |
import java.awt.Dimension; | |
import javax.swing.JPanel; | |
import javax.swing.JWindow; | |
public class SturdyWindow | |
{ | |
public static void main( final 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
fun main(arguments: Array<String>) { | |
Application.launch(App::class.java) | |
} | |
class App : Application() { | |
override fun start(primaryStage: Stage) { | |
primaryStage.title = "Popup Example" | |
primaryStage.initStyle(StageStyle.UTILITY) | |
primaryStage.opacity = 0.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
package main | |
import ( | |
"flag" | |
"fmt" | |
"io/ioutil" | |
"os" | |
"path/filepath" | |
"strings" | |
) |
OlderNewer