Skip to content

Instantly share code, notes, and snippets.

Pedro Padron ppadron

Block or report user

Report or block ppadron

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:2d40ccd7a3349366dd8b
it 'should not consider as a missing attribute a value that evaluates to false' do
subject.params do
requires :first
optional :false
end '/declared' do
error!('expected false', 400) if declared(params, include_missing: false)[:false] != false
View free_email_provider_domains.txt
ppadron / gist:7095522
Last active Dec 26, 2015
"A serious limitation of the inheritance feature is that indexes (including unique constraints) and foreign key constraints only apply to single tables, not to their inheritance children. This is true on both the referencing and referenced sides of a foreign key constraint."…
View gist:7095522
id serial primary key,
name text
CREATE TABLE scientists (
university text
) INHERITS (people);
View gist:3784276
require_once 'php-webdriver/lib/WebDriver/ClassLoader.php';
$driver = new WebDriver("http://localhost:4444/wd/hub");
$session = $driver->session('chrome');
// $session->window('current')->postSize(array('width' => 1024, 'height' => 4*1024));
View gist:1148255
< HTTP/1.1 200 OK
< Server: nginx/0.8.54
< Date: Fri, 15 Jul 2011 10:20:35 GMT
< Content-Type: application/json
< Transfer-Encoding: chunked
< Connection: keep-alive
"username": "minhaempresa",
"emailAddress": "",
View gist:1148208
"username": "minhaempresa",
"emailAddress": "",
"apiKey": "0e4fe7b1c0",
"rateLimit": {
"max": 10000,
"reset": 1313389829,
"current": 11
View gist:1138941
require_once 'Akna.php';
$usuario = "";
$senha = "minhasenha";
$akna = new Akna($usuario, $senha);
$contacts = $akna->emailMarketing->contacts;
$detalhes = array(
View gist:1138921
<emkt trans=”11.10″>
<nome>Lista de Contatos Importada via FTP</nome>
<nome col=”0″/>
<email col=”1″/>
<empresa col=”3″/>
View gist:1138919
<?xml version=”1.0″ encoding=”UTF-8″?>
<FUNC TRANS=”" KEY=”0dc001e4ca76574defca18cfbbfd”>
<RETURN ID=”11″>XML em formato inválido Error: Variável do XML está sem conteúdo ou não foi informada.</RETURN>
View gist:1138918
<emkt trans="11.05">
<nome>Minha Lista de Contatos</nome>
<nome>John Doe</nome>
You can’t perform that action at this time.