Skip to content

Instantly share code, notes, and snippets.

View abd3lraouf's full-sized avatar
🏠
Working from home

Abdelraouf Sabri abd3lraouf

🏠
Working from home
View GitHub Profile
This file has been truncated, but you can view the full file.
{"dependencies_cache": {"https://packagecontrol.io/repository.json": [{"releases": [{"url": "https://bitbucket.org/teddy_beer_maniac/sublime-text-dependency-jinja2/get/2.8.0.zip", "platforms": ["*"], "version": "2.8.0", "sublime_text": "*"}], "load_order": "51", "issues": "https://bitbucket.org/teddy_beer_maniac/sublime-text-dependency-jinja2/issues", "description": "Python Jinja2 module", "authors": ["teddy_beer_maniac"], "name": "python-jinja2"}, {"releases": [{"url": "https://codeload.github.com/idleberg/sublime-xmltodict/zip/0.10.2", "platforms": ["*"], "version": "0.10.2", "sublime_text": "*"}], "load_order": "50", "issues": "https://github.com/idleberg/sublime-xmltodict/issues", "description": "Makes working with XML feel like you are working with JSON - https://github.com/martinblech/xmltodict", "authors": ["idleberg"], "name": "xmltodict"}, {"releases": [{"url": "https://codeload.github.com/randy3k/sublime-xdotool/zip/v3.20160714.1", "platforms": ["linux"], "version": "3.20160714.1", "sublime_text": "
public class Race {
private static boolean raceFinished = false;
private static String winner;
public static void main(String[] args) throws InterruptedException {
Thread[] players = new Thread[10];
// Fill the array
for (int i = 0; i < players.length; i++) {
[package]>java.util.*
Random
>Methods:
nextInt();
nextFloat(); // etc ...
GregorianCalendar
>Methods:
calendar.get(constant);
calendar.setTimeInMillis(long);
calendar.setTime(Date);
public static int parseInt(char[] charArray) {
int sum = 0;
for (char c : charArray) {
sum = (sum * 10) + (c - '0');
}
return sum;
}
import javafx.animation.*;
import javafx.beans.property.*;
import javafx.scene.layout.*;
import javafx.scene.paint.*;
import javafx.scene.shape.*;
import javafx.util.*;
public class BallPane extends Pane {
public final double radius = 20;
private double x = radius, y = radius;
import javafx.animation.*;
import javafx.beans.property.*;
import javafx.scene.layout.*;
import javafx.scene.paint.*;
import javafx.scene.shape.*;
import javafx.util.*;
public class BallPane extends Pane {
public final double radius = 20;
private double x = radius, y = radius;
import javafx.application.*;
import javafx.event.*;
import javafx.scene.*;
import javafx.scene.input.*;
import javafx.stage.*;
public class BounceBallControl extends Application {
/**
* The main method is only needed for the IDE with limited
* JavaFX support. Not needed for running from the command line.
import javafx.application.*;
import javafx.event.*;
import javafx.scene.*;
import javafx.scene.input.*;
import javafx.stage.*;
public class BounceBallControl extends Application {
/**
* The main method is only needed for the IDE with limited
* JavaFX support. Not needed for running from the command line.
import javafx.application.*;
import javafx.event.*;
import javafx.scene.*;
import javafx.scene.input.*;
import javafx.stage.*;
public class BounceBallControl extends Application {
/**
* The main method is only needed for the IDE with limited
* JavaFX support. Not needed for running from the command line.
@abd3lraouf
abd3lraouf / AlwaysRectangle.java
Created December 29, 2015 23:12
Always rectangle
package Junit;
import javafx.application.*;
import javafx.scene.*;
import javafx.scene.layout.*;
import javafx.scene.paint.*;
import javafx.scene.shape.*;
import javafx.stage.*;
public class AlwaysRectangle extends Application {