Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Alan.He alanhg

🎯
Focusing
View GitHub Profile
@a1o1
a1o1 / SwingFXWebView.java
Created Feb 21, 2012 — forked from anjackson/SwingFXWebView.java
Embedding a JavaFX WebView in a Swing panel.
View SwingFXWebView.java
import com.sun.javafx.application.PlatformImpl;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javafx.application.Platform;
import javafx.collections.ObservableList;
import javafx.embed.swing.JFXPanel;
import javafx.scene.Group;
import javafx.scene.Node;
@jaysonrowe
jaysonrowe / FizzBuzz.js
Created Jan 11, 2012
FizzBuzz JavaScript solution
View FizzBuzz.js
for (var i=1; i <= 20; i++)
{
if (i % 15 == 0)
console.log("FizzBuzz");
else if (i % 3 == 0)
console.log("Fizz");
else if (i % 5 == 0)
console.log("Buzz");
else
console.log(i);
@JavierParra
JavierParra / radialBattery.sh
Created Sep 8, 2011
Displays the battery status of your devices, designed to be used with GeekTool
View radialBattery.sh
##################################################################
# YOU NEED IMAGE MAGICK TO RUN THIS #
# DON'T FORGET TO CONFIGURE THE FIRST FEW LINES OF THIS FILE #
##################################################################
# Usage
# 1st - Run this script as a shell geeklet.
#
# You need to pass one of the following parameters:
# ·trackpad