Skip to content

Instantly share code, notes, and snippets.

View kuroneko's full-sized avatar

Chris Collins kuroneko

View GitHub Profile
@kuroneko
kuroneko / keybase.md
Created July 17, 2018 05:13
keybase.md

Keybase proof

I hereby claim:

  • I am kuroneko on github.
  • I am akuneko (https://keybase.io/akuneko) on keybase.
  • I have a public key ASBFA8HduyRbbbjnqGje-N37Uw2HkQg1C6eA5PF6iuX0Qwo

To claim this, I am signing this object:

@kuroneko
kuroneko / gist:9a7bc443c8e24dd23ffc
Last active February 28, 2016 11:15
Circuit Checks
Line-Up Checks:
* Transponder ALT
* All Lights On
* Mixture Full Rich
Take-off Roll:
* Static RPM achieved
* Airspeed Rising
* Ts & Ps within green arc.
@kuroneko
kuroneko / qsort.ps
Created January 11, 2016 23:11
QuickSort in Postscript
% Quicksort
%
% Chris Collins <xfire@xware.cx>
% 17-Sep-2001
/qsort { dup length 1 gt { << exch /xlt [ ] /xgt [ ] /x 6 5 roll dup 0 get
exch dup length 1 sub 1 exch getinterval /xs exch >> begin 0 1 xs length 1
sub { xs exch get dup x lt exch [ exch 3 2 roll { xlt aload pop ] /xlt } {
xgt aload pop ] /xgt } ifelse exch store } for [ xlt qsort aload pop x xgt
qsort aload pop ] end } if } def
@kuroneko
kuroneko / hdg.s
Created October 29, 2015 04:17
E6B-like functions for HP48
%%HP: T(0)A(D)F(.);
@ You may edit the T(0)A(D)F(.) parts.
@ The earlier parts of the line are used by Debug4x.
\<<
IF
DEPTH 1 <
THEN
#201 DOERR
END
'curTAS' STO
@kuroneko
kuroneko / transaction_helper.rb
Created April 2, 2014 02:39
Safeish Retryable Transactions for RoR
module TransactionHelper
extend ActiveSupport::Concern
included do
def retryable_transaction(isolation = :serializable, &block)
txn_retries = 0
begin
self.transaction(isolation: isolation, &block)
rescue ::ActiveRecord::StatementInvalid => exc
if exc.original_exception.is_a?(::PG::TransactionRollback)
diff --git a/core/src/main/java/org/jruby/runtime/load/LoadService.java b/core/src/main/java/org/jruby/runtime/load/LoadService.java
index 4f457be..5d1ce7d 100644
--- a/core/src/main/java/org/jruby/runtime/load/LoadService.java
+++ b/core/src/main/java/org/jruby/runtime/load/LoadService.java
@@ -1392,23 +1392,23 @@ public class LoadService {
}
private String[] splitJarUrl(String loadPathEntry) {
- int idx = loadPathEntry.indexOf("!");
- if (idx == -1) {