Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am rodgco on github.
  • I am rodgco (https://keybase.io/rodgco) on keybase.
  • I have a public key ASDNFeeBk4RSehdK0g2Ynq5A_uVL1IxUx5ejKl-jBnMrMwo

To claim this, I am signing this object:

@rodgco
rodgco / rails_template.rb
Last active July 21, 2019 01:08
My Rails Workplace
# Prepare Gemfile
gem 'devise'
gem 'webpacker', '~> 4.0'
gem_group :development, :test do
gem 'database_cleaner'
gem 'rspec-collection_matchers'
gem 'rspec-rails'
gem 'rubocop-rails'
end

Question

Considering that couples would not handshake among themselves, there would be 12 people present

Answer

The simple solution is a combination of "n choose 2".

Considering that couples would not handshake among themselves, the final formula would be:

combin(n, 2) - (n/2) = 60
@rodgco
rodgco / question1.md
Last active July 17, 2018 20:33
Fun Friday Answer

Question

The large square has an area equal to 4 cm2. The grey star was built by joining the vertices of the large square to the centers of the small squares. What is the area of the star? (see question pic in comments)

Answer

The area of the star is aproximatelly 2,72 cm2

There are 8 small triangles outside of the star, so I've estimated the area of the small triangles, multiplied by 8, and subtracted from the area of the rectangle. (see answer pic in comments).

@rodgco
rodgco / README.md
Last active April 24, 2018 02:39
Ruby Playground

README

@rodgco
rodgco / designer.html
Last active August 29, 2015 14:24
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-field/core-field.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../core-icons/core-icons.html">
#!/usr/bin/env ruby
require 'Twitter'
# Create a read write application from :
# https://apps.twitter.com
# authenticate it for your account
# fill in the following
config = {consumer_key: '', consumer_secret: '',
access_token: '', access_token_secret: ''}
me = 'Blaze Boy' # to prevent DM yourself