Skip to content

Instantly share code, notes, and snippets.

View mguterl's full-sized avatar

Mike Guterl mguterl

View GitHub Profile
@mguterl
mguterl / cloudSettings
Last active May 17, 2019 05:44
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-05-17T05:44:27.760Z","extensionVersion":"v3.2.9"}
@mguterl
mguterl / canon sdk openframeworks
Created December 19, 2016 17:44 — forked from wouterverweirder/canon sdk openframeworks
step-by-step how to get canon eos sdk working with openframeworks / C++ on OSX
get canon sdk working with openframeworks
1. Register as canon developer & download canon sdk
2. EDSDK.framework in canon sdk download doesn't seem to be working. Download the latest EOS Utility from http://usa.canon.com/cusa/support/consumer/eos_slr_camera_systems/eos_digital_slr_cameras/ for you camera. You might not have a previous EOS Utility install or a CD. You can force the installer to install EOS utility:
1/ Copy the updater app from the dmg to your desktop
2/ Right click and choose Show Package Contents…
3/ Delete the file Contents/Resources/Info.datx
4/ After that run the updater app again. You should be able to install the EOS Utility
import Ember from 'ember';
export default Ember.Component.extend({
tagName: 'a',
attributeBindings: ['download', 'href', 'target'],
download: Ember.computed('isPDF', function() {
if (this.get('isPDF')) {
return null;
} else {
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
count: 0,
next: Ember.computed(function() {
return this.incrementProperty('count');
}).volatile()
});
{{bd-back-button action='goBack'}}

Restaurants

Amazing Italian. Romantic atomosphere. Make reservations in advance.

Tacos, tequila, and whiskey. Expect a long wait.

namespace :pgbackup do
desc 'capture pgbackup from production'
task :capture => :environment do
system("heroku pgbackups:capture --expire")
end
desc 'download most recent pgbackup from production and put in ../pgbackups'
task :download => :environment do
timestamp = Time.now.utc.strftime("%Y%m%d%H%M%S")
system("curl -o #{Rails.root.join("pgbackups", "production_#{timestamp}.dump")} --create-dirs `heroku pgbackups:url`")
#this is a very simple, work in progress helper method for stubbing the stripe checkout.js
#this creates a fake server that will generate stripe token as if it's coming from stripe. So we can test credit card input
class FakeStripe < Sinatra::Base
def self.boot
instance = new
Capybara::Server.new(instance).tap { |server| server.boot }
end
get '/checkout.js' do
namespace :pgbackup do
desc 'capture pgbackup from production'
task :capture => :environment do
system("heroku pgbackups:capture --expire")
end
desc 'download most recent pgbackup from production and put in ../pgbackups'
task :download => :environment do
timestamp = Time.now.utc.strftime("%Y%m%d%H%M%S")
system("curl -o #{Rails.root.join("pgbackups", "production_#{timestamp}.dump")} --create-dirs `heroku pgbackups:url`")
### Keybase proof
I hereby claim:
* I am mguterl on github.
* I am mguterl (https://keybase.io/mguterl) on keybase.
* I have a public key whose fingerprint is C674 EE7D 53FF F4FB DE26 81BC 178E 043C AE0D F0C7
To claim this, I am signing this object: