Install Package Control for easy package management.
- Open the console with
Ctrl+` - Paste in the following:
| <?php | |
| /* | |
| * PHP: Recursively Backup Files & Folders to ZIP-File | |
| * (c) 2012-2014: Marvin Menzerath - http://menzerath.eu | |
| * contribution: Drew Toddsby | |
| */ | |
| // Make sure the script can handle large folders/files | |
| ini_set('max_execution_time', 600); | |
| ini_set('memory_limit','1024M'); |
| import javafx.application.*; | |
| import javafx.geometry.Pos; | |
| import javafx.scene.*; | |
| import javafx.scene.control.Label; | |
| import javafx.scene.layout.*; | |
| import javafx.scene.paint.Color; | |
| import javafx.stage.*; | |
| import javax.imageio.ImageIO; | |
| import java.io.IOException; |
| /** | |
| * This is a compilation of code snippets required to render SVG files in JavaFX using Batik. | |
| * See my full post on StackOverflow: http://stackoverflow.com/a/23894292/603003 | |
| */ | |
| package proofofconcept; | |
| import java.awt.image.BufferedImage; | |
| import org.apache.batik.transcoder.TranscoderException; | |
| import org.apache.batik.transcoder.TranscoderOutput; |
| package application; | |
| import java.util.function.Supplier; | |
| import javafx.animation.Animation; | |
| import javafx.animation.FadeTransition; | |
| import javafx.animation.Interpolator; | |
| import javafx.animation.RotateTransition; | |
| import javafx.animation.ScaleTransition; | |
| import javafx.application.Application; |
Install Package Control for easy package management.
Ctrl+`
| import co.paralleluniverse.fibers.Fiber; | |
| import co.paralleluniverse.fibers.SuspendExecution; | |
| import co.paralleluniverse.strands.SuspendableRunnable; | |
| import co.paralleluniverse.strands.channels.Channel; | |
| import co.paralleluniverse.strands.channels.Channels; | |
| import jsr166e.ForkJoinPool; | |
| import java.util.concurrent.ExecutionException; | |
| import static java.lang.String.format; |
| var cursorFocus = function(elem) { | |
| var x = window.scrollX, y = window.scrollY; | |
| window.scrollTo(x, y); | |
| elem.focus(); | |
| } | |
| cursorFocus(document.getelementbyId('search-terms')); |
| import javafx.animation.*; | |
| import javafx.application.Application; | |
| import javafx.event.*; | |
| import javafx.fxml.FXMLLoader; | |
| import javafx.scene.*; | |
| import javafx.scene.image.Image; | |
| import javafx.scene.input.MouseEvent; | |
| import javafx.stage.*; | |
| import javafx.util.Duration; |
Raw CSV data is made available by Common Data Hub here:
http://www.commondatahub.com/live/geography/state_province_region/iso_3166_2_state_codes
http://www.commondatahub.com/live/geography/country/iso_3166_country_codes
The table cdh_state_codes (see cdh-schema.sql below) is designed to hold the raw data, which should import readily using most common database tools, or directly into MySQL via LOAD DATA, e.g.:
SET FOREIGN_KEY_CHECKS=0;
TRUNCATE TABLE iso3166.cdh_state_codes;
| <?php | |
| /* | |
| * PHP: Recursively Backup Files & Folders to ZIP-File | |
| * MIT-License - 2012-2018 Marvin Menzerath | |
| */ | |
| // Make sure the script can handle large folders/files | |
| ini_set('max_execution_time', 600); | |
| ini_set('memory_limit', '1024M'); |