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
| /* | |
| * L.TileLayer.LocalCache : A tile layer using SQL Storage, if available. | |
| */ | |
| L.TileLayer.LocalCache = L.TileLayer.extend({ | |
| options: { | |
| minZoom: 0, | |
| maxZoom: 18, | |
| tileSize: 256, | |
| subdomains: 'abc', |
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
| client = Savon::Client.new do | |
| # This can be a URL also | |
| wsdl.document = "/Path/to/your.wsdl" | |
| # These are optional, only if your WSDL sucks :) | |
| wsdl.endpoint = "https://your_endpoint" | |
| wsdl.namespace = "http://your_namespace" | |
| certs = Akami::WSSE::Certs.new :cert_file => "/path/to/cert.crt", :private_key_file => "/path/to/private/key.pem", :private_key_password => "password" | |
| wsse.sign_with = Akami::WSSE::Signature.new certs |
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
| package | |
| { | |
| import flash.events.*; | |
| import flash.media.Sound; | |
| import flash.media.SoundChannel; | |
| import flash.media.SoundTransform; | |
| import flash.utils.Timer; | |
| import flash.external.ExternalInterface; | |
| import flash.net.URLRequest; | |
| import flash.display.Sprite; |
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
| desc "Watch the site and regenerate when it changes" | |
| task :watch do | |
| require 'fssm' | |
| puts "Watching for Changes " | |
| FSSM.monitor(File.join(File.dirname(__FILE__), 'content'), '**/*') do | |
| update {|base, relative| rebuild_site(relative)} | |
| delete {|base, relative| rebuild_site(relative)} | |
| create {|base, relative| rebuild_site(relative)} | |
| end | |
| end |
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
| $BANK_PREFIXES = [1, 2, 31, 33, 34, 36, 37, 38, 39, 4, 5, 6, 8] | |
| class String | |
| # converts bank account to numeric format | |
| def to_account | |
| if self.include?('-') | |
| return self.sub(/\-(\d)(\d+)$/, "\\1" << '0' * ((14 - self.length)+1) << "\\2").to_i if ['4','5'].include?(self[0..0]) | |
| return self.sub('-', '0' * ((14 - self.length) + 1)).to_i | |
| end |
NewerOlder