Skip to content

Instantly share code, notes, and snippets.

Anthony Grimes Raynes

Block or report user

Report or block Raynes

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am Raynes on github.
  • I am raynes (https://keybase.io/raynes) on keybase.
  • I have a public key whose fingerprint is 115E 8C72 AE1D FBFD D4D8 786B A56A 26A6 72B0 8826

To claim this, I am signing this object:

View gist:205805
class Integer
def add(n)
self + n
end
def divide(n)
self / n
end
def multiply(n)
self * n
end
View gist:206428
class Person
include Comparable
attr_reader :name
def initialize(name)
@name = name
end
def to_s
"#{@name}"
end
def <=>(other)
View gist:206429
class Person
include Comparable
attr_reader :name
def initialize(name)
@name = name
end
def to_s
"#{@name}"
end
def <=>(other)
View gist:207715
[08:44] <pH_> guys
[08:45] <pH_> how to set an infinite loop in ruby?
[08:47] <wallerdev> loop { }
[08:58] <apeiros_> while 0 ... end # just for the fun of confusing C guys
[09:01] <dominikh> haha
[09:34] <Guest11530> hello
[09:35] <Guest11530> how is a lang like ruby diff from c++
[09:35] <Guest11530> i want to know from the interpreted/compiled perspective
[09:36] <CoolNik123> anyone
[09:36] <wallerdev> sure
View gist:208549
class GuessingGame
attr_reader :tries, :max, :num_of_tries
def initialize(tries, max)
@tries, @max, @num_of_tries = tries, max, 0
@num = rand(max + 1)
end
def play(guess)
View gist:212339
class Integer
def expo(n)
(1..n).inject {|acc| acc += self * self} - 1
end
end
View gist:219995
(ns main.test
(:use clojure.contrib.str-utils
[clojure.contrib.duck-streams :only (spit)]))
(def input "Source.txt")
(def output "red.txt")
(defn remove-newlines
"Removes all \ns from the string."
[s]
View gist:219998
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
const int LENGTH = 81;
ifstream inFile;
fstream outFile("C:\\red.txt", ios::in);
View gist:220003
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
const int LENGTH = 81;
ifstream inFile;
fstream outFile("C:\\red.txt", ios::in);
You can’t perform that action at this time.