jq is useful to slice, filter, map and transform structured json data.
brew install jq
| #!/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` |
| # As used with CanCan and Devise | |
| class ApplicationController < ActionController::Base | |
| protect_from_forgery | |
| include ErrorResponseActions | |
| rescue_from CanCan::AccessDenied, :with => :authorization_error | |
| rescue_from ActiveRecord::RecordNotFound, :with => :resource_not_found | |
| before_filter :authenticate! |
| 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) { |
| 3/18/2021: WE HAVE MOVED: For the latest instructions on how to use the bulk wells fargo PDF downloader, | |
| please ignore this page and visit below: | |
| https://github.com/binary1230/wellsfargo-bulk-PDF-statement-downloader/blob/main/README.md | |
| # An example global gitignore file | |
| # | |
| # Place a copy if this at ~/.gitignore_global | |
| # Run `git config --global core.excludesfile ~/.gitignore_global` | |
| # Compiled source # | |
| ################### | |
| *.com | |
| *.class | |
| *.dll |
| # Extracted from https://github.com/se3000/ruby-eth | |
| # | |
| # Dependencies: | |
| # - gem 'digest-sha3' | |
| # - gem 'rlp' | |
| # | |
| # Usage: | |
| # - Eth::Utils.valid_address?('0x4Db7569F90bd836294B11c8b08B853d2de499Ced') | |
| # => true | |
| # - Eth::Utils.format_address('0x4db7569f90bd836294b11c8b08b853d2de499ced') |
Sometimes it seems like the first (and sometimes only) advice you get offered for almost any problem with a Raspberry Pi is "check your power supply". You think something like:
"hey, I'm using an official power supply sold as being matched with my Pi so how can there be any problem?"
You look up the specs then stick a controlled load across your supply and confirm that it can deliver the required number of Watts.
Yet your problems persist…
| #!/bin/bash | |
| ### steps #### | |
| # verify the system has a cuda-capable gpu | |
| # download and install the nvidia cuda toolkit and cudnn | |
| # setup environmental variables | |
| # verify the installation | |
| ### | |
| ### to verify your gpu is cuda enable check |