Skip to content

Instantly share code, notes, and snippets.

View michaelnugent's full-sized avatar

Michael Nugent michaelnugent

  • Sr. Staff SRE, Shopify | Ex FB, eBay
  • Outside of NYC
View GitHub Profile
#!/usr/bin/env python3
import sys
import argparse
import math
def main(ns):
aspect = ns.high / ns.wide
a = 1
b = aspect
function IO() {
DLog('test');
return {
io: [
{
'name': 'input11',
'direction': 'input',
'type': 'integer'
},
{
@michaelnugent
michaelnugent / gist:5307736
Last active December 15, 2015 18:59
Anagram problem
#!/usr/bin/env ruby
File.open("/usr/share/dict/words") do |handle|
cachedsorted = ARGV[0].chars.sort
handle.each_line do |word|
puts word if word.strip.chars.sort == cachedsorted
end
end
this is a test