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
(* solving the rope internet problem *) | |
exception Error | |
val min = Int.min | |
val inFile= TextIO.stdIn | |
val outFile= TextIO.stdOut | |
fun new_node (n1,n2) l = | |
(* how many nodes did this tuple introduce to the problem *) |
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
btn.textProperty().bind( | |
Bindings.when(new_btn.hoverProperty()) | |
.then(new SimpleStringProperty("Hello!")) | |
.otherwise(new SimpleStringProperty("New")); |
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.IOException; | |
import java.net.URL; | |
import javafx.fxml.FXMLLoader; | |
import javafx.util.Callback; | |
/** | |
* InjectingFXMLLoader.java (UTF-8) | |
* | |
* Apr 13, 2013 | |
* @author tarrsalah.org |
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
/* | |
* 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; |
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
for i in {0..255} ; do | |
printf "\x1b[38;5;${i}mcolour${i}\n" | |
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
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 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 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 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 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; |
OlderNewer