Skip to content

Instantly share code, notes, and snippets.

@dgreen
dgreen / obsidian-web-clipper.js
Last active September 18, 2023 16:11 — forked from kepano/obsidian-web-clipper.js
Obsidian Web Clipper Bookmarklet to save articles and pages from the web (for Safari, Chrome, Firefox, and mobile browsers)
javascript: Promise.all([import('https://unpkg.com/turndown@6.0.0?module'), import('https://unpkg.com/@tehshrike/readability@0.2.0'), ]).then(async ([{
default: Turndown
}, {
default: Readability
}]) => {
/* Optional vault name */
const vault = "VaultV2";
/* Optional folder name such as "Clippings/" */

Configuring NetBeans to build an App using JDK 17 and JavaFx 17

This is a short note to document a process for creating a build environment in NetBeans to

  • Build a modular project with JavaFx
  • Run project inside NetBeans environment with the Run Project key (or from menu)
  • Debug project inside NetBeans environment with the Debug Project key (or from menu)
  • Extract Javadoc documentation from the project with the Run | Generate Javadoc menu
  • Execute the code from the command line on a machine with the Azul JDK without JavaFX installed.
@dgreen
dgreen / pom-javadoc.xml
Created July 16, 2021 20:27
pom addition to generate JavaDoc
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.3.0</version>
<configuration>
<source>15</source>
<target>15</target>
<sourceFileExcludes>**/module-info.java</sourceFileExcludes>
</configuration>
</plugin>
@dgreen
dgreen / pom-updates-javafx-2021.md
Last active July 19, 2022 14:12
Netbeans 12.4 and JavaFX App Development

Configuring NetBeans to build an App using JDK 15 and JavaFx 16

This is a short note to document a process for creating a build environment in NetBeans to

  • Build a modular project with JavaFx
  • Run project inside NetBeans environment with the Run Project key (or from menu)
  • Debug project inside NetBeans environment with the Debug Project key (or from menu)
  • Extract Javadoc documentation from the project with the Run | Generate Javadoc menu
  • Execute the code from the command line on a machine with the Azul JDK with JavaFX installed.
@dgreen
dgreen / nbactions.xml
Last active October 9, 2019 05:11
An attempt at a POM for NetBeans 11.1 (and CoolBeans) which allows building, debugging, testing, and creating javadoc style documentation.
<?xml version="1.0" encoding="UTF-8"?>
<actions>
<action>
<actionName>run</actionName>
<packagings>
<packaging>jar</packaging>
</packagings>
<goals>
<goal>process-classes</goal>
<goal>package</goal>
@dgreen
dgreen / display.php
Created May 7, 2019 03:57
Simple PHP script to show data available to it
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Displaying results of activation</title>
</head>
<body>
<h1>Results of Activation</h1>
<?php
@dgreen
dgreen / gaugedemo.html
Last active April 30, 2019 04:14
Example Dashboard of Gauges
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Financial Dashboard">
@dgreen
dgreen / CreatePDFListing.sh
Last active April 15, 2019 14:09
Create a pdf listing for all source files in NetBeans Java Project (ant-based) - shell script portion of automator script
ENSCRIPT=/usr/local/bin/enscript
PS2PDF=/usr/local/bin/ps2pdf
PACKAGE="*/"
# PACKAGE=
# TBD: deal with spaces in paths
for f in "$@"
do
@dgreen
dgreen / Prepare Task Completion Report.scpt
Last active December 31, 2018 04:08
Completed Task Report
--==============================
-- OmniFocus > Completed Task Report
-- Version 1.1.0
-- Originally Written By: Ben Waldie <ben@automatedworkflows.com>
-- http://www.automatedworkflows.com
-- Description: This script retrieves a list of OmniFocus tasks completed today, yesterday, this week, last week, or this month. It then summarizes the tasks in a new Evernote note.
-- Version History:
-- 1.4.1 - DGG Add Quarterly Report
-- 1.3.0 - DGG Change folder, separately log items tagged Dropped
@dgreen
dgreen / Support Note.scpt
Last active May 7, 2019 03:23 — forked from csreed/Support Note.scpt
Create a project support note in Evernote. The note will be cross-referenced with the task/project in OmniFocus.
(*
Opens the support note for an OmniFocus task/project in Evernote. Creates the note if necessary, linking the note back to the task/project.
NB: If you set this up by hand, the evernote:/// URL in OmniFocus needs to be enclosed in <> for the script to find it.
Put this script in ~/Library/Application Scripts/com.omnigroup.omnifocus2. Then you can add the script as a custom toolbar item.
version 1.0: Initial release
*)