I hereby claim:
- I am flanger001 on github.
- I am flanger001 (https://keybase.io/flanger001) on keybase.
- I have a public key ASAk-Xk1h0680J2gvJ2DHU3IRBOCPrGN-ejC18u2JN19wgo
To claim this, I am signing this object:
class String | |
def spongebob | |
each_char.map { |c| rand > 0.5 ? c.swapcase : c }.join | |
end | |
end |
$animation: MoveBG 100s ease infinite; | |
body { | |
background: linear-gradient(240deg,#a24bcf,#4b79cf,#4bc5cf); | |
background-size: 400% 400%; | |
-webkit-animation: $animation; | |
-moz-animation: $animation; | |
-o-animation: $animation; | |
animation: $animation; | |
} |
#! /usr/bin/env ruby | |
if system('bundle exec rubocop') | |
puts 'Rubocop is pleased.' | |
else | |
puts 'Rubocop demands penance.' | |
exit(1) | |
end |
class A | |
def foo | |
'hello' | |
end | |
alias_method :bar, :foo | |
end | |
class B < A | |
def foo | |
'bye' |
# An object-oriented breakfast | |
class Mug(object): | |
def __init__(self, article): | |
self.article = article | |
print('You put a', self.article.get_name().lower(), 'in the mug') | |
def heat(self, heater, time): | |
heater.heat(self.article, time) | |
def get_article(self): |
I hereby claim:
To claim this, I am signing this object:
This is a huge pain in the butt process. Work in progress.
ionic start myapp tabs
cd myapp
npm install --save-dev gulp-typescript browserify tsify typings typescript vinyl-buffer vinyl-source-stream
(I'm not using all of these yet)
Couldn't find the text of this for a while...
class String | |
def rotate_vowels(num = 1) | |
vowels = "aeiou" | |
uc_vowels = vowels.upcase | |
tr(uc_vowels, uc_vowels.chars.rotate(num).join).tr(vowels, vowels.chars.rotate(num).join) | |
end | |
end | |
str = "Hey, I'm gonna need you to come in on Saturday." | |
str.rotate_vowels |
def caesar(key, text) | |
az = ('A'..'Z').to_a | |
rt = az.rotate(key) | |
chars = text.split('') | |
.select { |c| az.include?(c) } | |
.map { |c| rt[az.index(c)] } | |
.join('') | |
end |