Skip to content

Instantly share code, notes, and snippets.

View hugoangeles0810's full-sized avatar
🏠
Working from home

Hugo Angeles Chavez hugoangeles0810

🏠
Working from home
  • Lima
View GitHub Profile
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConfig {
applicationId "com.hugoangeles.android.tipcalc"
minSdkVersion 16
targetSdkVersion 23
---
ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
APP_ENV=local
APP_DEBUG=true
APP_KEY=base64:zPrk2t0FcN4yBiEdy6ZamOTdrGQWLL7rCUaAWhoYIBA=
APP_URL=http://localhost
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=treca_db
DB_USERNAME=homestead
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.dev2012.noticiasunp.util;
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package controller;
import entity.Empleados;
import java.text.ParseException;
import java.text.SimpleDateFormat;
@hugoangeles0810
hugoangeles0810 / SlidingTabLayout
Created April 18, 2015 22:28
Align-Center SlidingTabLayout
/*
* Copyright (C) 2013 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
class Main {
public static void main(String[] args) throws java.io.IOException{
java.io.BufferedReader input = new java.io.BufferedReader(new java.io.InputStreamReader(System.in));
java.util.ArrayList numeros = new java.util.ArrayList();
//lectura
int P = Integer.parseInt(input.readLine());
//variables auxiliares