I hereby claim:
- I am lbalceda on github.
- I am lbalceda (https://keybase.io/lbalceda) on keybase.
- I have a public key ASDC_w0Xa9R-qzG42tK_ltGNKGUzfa5uRUStSQ6TO8mrtAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| pg_dump --table=TABLE_NAME_HERE --data-only --column-inserts DATABASE_NAME_HERE > output.sql |
| git branch --merged | grep -v '\*\|master\|develop\|alpha' | xargs -n 1 git branch -d |
| $.expr[':'].textEquals = function(a, i, m) { | |
| var match = $(a).text().match("^" + m[3] + "$") | |
| return match && match.length > 0; | |
| } | |
| //usage: | |
| $("a:textEquals('Click Me!')"); |
| /*jshint browser:true laxcomma:true */ | |
| /* | |
| * Tiny Carousel 1.9 | |
| * http://www.baijs.nl/tinycarousel | |
| * | |
| * Copyright 2010, Maarten Baijs | |
| * Dual licensed under the MIT or GPL Version 2 licenses. | |
| * http://www.opensource.org/licenses/mit-license.php | |
| * http://www.opensource.org/licenses/gpl-2.0.php |
| #include all in an override initializer | |
| module Devise | |
| module Models | |
| module Trackable | |
| alias_method :original_update_tracked_fields!, :update_tracked_fields! | |
| def update_tracked_fields!(request) | |
| original_update_tracked_fields!(request) unless request.env["devise.skip_trackable"] |
| select count(*) from pg_stat_activity where pid <> pg_backend_pid() and usename = current_user; |
| # Rebuilds all RVM rubies with 'approved' version of open SSL. | |
| # Taken from https://github.com/pivotal/pivotal_workstation/issues/221#issuecomment-14577443 | |
| rvm pkg install openssl; rvm reinstall all --with-open-ssl-dir=$rvm_path/usr --force |
| =IFERROR(VLOOKUP(F2,'Week 1 '!$R$1:$S$4,2,FALSE),0)+IFERROR(VLOOKUP(G2,'Week 1 '!$R$1:$S$4,2,FALSE),0)+IFERROR(VLOOKUP(H2,'Week 1 '!$R$1:$S$4,2,FALSE),0)+IFERROR(VLOOKUP(I2,'Week 1 '!$R$1:$S$4,2,FALSE),0)+IFERROR(VLOOKUP(J2,'Week 1 '!$R$1:$S$4,2,FALSE),0) |
| # Fix "unpermitted parameters" devise & rails 4 strong parameters issue | |
| # registrations_controller.rb | |
| class RegistrationsController < Devise::RegistrationsController | |
| ... | |
| def sign_up_params | |
| params.require(:user).permit(:email, :username, :whatever, :other, :params) | |
| end | |
| end | |