This file contains hidden or 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; |
This file contains hidden or 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 hidden or 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
| {... | |
| "scripts": { | |
| "ng": "ng", | |
| "start": "ng serve --proxy-config proxy.conf.json", | |
| "clean": "rm -rf dist", | |
| "build-prod": "yarn install && ng build -prod", | |
| "build-dev": "yarn install && ng build -dev", | |
| "test": "ng test", | |
| "lint": "ng lint", | |
| "e2e": "ng e2e" |
This file contains hidden or 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 React, { Component } from 'react'; | |
| class EmbeddedGist extends Component { | |
| constructor(props) { | |
| super(props); | |
| this.gist = props.gist; | |
| this.file = props.file; | |
| this.stylesheetAdded = false; | |
| this.state = { |
This file contains hidden or 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 hidden or 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 hidden or 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 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # Dependencias: | |
| # - beautifulsoup4 | |
| import sys | |
| import time | |
| import urllib | |
| import urllib.request |
This file contains hidden or 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() |