Skip to content

Instantly share code, notes, and snippets.

View royopa's full-sized avatar

Rodrigo Prado royopa

View GitHub Profile
/*
TITLE: CODE GRABBER FOR HT6P20B ENCODER
CREATED BY: AFONSO CELSO TURCATO
DATE: 14/JAN/2014
E-MAIL: acturcato (at) gmail.com
LICENSE: GPL
REV.: 00
DESCRIÇÃO:
http://acturcato.wordpress.com/2014/01/14/clonagem-de-controle-remoto-rf-learning-code-ht6p20b-com-arduino/
@royopa
royopa / run.vbs
Created June 6, 2016 13:16 — forked from terrancesnyder/run.vbs
VBScript + Batch to run windows in background
================ run.vbs ================
REM 0 = hide window, 1 = show window (useful for debugging)
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run """" & "run.bat" & """" & sargs, 0, False
Set WshShell = Nothing
================ run.bat ================
REM Batch script to start VirtualBox instance of ReviewBoard in headless mode
<?php
header('Content-Type: text/html; charset=utf-8');
//https://wiki.php.net/rfc/generators#specification
require '../vendor/autoload.php';
/*
#Specification
<?php
header('Content-Type: text/html; charset=utf-8');
#https://wiki.php.net/rfc/generators
require '../vendor/autoload.php';
/*
Os Generators fornecem uma maneira fácil, livre de clichês para
implementar iterators.
@royopa
royopa / uconverter_getAvailable_wrongparam_001.phpt
Created August 6, 2015 11:19
Test - uconverter_getAvailable_wrongparam_001.phpt
--TEST--
Check the function UConverter::getAvailable with parameter wrong
--SKIPIF--
<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
--FILE--
<?php UConverter::getAvailable("This is an ascii string"); ?>
--EXPECTF--
Warning: UConverter::getAvailable() expects exactly 0 parameters, 1 given in %s on line %d
@royopa
royopa / language_generators.patch
Last active August 29, 2015 14:26
New translation language/generators.xml - Rodrigo Prado de Jesus <[email protected]>
Index: language/generators.xml
===================================================================
--- language/generators.xml (revision 0)
+++ language/generators.xml (working copy)
@@ -0,0 +1,488 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- EN-Revision: 330587 Maintainer: royopa Status: ready --><!-- CREDITS: royopa -->
+<chapter xml:id="language.generators" xmlns="http://docbook.org/ns/docbook">
+ <title>Generators</title>
+
@royopa
royopa / crawler-zce.py
Created July 21, 2015 00:43
Crawler ZCE Yellow Pages
# -*- coding: utf-8 -*-
import requests
def get_url(url):
# Get the page
r = requests.get(url)
if r.status_code == 404:
print('Not found ', url)
imports:
- { resource: parameters.yml }
- { resource: security.yml }
- { resource: services.yml }
# Put parameters here that don't need to change on each machine where the app is deployed
# http://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
parameters:
locale: pt_BR

{ "title" : "O full-text search do Postgres é bom o suficiente!", "author":"Royopa", "date":"06-07-2015", "tag":"database, search", "slug" : "o-full-text-search-do-postgres-e-bom-o-suficiente", "category":"Database" }

Tradução do artigo Postgres full-text search is Good Enough!, de Rach Belaid.