Skip to content

Instantly share code, notes, and snippets.

Avatar

cdesch cdesch

View GitHub Profile
@binary1230
binary1230 / wells fargo website bulk statement downloader
Last active Nov 21, 2020
wells fargo ability to download all bank statements
View wells fargo website bulk statement downloader
Wells fargo's new statement viewer sucks to use because due to the way they set it up.
Each time you click a statement PDF, you have to re-navigate the entire section including accounts and dates which takes FOREVER.
Doing this for 3-4 accounts for 12 statements is an multi-hour grind of horrible user experience which should instead take 30 seconds.
The following code snippet will make it so you can get every PDF on that page without hassle (y'know.. like every other website in the world)
To use this, do the following each time you have the links on-screen that you want to download:
1) In Chrome browser, navigate to your wells fargo statement viewer and pull up the set of PDFs you want to view
2) Press F12 to open the developer tools and click the tab at the bottom that says 'Console'
@maxivak
maxivak / _readme.md
Last active Oct 16, 2020
Building URLs for simple_form - all examples. Rails
View _readme.md

Namespace

Namespace and simple_form

  • namespace 'admin'
= simple_form_for([:admin,@item], html: { class: 'form-horizontal' }) do |f|
    
@wboykinm
wboykinm / cr-leaflet.js
Last active May 2, 2018
Census reporter GeoJSON tiles
View cr-leaflet.js
CensusReporter = {
GeoIDLayer: L.GeoJSON.extend({
addGeoID: function(geoid) {
var request = new XMLHttpRequest();
var url = this.options.api_url + "/1.0/geo/show/tiger2013?geo_ids=" + geoid;
request.open('GET', url, true);
var self = this;
request.onreadystatechange = function() {
if (this.readyState === 4) {
if (this.status >= 200 && this.status < 400) {
@chip
chip / find-unused.sh
Created Dec 23, 2013
This helps me find unused images in a Rails project. The echo statement never executes, so there's a glitch, but the output was helpful nonetheless. I'll try to improve later.
View find-unused.sh
#!/bin/sh
PROJECT="" # Fill this in
IMAGES="$PROJECT/app/assets/images"
VIEWS="$PROJECT/app/views"
CSS="$PROJECT/app/assets/stylesheets"
for image in `find $IMAGES -type f`
do
name=`basename $image`
@oliverbarreto
oliverbarreto / ObjectiveC Singleton
Last active Dec 27, 2015
Singleton Code for ObjectiveC iOS7
View ObjectiveC Singleton
SingletonClass.h:
@interface SingletonClass : NSObject
@property (nonatomic, retain) NSString *myProperty;
+ (SingletonClass *)sharedInstance;
@end
SingletonClass.m:
@implentation
+ (SingletonClass *)sharedInstance
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active Nov 18, 2020
A badass list of frontend development resources I collected over time.
View frontendDevlopmentBookmarks.md
@Andrew8xx8
Andrew8xx8 / Gemfile
Created Jun 14, 2013
Example of API with ransack search and kaminari paginate.
View Gemfile
gem 'kaminari'
gem 'ransack'
@developer88
developer88 / active_admin.rb
Last active Mar 19, 2016
This is my gist that show how we can use CanCan with ActiveAdmin and store permissions in database.
View active_admin.rb
# config/initializers/active_admin.rb
ActiveAdmin.setup do |config|
config.current_user_method = :current_user
config.authentication_method = :authenticate_user!
config.before_filter :admin_role_filter
end
# Adding all recource names to Permissions table after ActiveAdmin is loaded
View capybara.md

Capybara

save_and_open_page

Matchers

have_button(locator)
@them0nk
them0nk / rspec_rails_cheetsheet.rb
Created Mar 23, 2012
Rspec Rails cheatsheet (include capybara matchers)
View rspec_rails_cheetsheet.rb
#Model
@user.should have(1).error_on(:username) # Checks whether there is an error in username
@user.errors[:username].should include("can't be blank") # check for the error message
#Rendering
response.should render_template(:index)
#Redirecting
response.should redirect_to(movies_path)
You can’t perform that action at this time.