I hereby claim:
- I am icelle on github.
- I am icelle (https://keybase.io/icelle) on keybase.
- I have a public key ASC3bFNorE07HcbbgtHmGZ-caOu6z30W8AwctP5a_H7WMQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
set nocompatible " be iMproved, required | |
set hidden | |
filetype off " required | |
" line numbers | |
set number | |
set backspace=2 "allow deleting any chars in insert mode | |
set laststatus=2 | |
set history=200 | |
set ruler " show the cursor position all the time |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
class WordTracker | |
attr_reader :phrase | |
def initialize(phrase) | |
@words = phrase.downcase.split(' ') | |
end | |
def frequency | |
word_count ={} |
class AnagramGenerator | |
def initialize(word) | |
@word = word | |
end | |
def random_index(word) | |
rand(0.. (word.length-1)) | |
end |
# Number of each word | |
# Number of each letter | |
# Number of each symbol (any non-letter and non-digit character, excluding white space) | |
# Top three most common words | |
# Top three most common letters | |
class WordAnalytics | |
attr_reader :string |
#What are the top 50 worst rated movies? The results should include the movie title and rating and be sorted by the worst rating first. | |
SELECT movies.title, movies.rating FROM movies WHERE rating >0 ORDER BY rating; | |
#What movies do not have a rating? The results should include just the movie titles in sorted order. | |
SELECT title FROM movies WHERE rating IS NULL; | |
class Circle | |
attr_reader :radius, :diameter, :circumference, :area | |
def initialize(radius) | |
@radius = radius | |
@diameter = (@radius*2).round(2) | |
@circumference = ((Math::PI) * @diameter).round(2) | |
@area = ((Math::PI)*(radius**2)).round(2) | |
end |
require 'pry' | |
class PigLatinTranslation | |
attr_reader :phrase, :words | |
VOWELS = /a|e|i|o|u/ | |
def initialize(phrase) | |
@phrase = phrase #put put phrase in [] and split each word so i can sort later | |
@words = words |
class Animal | |
attr_reader :name | |
def initialize(name) | |
@name | |
end | |
end | |