- GitHub Staff
- https://justinherrick.com/
- @jah2488
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#=========================================================================================================================================== | |
# ---- Productivity Calculator for Erepublik Beta and V1 ---- | |
## Created by Justinious - [email protected] | |
# | |
# Beta 0.3.5 -- October 25th 2008 | |
# | |
##Notes | |
# | |
## Fatal Occurs during Windows EXE. Something wrong with the SHELVE Module |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. ## |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env ruby | |
# Part 1 | |
found = false | |
$num = 0 | |
def calc_num(num) | |
i = num - 1 | |
new_num = num |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
OlderNewer