git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
What do you like/dislike about this pice of code? | |
<?php | |
class CompanyFinder { | |
public const ENDPOINT = 'https://some.api'; | |
public function getCompanyName(string $identification): ?string | |
{ |
require 'uri' | |
require 'net/http' | |
require 'json' | |
require 'test/unit' | |
MAX_LIMIT_ITEMS = 50 | |
FIRST_PAGE_URL = "https://api.stagingeb.com/v1/properties?page=1&limit=#{MAX_LIMIT_ITEMS}" | |
API_KEY = 'l7u502p8v46ba3ppgvj5y2aad50lb9' |
Laravel integration tests and multiple check boxes | |
Some tips for checking and unchecking a list of multiple check boxes in a form during your Laravel 5.1 integration testing. | |
<input name="multi_cb[]" type="checkbox" value="1"> | |
<input name="multi_cb[]" type="checkbox" value="2"> | |
<input name="multi_cb[]" type="checkbox" value="3"> | |
If you have multiple check boxes in your HTML using an array-style name, you can interact with them in 2 different ways. | |
If you only have to check certain checkboxes, you can submit the form with an array of the post values. |
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic'; | |
import { | |
Component, | |
NgModule, | |
Input, | |
Output, | |
EventEmitter | |
} from '@angular/core'; | |
import { |
// Practice Activity (Custom Directives) | |
// Sección 6, Clase 60 | |
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic'; | |
import { | |
Component, | |
Directive, | |
HostListener, | |
HostBinding, | |
NgModule, |
Instlar composer por comandos con Linux y Mac | |
curl -sS https://getcomposer.org/installer | php | |
Mover a global | |
sudo mv ~/composer.phar /usr/local/bin/composer | |
Crear proyecto con composer | |
composer create-project laravel/laravel blog |
<style> | |
/*Circle Style*/ | |
.circle { | |
width: 100%; | |
padding: 10%; | |
background: white; | |
border-radius: 50px; | |
} | |
.circle p { |
#!/bin/bash | |
# Install Node Repository | |
curl --silent --location https://deb.nodesource.com/setup_0.12 | sudo bash - | |
# Update dependencies | |
sudo apt-get update | |
# Install Node.js | |
sudo apt-get install nodejs |
- Crea un query para imprimir todos los usuarios de tipo “user”. | |
$result = \DB::table('users') | |
->where('type', 'user') | |
->get(); | |
- Crea un query para imprimir sólo el nombre y el email del usuario ordenados alfabéticamente. | |
$result = \DB::table('users') | |
->select('first_name', 'email') | |
->orderBy('first_name', 'ASC') |