Skip to content

Instantly share code, notes, and snippets.


cdesch cdesch

View GitHub Profile
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 /
Last active Oct 16, 2020
Building URLs for simple_form - all examples. Rails


Namespace and simple_form

  • namespace 'admin'
= simple_form_for([:admin,@item], html: { class: 'form-horizontal' }) do |f|
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;'GET', url, true);
var self = this;
request.onreadystatechange = function() {
if (this.readyState === 4) {
if (this.status >= 200 && this.status < 400) {
chip /
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.
PROJECT="" # Fill this in
for image in `find $IMAGES -type f`
name=`basename $image`
oliverbarreto / ObjectiveC Singleton
Last active Dec 27, 2015
Singleton Code for ObjectiveC iOS7
View ObjectiveC Singleton
@interface SingletonClass : NSObject
@property (nonatomic, retain) NSString *myProperty;
+ (SingletonClass *)sharedInstance;
+ (SingletonClass *)sharedInstance
dypsilon /
Last active Nov 18, 2020
A badass list of frontend development resources I collected over time.
Andrew8xx8 / Gemfile
Created Jun 14, 2013
Example of API with ransack search and kaminari paginate.
View Gemfile
gem 'kaminari'
gem 'ransack'
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
# Adding all recource names to Permissions table after ActiveAdmin is loaded




them0nk / rspec_rails_cheetsheet.rb
Created Mar 23, 2012
Rspec Rails cheatsheet (include capybara matchers)
View rspec_rails_cheetsheet.rb
@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
response.should render_template(:index)
response.should redirect_to(movies_path)
You can’t perform that action at this time.