Skip to content

Instantly share code, notes, and snippets.

View jah2488's full-sized avatar

Justin Herrick jah2488

View GitHub Profile
def fizzbuzz(num):
x=1
while x < num:
if x%3 == 0 and x%5 == 0:
print "fizzbuzz"
elif x%5 == 0:
print "buzz"
elif x%3 == 0:
print "fizz"
def fizzbizz(num)
x = 1
while x < num do
if ((x%5==0) && (x%3==0))
puts "FizzBizz"
elsif (x%5==0)
puts "Bizz"
elsif (x%3==0)
puts "Fizz"
def abShift ( Words ):
# TODO: Allow '.' and ' ' to be accounted for, shouldn't be too hard.
a = [' ','.','(',')','a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']
b = []
for letter in Words:
for ch in a:
if letter == ch:
b.append(a.index(ch))
#!/usr/bin/env python
#===========================================================================================================================================
# ---- Productivity Calculator for Erepublik Beta and V1 ----
## Created by Justinious - JAH2488@gmail.com
#
# Beta 0.3.5 -- October 25th 2008
#
##Notes
#
## Fatal Occurs during Windows EXE. Something wrong with the SHELVE Module
require 'restaurant'
require 'support/string_extend'
class Guide
class Config
@@actions = ['list', 'find', 'add', 'quit']
def self.actions; @@actions; end #the semicolons make it all stay on one line
end
def initialize(path=nil)
#!/usr/bin/env ruby
@me = { :feelings => "unhappy", :career => "left", :cares => "for us"}
@you = {:feelings => "confused", :career => "right", :cares => "for me"}
@relationship = {:memories => 458000000000, :we => "gave it our best shot", :but => "We are going in different directions", :whats_best => "We should go our seperate ways" }
def working_relationship(response)
words = response.sub("."," ")
words = words.split(" ")
for word in words
say = case word
Dim CurrentRow
Sub GetString()
Dim InString As String
InString = InputBox("Enter text to permute:")
If Len(InString) < 2 Then Exit Sub
If Len(InString) >= 8 Then
MsgBox "Too many permutations!"
Exit Sub
Else
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by PostgreSQL configure 9.0.4, which was
generated by GNU Autoconf 2.63. Invocation command line was
$ ./configure --disable-debug --prefix=/usr/local/Cellar/postgresql/9.0.4 --enable-thread-safety --with-bonjour --with-gssapi --with-krb5 --with-openssl --with-libxml --with-libxslt --with-python --with-perl --with-ossp-uuid --datadir=/usr/local/Cellar/postgresql/9.0.4/share/postgresql --docdir=/usr/local/Cellar/postgresql/9.0.4/share/doc/postgresql ARCHFLAGS='-arch x86_64'
## --------- ##
## Platform. ##
@jah2488
jah2488 / embedly_part1.rb
Created February 20, 2012 19:29
Embed.ly Code Challenge
#! /usr/bin/env ruby
# Part 1
found = false
$num = 0
def calc_num(num)
i = num - 1
new_num = num
@jah2488
jah2488 / uninstall_homebrew.sh
Created February 26, 2012 23:59 — forked from mxcl/uninstall_homebrew.sh
Uninstall Homebrew
#!/bin/sh
# Just copy and paste the lines below (all at once, it won't work line by line!)
# MAKE SURE YOU ARE HAPPY WITH WHAT IT DOES FIRST! THERE IS NO WARRANTY!
set -e
cd `brew --prefix`
git ls-files -z | pbcopy
sudo rm -rf Cellar
bin/brew prune