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
{ | |
"name": "polymer-test", | |
"version": "0.0.0", | |
"description": "A polymer playground", | |
"license": "MIT", | |
"keywords": [ | |
"polymer", | |
"web-components" | |
], | |
"ignore": [ |
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
bower install |
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
<link rel="import" href="../bower_components/polymer/polymer.html"> | |
<polymer-element name="lorem-ipsum" attributes="paragraphs"> | |
<template> | |
// contains the layout of the component in HTML | |
</template> | |
<script> | |
// contains the logic / control of the component in JavaScript |
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
<link rel="import" href="../bower_components/polymer/polymer.html"> | |
<polymer-element name="simple-a"> | |
<template> | |
<p>A</p> | |
</template> | |
<script> | |
Polymer({}); |
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
package com.guigarage.incubator.wobble; | |
import javafx.application.Application; | |
import javafx.geometry.Point2D; | |
import javafx.scene.Group; | |
import javafx.scene.Scene; | |
import javafx.scene.paint.Color; | |
import javafx.scene.shape.*; | |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<script src="bower_components/platform/platform.js"></script> | |
<link rel="import" href="components/SimpleA.html"> | |
</head> | |
<body> | |
<div> |
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
public class EmojiTest extends Application { | |
@Override | |
public void start(Stage primaryStage) throws Exception { | |
TextField textField = new TextField(); | |
primaryStage.setScene(new Scene(new StackPane(textField))); | |
primaryStage.show(); | |
} | |
public static void main(String... args) { |
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
@font-face { | |
font-family: 'OpenSansEmoji'; | |
src: url('OpenSansEmoji.ttf'); | |
} | |
.text-field { | |
-fx-font-family: OpenSansEmoji; | |
-fx-font-size: 32; | |
} |
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
byte[] emojiBytes = new byte[]{(byte)0xF0, (byte)0x9F, (byte)0x98, (byte)0x81}; | |
String emojiAsString = new String(emojiBytes, Charset.forName("UTF-8")); |
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
package com.guigarage.chapter6; | |
import javafx.application.Application; | |
import javafx.beans.property.SimpleObjectProperty; | |
import javafx.beans.property.SimpleStringProperty; | |
import javafx.collections.FXCollections; | |
import javafx.collections.ObservableList; | |
import javafx.scene.Scene; | |
import javafx.scene.control.TableColumn; | |
import javafx.scene.control.TablePosition; |