Skip to content

Instantly share code, notes, and snippets.

View LTroya's full-sized avatar

Luis Troya LTroya

  • Santiago, Chile
View GitHub Profile
@LTroya
LTroya / vue-vuex-items-modal-experiment.html
Last active June 25, 2017 02:19
Experiment using vue and vuex to add subitems from a modal in a non-parent-child relationship
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Vuex Experiment</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
</head>
@LTroya
LTroya / Example.html
Created May 26, 2017 02:47
Bootstrap progress bar height not matching with others
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery.min.js"></script>
<link href="http://getbootstrap.com/dist/css/bootstrap.css" rel="stylesheet" type="text/css"/>
<script src="http://getbootstrap.com/dist/js/bootstrap.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
<style>
@LTroya
LTroya / readme.md
Created April 11, 2017 19:36 — forked from nasrulhazim/readme.md
Using Middleware to Check Account Activation and Resend Activation E-mail
@LTroya
LTroya / jenkins_deploy.sh
Last active August 27, 2017 15:45
Instalacion de php y script para hacer deploy con Jenkins
## JENKINS DEPLOY ##
# Install composer dependencies
composer install
# Create medical-app-api directory
ssh root@VM_IP_1 "mkdir -p ~/nginx/app"
ssh root@VM_IP_2 "mkdir -p ~/nginx/app"
# Avoid some issues when copying .git folder
sudo sysctl fs.inotify.max_user_watches=524288
sudo sysctl -p --system
// OR
npm install --save @ngtools/webpack@1.2.4
@LTroya
LTroya / Install_IntelliJ
Created February 4, 2017 01:07
Install Webstorm and Template for create a launcher icon in ubuntu
## Dependencies ##
sudo apt-get install icedtea-8-plugin openjdk-8-jre
## INSTALL Source:: http://tutorialforlinux.com/2015/06/04/how-to-quickstart-with-webstorm-ide-on-ubuntu-15-04-vivid-32-64bit-gnu-linux/ ##
tar xvzf ~/Downloads/WebStorm*.tar.gz -C /tmp/
sudo chown -R root:root /tmp/WebStorm*
sudo mv /tmp/WebStorm* /opt/WebStorm
sudo ln -s /opt/WebStorm/bin/webstorm.sh /usr/local/bin/webstorm
webstorm
@LTroya
LTroya / knipsterTest.md
Created December 5, 2016 22:12
test for knipster.com

#Backend Developer Test Task Introduction

With this test we want to get an idea of your proficiency in backend related web development technologies. We will give you a task specification below and you are free to use whatever PHP libraries, frameworks etc. you consider as useful to implement it together with SQL database (preferably MySQL or SQLite). You shall provide us with a hosted git repository of your resulting work including a readme file to describe the required steps to deploy it locally.

Task

Implement a REST API that shall be used internally, so no authentication is needed. Format shall be JSON. No front­end or graphical interface is needed.

We need the following functionality/endpoints:

  • Add new customer (gender, first name, last name, country, email)
// Registro
@Override
public void onValidationSucceeded() {
// Toast.makeText(SignUpActivty.this, "Todas las validaciones fueron resueltas", Toast.LENGTH_SHORT).show();
SignUp signUp = new SignUp(
inputName.getText().toString(),
inputJob.getText().toString(),
inputEmail.getText().toString(),
inputUsername.getText().toString(),
Utilities.md5(inputPassword.getText().toString()),
[{"name":"users","color":"Red","position":{"x":100,"y":100},"increment":true,"timestamp":true,"softdelete":false,"column":[{"name":"name","type":"text","length":"","defaultvalue":"","enumvalue":"","ai":false,"pk":false,"nu":false,"ui":false,"in":false,"un":false,"fillable":true,"guarded":false,"visible":false,"hidden":false,"colid":"c23","order":0},{"name":"age","type":"integer","length":"","defaultvalue":"","enumvalue":"","ai":false,"pk":false,"nu":false,"ui":false,"in":false,"un":false,"fillable":true,"guarded":false,"visible":false,"hidden":false,"colid":"c31","order":1},{"name":"email","type":"text","length":"","defaultvalue":"","enumvalue":"","ai":false,"pk":false,"nu":false,"ui":false,"in":true,"un":false,"fillable":false,"guarded":false,"visible":false,"hidden":false,"colid":"c42","order":2}],"relation":[],"seeding":[]}]
@LTroya
LTroya / Install Composer using MAMP's PHP.md
Created September 9, 2016 04:52 — forked from irazasyed/Install Composer using MAMP's PHP.md
Instructions on how to change preinstalled Mac OS X PHP to MAMP's PHP Installation and then install Composer Package Management

Change default Mac OS X PHP to MAMP's PHP Installation and Install Composer Package Management


Instructions to Change PHP Installation


First, Lets find out what version of PHP we're running (To find out if it's the default version).

To do that, Within the terminal, Fire this command:

which php