Skip to content

Instantly share code, notes, and snippets.


Josef Chmel Pepan

View GitHub Profile
View csv_handler.rb
# lib/csv_handler.rb
require 'csv'
module CsvHandler
class Generator
def self.perform
file = CSV.generate do |csv|
yield csv
View mitek.rb
conf = YAML.load_file('config/mitek.yml')
Bikelink::Application.config.mitek =[Rails.env])
Pepan /
Created Aug 13, 2013
simple VLT messages - code in coffeescript: sending messages to server and receive responses, both in JSON
$(document).ready ->
tester = $('nav#tester')
if tester.length > 0
tester.find('a').click (event) ->
$('<div/>',{'class': 'query', html: JSON.stringify($(this).data('json'))}).appendTo('div#tester_commands')
dataType: 'json',
url: $(this).attr('href'),
type: $(this).attr('data-method').toUpperCase(),
Pepan / email_api.php
Created Jul 16, 2013
metoda skladajici adresy pro odchozi email
View email_api.php
/** JCH
* @param int $p_bug_id
* @param string $p_notify_type
* @param array $p_extra_user_ids_to_email
* @return array
function email_collect_recipients_02($p_bug_id, $p_notify_type, $p_extra_user_ids_to_email = array()) {
$bug_id = db_prepare_int($p_bug_id);
$recipients = array();
Pepan / command.xml
Created Nov 23, 2012
XML response from GoPay
View command.xml
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="" xmlns:xsd="" xmlns:xsi="">
<createPaymentResponse soapenv:encodingStyle="">
<createPaymentReturn xsi:type="ns1:EPaymentStatus" xmlns:ns1="urn:AxisEPaymentProvider">
<currency xsi:type="soapenc:string" xmlns:soapenc="">CZK</currency>
<encryptedSignature xsi:type="soapenc:string" xmlns:soapenc="">
<orderNumber xsi:type="soapenc:string" xmlns:soapenc="">
You can’t perform that action at this time.