Skip to content

Instantly share code, notes, and snippets.

Connection nonCloseableConnection = (Connection)Proxy.newProxyInstance( Connection.class.getClassLoader(),
new Class[] { Connection.class },
(proxy, method, methodArgs) -> {
if (method.getName().equals("close")) {
return null;
} else {
return method.invoke( alreadyExistingConnection, methodArgs );
}
} );
YYUUU
PILOT: GGGGGG
FLIGHT: TYFYFY (KSFO - KOAK)
DEPARTURE RUNWAY: 1L
ARRIVAL RUNWAY: 10R
AIRCRAFT: MD-11
********** FLIGHT TIMES SUMMARY **********
@epaga
epaga / TappableView.swift
Last active December 13, 2021 17:57
SwiftUI View for getting taps with(!) the tap locations unlike the current tapAction and tapGestures of SwiftUI
// SwiftUI View for getting taps with(!) the tap locations unlike the current tapAction and tapGestures of SwiftUI
// There may be a way easier way to do this, not sure...
/*
Use like so:
TappableView {
(location, taps) in
if taps == 1 {
print("single tap at \(location)")
@epaga
epaga / TicTacToe.swift
Last active July 3, 2019 06:57
A simple SwiftUI Tic Tac Toe game I made together with my son to learn SwiftUI together
//
// ContentView.swift
// TicTacToe
//
// Created by John Goering on 08.06.19.
// Copyright © 2019 John Goering. All rights reserved.
//
import SwiftUI
import Combine
How to record an App Preview
=========
Apple allowing preview videos in the App Store is extremely exciting for apps like my own [Mindscope], since its magic currently doesn't really shine through all that well in screenshots, where at first glance, it simply looks like text.
A video changes that - within a few seconds, you see entries opening up with their sub-boards, as well as how simple it is to create and move entries around.
Apple has a few conditions that need to be fulfilled in order for a preview video to be accepted for an app.
- For iPad it needs to be 1200x900 (or 900x1200)
Verifying myself: My Bitcoin username is +epaga. https://onename.io/epaga

Keybase proof

I hereby claim:

  • I am epaga on github.
  • I am johngoering (https://keybase.io/johngoering) on keybase.
  • I have a public key whose fingerprint is 3706 423F 32C0 AFF5 E6CF A44A 1E97 4314 0415 E1FA

To claim this, I am signing this object:

/*====================================================================================================================================*
ImportJSON by Trevor Lohrbeer (@FastFedora)
====================================================================================================================================
Version: 1.2.0
Project Page: http://blog.fastfedora.com/projects/import-json
Copyright: (c) 2012-2013 by Trevor Lohrbeer
License: GNU General Public License, version 3 (GPL-3.0)
http://www.opensource.org/licenses/gpl-3.0.html
------------------------------------------------------------------------------------------------------------------------------------
A library for importing JSON feeds into Google spreadsheets. Functions include: