Skip to content

Instantly share code, notes, and snippets.

View MSevey's full-sized avatar
🦝
Looking into purchasing a racoon dog

Matthew Sevey MSevey

🦝
Looking into purchasing a racoon dog
  • Celestia Labs
  • Boston, MA
View GitHub Profile
@musaic
musaic / jumbotron-narrow-index.html
Created November 16, 2013 22:08
twbootstrap-jumbotron-narrow
<!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.0">
<meta name="description" content="">
<meta name="author" content="">
<link rel="shortcut icon" href="../../docs-assets/ico/favicon.png">
@aspyct
aspyct / sort.rb
Last active October 29, 2023 03:08
Ruby implementation of quicksort, mergesort and binary search
# Sample implementation of quicksort and mergesort in ruby
# Both algorithm sort in O(n * lg(n)) time
# Quicksort works inplace, where mergesort works in a new array
def quicksort(array, from=0, to=nil)
if to == nil
# Sort the whole array, by default
to = array.count - 1
end