Business::CPI (Common Payment Interface) é um módulo em Perl que define uma interface padrão para comunicação entre programas feitos em Perl e intermediários financeiros (que chamamos no CPI de gateways).
This file contains 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
#lang racket | |
(require slideshow) | |
(set-page-numbers-visible! #f) | |
(define (build-booklet images) | |
(unless (null? images) | |
(let ([page-left (car images)] | |
[page-right (cadr images)] | |
) | |
This file contains 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
<?php | |
echo slug('João Batista Neto'); //joao-batista-neto |
This file contains 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
/** | |
* ECMAScript 5 implementation of Python's range function. | |
* @see {@link http://docs.python.org/release/1.5.1p1/tut/range.html} | |
* @param {Number} start | |
* @param {Number} end | |
* @param {Number} step | |
* @param {Boolean} includeEndpoint | |
* @return {Array} | |
*/ | |
Object.defineProperty(Array, "range", { |
This file contains 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
''' | |
**************************************************************************************** | |
Building a XML Tree as Easy as ABC in Python | |
This implementation requires lxml | |
Sample: | |
print etree.tostring(xmlbuilder("main", unique=True, | |
produtos=dict(produto=dict(codigo="UFC153", | |
descricao="Cueca Velha", |
This file contains 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
test: | |
clear | |
nosetests --with-coverage --cover-package name_utils test_name_utils.py | |
clean: | |
find -regex '.*\.pyc' -exec rm {} \; | |
find -regex '.*~' -exec rm {} \; | |
.PHONY: test clean |
This file contains 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
<?php //Run as command line. Input file as first argument. | |
const G_FOO = 'aeiou'; //Googlon special letters | |
const G_INV = 'z'; //Preposition invalidator | |
const G_PREP = 3; //Preposition size | |
const G_VERB = 8; //Verb size | |
const G_ORDER = 'qnbczxjtklmvhrwfsdgp'; //Letter ordering | |
const G_NUM_MOD = 4; //Pretty number divisor | |
const G_NUM_MAX = 526593; //Pretty number minimum | |
$textB = explode(' ', file_get_contents($argv[1])); |