Skip to content

Instantly share code, notes, and snippets.

View denniskeefe's full-sized avatar

Dennis Keefe denniskeefe

View GitHub Profile
class DeviseCreateViews < ActiveRecord::Migration
def change
create_table(:views) do |t|
## Database authenticatable
t.string :email, :null => false, :default => ""
t.string :encrypted_password, :null => false, :default => ""
## Recoverable
t.string :reset_password_token
t.datetime :reset_password_sent_at
avg_fuel_economy = 22
avg_fuel_price = 3.60
avg_fuel_price.to_f
#make sure we're calculating float and float in cost below
print "How many miles will you travel?"
distance = gets.chomp
puts "Distance as input: #{distance}"
@denniskeefe
denniskeefe / keybase.md
Last active June 6, 2018 03:10
keybase.md

Keybase proof

I hereby claim:

  • I am denniskeefe on github.
  • I am thecommongeek (https://keybase.io/thecommongeek) on keybase.
  • I have a public key whose fingerprint is 4D6D 4061 9309 5C23 CFE0 F76F 9AF4 BB9F C6F7 714A

To claim this, I am signing this object:

rsync -av --delete -e "ssh -p 22"
[email protected]:/backups/full-system-backup.tar /backups/ > backup.log
public static function lower_links(){
$options = get_option( 'purecharity_sponsorships_settings' );
$go_back = htmlspecialchars($_SERVER['HTTP_REFERER']);
$html = '';
if(isset($options['show_back_link'])){
$html .= '<a href="'. $go_back .'" class="back"><span> < </span>Back to all kids</a>';
}
### Keybase proof
I hereby claim:
* I am denniskeefe on github.
* I am thecommongeek (https://keybase.io/thecommongeek) on keybase.
* I have a public key ASBmy8awe2VjY-GVc3uJsySWOwoRpBgjSyGIfPyyycUCuQo
To claim this, I am signing this object: