I hereby claim:
- I am dekaikiwi on github.
- I am jono_shuttlerock (https://keybase.io/jono_shuttlerock) on keybase.
- I have a public key ASDtjr6XLCeYYOgtB_TCCOdFDxHcvW38omjKMhRhrYlxtgo
To claim this, I am signing this object:
" Maintainer: Jono Glassey <[email protected]> | |
" Last change: 2019 April 26 | |
" | |
" To use it, copy it to | |
" for Unix and OS/2: ~/.vimrc | |
" for Amiga: s:.vimrc | |
" for MS-DOS and Win32: $VIM\_vimrc | |
" for OpenVMS: sys$login:.vimrc | |
" Vundle Setup (2019-04-26) |
package jono.structures; | |
import java.lang.Math; | |
import jono.structures.Node; | |
import java.util.stream.Stream; | |
class AvlNode extends Node { | |
int balance = 0; | |
int height = 0; |
package jono.sorting; | |
import java.util.Arrays; | |
import java.util.stream.Stream; | |
public class QuickSorter { | |
public static void main(String[] args) { | |
QuickSorter sorter = new QuickSorter(); |
package jono.sorting; | |
import java.util.Arrays; | |
import java.util.stream.Stream; | |
public class MergeSorter { | |
public static void main(String[] args) { | |
MergeSorter sorter = new MergeSorter(); | |
int[] array = Stream.of(args[0].split(",")).mapToInt(Integer::parseInt).toArray(); |
package jono.structures; | |
import java.util.stream.Stream; | |
import jono.structures.Node; | |
public class Bst { | |
public static void main(String args[]) { | |
Node root = null; | |
int[] numbers = Stream.of(args[0].split(",")).mapToInt(Integer::parseInt).toArray(); |
def bubble_sort(arr, swap_count = 0) | |
time_start = Time.now | |
total_swap_count = 0 | |
swap_count = nil | |
while swap_count.nil? || swap_count > 0 | |
swap_count = 0 | |
arr.each_with_index do |i, index| | |
pos = index |
# https://stackoverflow.com/questions/28639439/rails-repeated-activerecordrecordnotunique-when-creating-objects-with-postgre?rq=1 | |
ActiveRecord::Base.descendants.each do |model| | |
unless model.attribute_names.include?('id') | |
Rails.logger.debug "Not resetting #{model}, which lacks an ID column" | |
next | |
end | |
begin | |
max_id = model.maximum(:id).to_i + 1 | |
result = ActiveRecord::Base.connection.execute( |
I hereby claim:
To claim this, I am signing this object: