I hereby claim:
- I am kylekeesling on github.
- I am kylekeesling (https://keybase.io/kylekeesling) on keybase.
- I have a public key whose fingerprint is 4011 27E5 ADB2 5CC7 FC50 FF9C D906 21B5 5F82 D202
To claim this, I am signing this object:
chatting = true | |
byes = 0 | |
while chatting | |
puts "Ask Grandma a question:" | |
said = gets.chomp! | |
if said == "BYE" | |
byes += 1 | |
if byes > 2 | |
chatting = false | |
else |
# Expected output: | |
# YOU ARE x YEARS OLD IN DOG YEARS | |
# Calculate dog years: | |
# 1 dog year = 7 human years | |
puts "Hello there, what's your age?" | |
user_age = gets | |
dog_years = user_age.to_i * 7 | |
output_string = "you are #{dog_years} years old in dog years" |
$pets = [] | |
$pets << { | |
:name => 'Lallo', | |
:nocturnal => false, | |
:breed => 'Schnauzer', | |
:talents => ['napping', 'rolling over', 'playing dead'], | |
:legs => 4 | |
} | |
$pets << { |
(1..1000).each do |number| | |
if number % 7 == 0 | |
puts "#{number} is divisible by 7" | |
end | |
end |
@media (max-width: $screen-xs-max) { | |
.btn-group-responsive { | |
width: 100%; | |
margin-bottom: 10px; | |
.pull-left, .pull-right { float: none; } | |
.btn { | |
border-radius: $btn-border-radius-small !important; | |
display: block; | |
width: 100%; | |
padding-right: 0; |
I hereby claim:
To claim this, I am signing this object:
start_working() { cd ~/sites/$1; git pull; bundle install; rake db:migrate; subl .; } |
class KylesSuperCoolPdf < Prawn::Document | |
def initialize | |
super() | |
repeat :all do | |
#Create a bounding box and move it up 18 units from the bottom boundry of the page | |
bounding_box [bounds.left, bounds.bottom + 18], width: bounds.width do | |
text "Probably the Best Footer Ever", size: 8, align: :center | |
end |
{% if paginator.previous_page %} | |
{% if paginator.previous_page == 1 %} | |
{% capture previous_page %}/{% endcapture %} | |
{% else %} | |
{% capture previous_page %}/page{{ paginator.previous_page }}{% endcapture %} | |
{% endif %} | |
<a href="{{ previous_page }}" class="previous">← Newer Posts</a> | |
{% endif %} | |
{% if paginator.next_page %} |
SELECT | |
myData.*, | |
ROUND(6378.137 * ACOS( | |
CASE | |
WHEN (SIN(RADIANS((SELECT latitude FROM [Zip Codes and Locations] where [Zip Code] = 46254))) * SIN(RADIANS(geo.Latitude))) + (COS(RADIANS((SELECT latitude FROM [Zip Codes and Locations] where [Zip Code] = 46254))) * COS(RADIANS(geo.Latitude)) * COS(RADIANS(geo.Longitude) - RADIANS((SELECT longitude FROM [Zip Codes and Locations] where [Zip Code] = 46254)))) > 1 THEN 1 | |
WHEN (SIN(RADIANS((SELECT latitude FROM [Zip Codes and Locations] where [Zip Code] = 46254))) * SIN(RADIANS(geo.Latitude))) + (COS(RADIANS((SELECT latitude FROM [Zip Codes and Locations] where [Zip Code] = 46254))) * COS(RADIANS(geo.Latitude)) * COS(RADIANS(geo.Longitude) - RADIANS((SELECT longitude FROM [Zip Codes and Locations] where [Zip Code] = 46254)))) < -1 THEN -1 | |
ELSE (SIN(RADIANS((SELECT latitude FROM [Zip Codes and Locations] where [Zip Code] = 46254))) * SIN(RADIANS(geo.Latitude))) + (COS(RADIANS((SELECT latitude FROM [Zip Codes and Locations] where [Zip Code] = 4 |