This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| application: you-app-name-here | |
| version: 1 | |
| runtime: python | |
| api_version: 1 | |
| default_expiration: "30d" | |
| handlers: | |
| - url: /(.*\.(appcache|manifest)) | |
| mime_type: text/cache-manifest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # RSpec 2.0 syntax Cheet Sheet by http://ApproachE.com | |
| # defining spec within a module will automatically pick Player::MovieList as a 'subject' (see below) | |
| module Player | |
| describe MovieList, "with optional description" do | |
| it "is pending example, so that you can write ones quickly" | |
| it "is already working example that we want to suspend from failing temporarily" do | |
| pending("working on another feature that temporarily breaks this one") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class BankAccount < ActiveRecord::Base | |
| # Umsätze von start_date bis end_date abrufen | |
| # * passport_type, passphrase, pin und file kommen in dieser Implementation aus der zugrunde liegenden Tabelle. | |
| # * Wenn passport_type = "PinTan" ist, wird die pin verwendet. | |
| # * Wenn passport_type = "RDHNew" ist, wird die Schlüsseldatei aus filename verwendet und mit der passphrase entschlüsselt. | |
| def get_transactions(start_date, end_date) | |
| HBCIUtils.setParam("client.passport.#{passport_type}.filename", filename) | |
| HBCIUtils.setParam("client.passport.#{passport_type}.init", '1') | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # A simple Ruby method which checks if the current script | |
| # is running as root, and if not, re-invokes itself by | |
| # using the sudo command. | |
| def sudome | |
| if ENV["USER"] != "root" | |
| exec("sudo #{ENV['_']} #{ARGV.join(' ')}") | |
| end | |
| end |
NewerOlder