Skip to content

Instantly share code, notes, and snippets.

@Demannu
Demannu / gist:1ae5d7137ba957219ef6
Created September 29, 2014 16:10
[Exercism.io] Prime Factorization Code
## Prime Factor Storm
## Demannu 9/29/2014
# 3 -> Pling
# 5 -> Plang
# 7 -> Plong
# If factors aren't 3,5,7 just display the number
require 'mathn'
class Raindrops
def self.convert(toFactor)
primeNumbers = [2, 3, 5, 7, 9]
@Demannu
Demannu / l2l.py
Created May 13, 2016 00:26
Line2Line Python Script
#!/usr/bin/python
import sys, getopt
from itertools import izip
def main(argv):
source = ''
target = ''
try:
opts, args = getopt.getopt(argv,"hs:t:",["source=","target="])