I hereby claim:
- I am debreczeni on github.
- I am davidd (https://keybase.io/davidd) on keybase.
- I have a public key ASC9WKA5kVQL0IDNxksA0K6woBL5EQaeDvWJfOfMBV0WFAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| require 'zendesk_api' | |
| class Zendesk | |
| attr_accessor :client | |
| def initialize | |
| @client = ZendeskAPI::Client.new do |config| | |
| # Mandatory: | |
| config.url = "<- your-zendesk-url ->" # e.g. https://mydesk.zendesk.com/api/v2 |
| class IBAN | |
| def self.sanitize(account_number) | |
| account_number.gsub(/\D*/, '') | |
| end | |
| def self.giro2iban(giro, country_code = 'HU') | |
| giro = sanitize giro | |
| country_code.upcase! | |
| unless giro.size == 16 || giro.size == 24 |
| # lib/slip13.rb | |
| # Ruby implementation of SLIP-0013 : Authentication using deterministic hierarchy | |
| # https://doc.satoshilabs.com/slips/slip-0013.html | |
| module SLIP13 | |
| class HDNode | |
| def initialize(uri, index = 0) | |
| @uri = uri | |
| @index = index |
| # spec/support/database_cleaner.rb | |
| def restore_clean_db_state! | |
| DatabaseCleaner.clean_with :truncation | |
| # load Rails.root.join('db', 'seeds.rb') | |
| RSpec.configuration.db_is_dirty = false | |
| end | |
| def start_transaction! | |
| DatabaseCleaner.strategy = :transaction |
| # infinity symbol | |
| fill_color(card_color) | |
| if(render_infinity) | |
| fill_color(card_color) | |
| x, y = width / 2, height * (barcode_height_ratio + 0.15) | |
| s = width / 6 | |
| m = s / 2 | |
| n = m/2 | |
| move_to [x, y - n/2] | |
| curve_to [x + s / 4, y - m/2], :bounds => [[x + n / 5 * KAPPA, y - (m/2)*KAPPA], [x + (s / 4) * (1-KAPPA), y - m/2]] |
| // csikozas | |
| #virtuall > tbody > tr.alt2 > td:nth-of-type(2) { background:#B6D8F5; } | |
| // tabla kerekites | |
| #virtuall { border-collapse:separate; } | |
| #virtuall td, #virtuall th { border:1px solid #000000; border-width: 1px 1px 0 0;} | |
| #virtuall tr:first-child th:first-child { -moz-border-radius-topleft: 10px; -webkit-border-top-left-radius: 10px; border-top-left-radius: 10px; } | |
| #virtuall tr:first-child th:last-child { -moz-border-radius-topright: 10px; -webkit-border-top-right-radius: 10px; border-top-right-radius: 10px; } | |
| #virtuall tr:last-child td:first-child { -moz-border-radius-bottomleft: 10px; -webkit-border-bottom-left-radius: 10px; border-bottom-left-radius: 10px; } | |
| #virtuall tr:last-child td:last-child { -moz-border-radius-bottomright: 10px; -webkit-border-bottom-right-radius: 10px; border-bottom-right-radius: 10px; } |
| #!/usr/bin/env ruby | |
| require 'mechanize' | |
| # require 'awesome_print' | |
| # require 'pry-debugger' | |
| class TwentyNiner | |
| def initialize | |
| @index_page_url = 'http://apro.bikemag.hu/browse/mountain-bike/mtb-kerekpar/' | |
| @wheel_size = /29/ |
| #!/bin/bash | |
| #set -x | |
| # Shows you the largest objects in your repo's pack file. | |
| # Written for osx. | |
| # | |
| # @see http://stubbisms.wordpress.com/2009/07/10/git-script-to-show-largest-pack-objects-and-trim-your-waist-line/ | |
| # @author Antony Stubbs | |
| # set the internal field spereator to line break, so that we can iterate easily over the verify-pack output |
| #!/bin/bash | |
| #set -x | |
| # Shows you the largest objects in your repo's pack file. | |
| # Written for osx. | |
| # | |
| # @see http://stubbisms.wordpress.com/2009/07/10/git-script-to-show-largest-pack-objects-and-trim-your-waist-line/ | |
| # @author Antony Stubbs |