This file contains hidden or 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 org.tarrsalah.fileReader; | |
| import javafx.application.Application; | |
| import javafx.fxml.FXMLLoader; | |
| import javafx.scene.Parent; | |
| import javafx.scene.Scene; | |
| import javafx.stage.Stage; | |
| /** | |
| * App.java (UTF-8) |
This file contains hidden or 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 class Dead { | |
| private int state; | |
| public Dead(int state) { | |
| this.state = state; | |
| } | |
| public synchronized int getMyState() { |
This file contains hidden or 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 class SOExample { | |
| private int state = 0; | |
| public int getAndIncrement() { | |
| return state++; | |
| } | |
| public int getAndIncrementAnother(SOExample dle) { | |
| return dle.getAndIncrement() + dle.getAndIncrementAnother(this); |
This file contains hidden or 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.animation.KeyFrame; | |
| import javafx.animation.RotateTransitionBuilder; | |
| import javafx.animation.Timeline; | |
| import javafx.animation.TimelineBuilder; | |
| import javafx.application.Application; | |
| import javafx.event.ActionEvent; | |
| import javafx.event.EventHandler; | |
| import javafx.scene.Scene; | |
| import javafx.scene.SceneBuilder; | |
| import javafx.scene.control.Button; |
This file contains hidden or 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
| /** | |
| * Created with IntelliJ IDEA. | |
| * User: tarrsalah | |
| * Date: 5/19/13 | |
| * Time: 2:25 PM | |
| * To change this template use File | Settings | File Templates. | |
| */ | |
| import java.awt.*; |
This file contains hidden or 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
| #!/bin/bash | |
| # | |
| # pickjdk: provides a shell function that allows you to choose a JDK. | |
| # | |
| # The function sets JAVA_HOME and PATH On Linux or | |
| # Windows, just set the environment variable JDKS_ROOT to the directory | |
| # containing multiple versions of the JDK and the function will prompt you to | |
| # select one. On OSX, JDKs will be discovered for you. | |
| # JDKS_ROOT=/opt/jdk |
This file contains hidden or 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 path(){ | |
| old=$IFS | |
| IFS=: | |
| printf "%s\n" $PATH | |
| IFS=$old | |
| } |
This file contains hidden or 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.sql.*; | |
| import java.util.logging.*; | |
| import javafx.application.Application; | |
| import javafx.collections.*; | |
| import javafx.event.ActionEvent; | |
| import javafx.event.EventHandler; | |
| import javafx.scene.Scene; | |
| import javafx.scene.control.*; | |
| import javafx.scene.layout.*; | |
| import javafx.stage.Stage; |
This file contains hidden or 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
| for i in {0..255} ; do | |
| printf "\x1b[38;5;${i}mcolour${i}\n" | |
| done |
This file contains hidden or 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
| /* | |
| * To change this template, choose Tools | Templates | |
| * and open the template in the editor. | |
| */ | |
| import javafx.application.Application; | |
| import javafx.collections.FXCollections; | |
| import javafx.event.EventHandler; | |
| import javafx.scene.Scene; | |
| import javafx.scene.control.ListView; |