Skip to content

Instantly share code, notes, and snippets.

View KyNorthstar's full-sized avatar
💜
Any Pronouns

Ky KyNorthstar

💜
Any Pronouns
View GitHub Profile
@abernier
abernier / Readme.md
Last active April 24, 2024 08:33
Link anatomy
@jewelsea
jewelsea / OffScreenOffThreadCharts.java
Created March 2, 2013 19:24
Render 300 charts off screen and save them to files in JavaFX.
import java.awt.image.BufferedImage;
import java.io.*;
import java.text.SimpleDateFormat;
import java.util.*;
import java.util.concurrent.*;
import java.util.logging.*;
import javafx.application.*;
import javafx.beans.binding.*;
import javafx.beans.property.*;
import javafx.beans.value.*;
@jewelsea
jewelsea / ImageScaler.java
Created April 18, 2013 20:17
Demonstrates different methods of scaling images in JavaFX and the effects of scaling with each.
import javafx.application.*;
import javafx.geometry.HPos;
import javafx.geometry.Pos;
import javafx.scene.*;
import javafx.scene.control.*;
import javafx.scene.image.*;
import javafx.scene.layout.*;
import javafx.stage.Stage;
public class ImageScaler extends Application {
@cieslak
cieslak / ‽.swift
Created June 13, 2014 19:32
Interrobang operator in Swift
import Foundation
operator postfix ‽ {}
@postfix func ‽<T>(value: T?) -> T? {
return (arc4random_uniform(2) == 1) ? value : nil
}
@KyNorthstar
KyNorthstar / Swift Enum-Based Datetime Formatter.swift
Last active August 8, 2018 18:55
Create a datetime format with clear and concise Swift enums instead of a cryptic string
// Copyright Ben Leggiero 2017 BH-1-PS
// https://github.com/BlueHuskyStudios/Licenses/blob/master/Licenses/BH-1-PS.txt
import Foundation
@mohanpedala
mohanpedala / bash_strict_mode.md
Last active December 26, 2024 00:04
set -e, -u, -o, -x pipefail explanation