Skip to content

Instantly share code, notes, and snippets.

View xiaodongw's full-sized avatar

Xiaodong Wang xiaodongw

  • Box
  • Redwood City
View GitHub Profile
@geksilla
geksilla / bootsrap_class_list
Last active September 2, 2025 15:26
Bootstrap css class list
.navbar
.caret
.label
.table
.img-responsive
.img-rounded
.img-thumbnail
.img-circle
.sr-only
.lead
@jewelsea
jewelsea / HTMLEditorCustomizationSample.java
Created April 28, 2012 00:43
Customize the JavaFX HTMLEditor
import java.util.List;
import java.util.regex.Pattern;
import javafx.application.*;
import javafx.collections.FXCollections;
import javafx.event.*;
import javafx.scene.*;
import javafx.scene.control.*;
import javafx.scene.effect.*;
import javafx.scene.image.*;
import javafx.scene.web.HTMLEditor;
@masak
masak / explanation.md
Last active January 2, 2026 04:27
How is git commit sha1 formed

(The below text is licensed with CC0, which means that if you want to use or translate it, that is OK by me.)

Ok, I geeked out, and this is probably more information than you need. But it completely answers the question. Sorry. ☺

Locally, I'm at this commit:

$ git show
commit d6cd1e2bd19e03a81132a23b2025920577f84e37
Author: jnthn <jnthn@jnthn.net>

Date: Sun Apr 15 16:35:03 2012 +0200

@jewelsea
jewelsea / SliderWithTextField.java
Last active December 29, 2021 18:57
JavaFX example of binding a slider value to a Label or editable TextField.
import javafx.application.Application;
import javafx.beans.property.*;
import javafx.beans.value.*;
import javafx.event.EventHandler;
import javafx.scene.Scene;
import javafx.scene.control.*;
import javafx.scene.input.*;
import javafx.scene.layout.HBox;
import javafx.stage.Stage;
@pcdinh
pcdinh / gist:1575726
Created January 7, 2012 19:26
Trying to use an embedded list as a tags container in OrientDB
// Schema
schema = db.getMetadata().getSchema();
person = schema.createClass("Person");
person.createProperty("name", OType.STRING);
person.createProperty("age", OType.INTEGER);
person.createProperty("tags", OType.EMBEDDEDLIST, OType.STRING);
// Luke
ODocument luke = new ODocument(db, "Person");
@jewelsea
jewelsea / DatePicker.java
Created December 2, 2011 11:06
Sample DatePicker for JavaFX using jQuery UI
import javafx.beans.property.ReadOnlyObjectProperty;
import javafx.beans.property.ReadOnlyObjectWrapper;
import javafx.beans.property.ReadOnlyStringProperty;
import javafx.beans.property.ReadOnlyStringWrapper;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.event.EventHandler;
import javafx.scene.layout.StackPane;
import javafx.scene.web.WebEvent;
import javafx.scene.web.WebView;