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
import urllib2 | |
from bs4 import BeautifulSoup | |
e = urllib2.urlopen("http://es.wikipedia.org/wiki/Paraguay").read() | |
soup = BeautifulSoup(e, 'html.parser') | |
# Ejemplo de como imprimir todo | |
# print soup.prettify() |
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
package test; | |
import java.util.Map; | |
import java.util.function.Function; | |
import java.util.stream.Collectors; | |
public class TestCounter { | |
public static void main(String[] args) { |
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
export default class DigitGenerator { | |
getDigitoVerificadorBase11 = (ruc) => { | |
return this.getDigitoVerificador(ruc, 11); | |
} | |
getDigitoVerificador = (ruc, base) => { | |
var k = 2; |
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
@ContextConfiguration(loader = AnnotationConfigContextLoader.class) | |
public class RegisterServicesTest extends BaseTest { | |
@Configuration | |
static class ContextConfiguration extends BaseTestConfiguration { | |
@Bean | |
public ServiceDefinitionRegister serviceDefinitionRegister() { | |
return new ServiceDefinitionRegister(); |
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
<datasource jta="true" jndi-name="java:jboss/datasources/CopacoBillingDS" pool-name="CopacoBillingDS" enabled="true" use-ccm="true"> | |
<connection-url>jdbc:informix-sqli://10.13.200.41:9088/copaco_prueba01:informixserver=copacodb</connection-url> | |
<driver>informix-jdbc</driver> | |
<security> | |
<user-name>USER</user-name> | |
<password>PASS</password> | |
</security> | |
</datasource> |
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
package test; | |
import java.sql.Connection; | |
import org.flywaydb.core.api.MigrationInfo; | |
import org.flywaydb.core.api.callback.FlywayCallback; | |
public class AuditCallback implements FlywayCallback { | |
@Override |
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
#!bin/bash | |
#set -x | |
for i in $(find $1 -type d -maxdepth 1); | |
do | |
NAME=`basename $i | sed -e 's/[a-z]*_//'`; | |
# Excluimos la carpeta principal | |
if [ "$NAME" == "repos" ] | |
then | |
continue # Skip rest of this particular loop iteration. |
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
FROM postgres:9.4 | |
MAINTAINER Arturo Volpe <arturovolpe@gmail.com> | |
ENV DB_NAME test | |
ENV DB_USER admin | |
ENV DB_PASS password | |
RUN apt-get update && apt-get install -y wget && wget --no-check-certificate --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - | |
RUN sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main" >> /etc/apt/sources.list.d/postgresql.list' | |
RUN apt-get update && apt-get install -y postgresql-9.3-postgis-2.1 -f | |
ADD setup-database.sh /docker-entrypoint-initdb.d/ # this scripts creates a database, is optional |
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
using System; | |
using TouchScript.Events; | |
using TouchScript.Gestures; | |
using TouchScript.Gestures.Simple; | |
using UnityEngine; | |
public class CameraGestures : MonoBehaviour { | |
public float Speed = 10f; | |
public float PanSpeed = 15f; |
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
export class MockLoading { | |
public visible: boolean; | |
constructor(props: any) { | |
Object.assign(this, props); | |
this.visible = false; | |
} | |
present() { | |
this.visible = true; |