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 javafx.collections.FXCollections | |
import tornadofx.* | |
class TestView : View("My View") { | |
private val persons = FXCollections.observableArrayList<PersonModel>() | |
private val sortedFilteredPersons = SortedFilteredList(persons) | |
init { | |
persons.add(PersonModel(Person("Jane", "Doe"))) | |
persons.add(PersonModel(Person("Max", "Doe"))) |
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
#!/usr/bin/env ruby | |
# USAGE: ./clone ORG_NAME | |
# ( ./clone instedd ) | |
require 'open-uri' | |
require 'json' | |
team = ARGV[0] || raise("Must specify organization name") | |
passwd = ARGV[1] || raise("Must specify organization api password") |
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
#!/usr/bin/env bash | |
for app in $(find /opt/homebrew-cask/Caskroom -depth 1 -type d); do # for every installed cask | |
if [[ $(find "$app" -depth 1 -type d | wc -l) -gt 1 ]]; then # check if there are more than 1 version installed | |
echo "$app" | |
rm -rf "$app/$(ls -1t $app | tail -1)" # and remove the older one (based on folder creation timestamp) | |
fi | |
done | |
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
#!/usr/bin/env bash | |
for app in $(brew cask list); do # For every app in the Caskroom, do this | |
appToCheck=$(brew cask list "${app}" 2>&1 >/dev/null | grep "${app} is not installed") # If the app is not marked as not installed `brew cask list "app"`, this variable will be "Warning: "app" is not installed", | |
if [[ ! -z "${appToCheck}" ]]; then # If the variable is empty, then | |
brew cask install --force "${app}" # Force an install of the app | |
fi | |
done |
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
\documentclass[paper=a4, fontsize=11pt]{scrartcl} | |
\usepackage[svgnames]{xcolor} | |
\usepackage[a4paper,pdftex]{geometry} | |
\usepackage[german]{babel} | |
\usepackage[utf8x]{inputenc} | |
\usepackage[T1]{fontenc} | |
\usepackage{lmodern} | |
\usepackage{fullpage} |