Skip to content

Instantly share code, notes, and snippets.

View alphanetEX's full-sized avatar
⚒️
Devalator mode

AlphanetEX alphanetEX

⚒️
Devalator mode
View GitHub Profile
@alphanetEX
alphanetEX / practico final
Created June 3, 2017 19:28
Tabla de enrrutamiento IPv6 CCNA1
Tabla practico final ipv6
direccion ISP 2015:abc:bebe::/48
XAS-CENTRAL-SV
2015:abc:bebe:1::1/64 serial0/0/0 // salida panama
2015:abc:bebe:2::1/64 serial0/0/1 // salida guatemala
2015:abc:bebe:3::1/64 serial0/2/0 // salida honduras
2015:abc:bebe:4::1/64 serial0/2/1 // salida nicaragua
@alphanetEX
alphanetEX / xas-market.php
Last active June 25, 2017 19:04
CRUD SLIM EXAMPLE
<?php
require_once 'vendor/autoload.php';
$app = new \Slim\Slim();
$db = new mysqli("localhost", "name_of_user", "name_of_passwd", "name_of_db");
$app->get("/producto", function() use($db, $app) {
// sleep(3);
@alphanetEX
alphanetEX / contacto.component.html
Created June 29, 2017 04:11
Formulario basico Angular 2 + Bootstrap
<div class="col-md-8">
<div class="card " [@carduserprofile]>
<div class="container">
<div class="row">
<div class="col-md-8">
<h2 class="m-b-2">contacto</h2>
@alphanetEX
alphanetEX / productos.component.html
Last active July 5, 2017 03:04
Basic List Produtcs on Angular2
<ul class="cd-gallery">
<li *ngFor="let tienda of tiendas" class="restaurante-item">
<a href="">
<ul class="cd-item-wrapper">
<li class="selected">
<img src="http://localhost/slim/uploads/alphanet_png-01.png" alt="Preview image" *ngIf="tienda.imagen && tienda.imagen !== 'null'" >
</li>
<li class="move-right" data-sale="true" data-price="$22">
</li>
@alphanetEX
alphanetEX / app.routing.ts
Created July 5, 2017 16:31
enrutamiento estatico con Angular
import { ModuleWithProviders } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import {ProductosComponent } from './productos.component';
import { HomeComponent } from './home/home.component';
import { EmpresaComponent} from './empresa/empresa.component';
import { NoticesComponent } from './notices/notices.component';
import { ContactoComponent } from './contacto/contacto.component';
import { NotificationsComponent } from './notifications/notifications.component';
import { RegistrosComponent } from './registros/registros.component';
@alphanetEX
alphanetEX / contacto.component.html
Created July 5, 2017 21:36
Formulario Rractivo Angular 2
<div class="texto-encabezado text-xs-center">
<div class="container">
<h1 class="display-4 wow bounceIn">{{title}}</h1>
<p class="wow bounceIn" data-wow-delay=".3s">{{subtitle}}</p>
</div>
</div>
@alphanetEX
alphanetEX / contacto.component.html
Created July 6, 2017 01:12
Angular2 ++ Validator
<div class="texto-encabezado text-xs-center">
<div class="container">
<h1 class="display-4 wow bounceIn">{{title}}</h1>
<p class="wow bounceIn" data-wow-delay=".3s">{{subtitle}}</p>
</div>
</div>
@alphanetEX
alphanetEX / clietes.php
Created July 11, 2017 16:11
consulta php slim
<?php
use \Psr\Http\Message\ServerRequestInterface as Request;
use \Psr\Http\Message\ResponseInterface as Response;
$app = new \Slim\App;
//Obtener todos los clientes
@alphanetEX
alphanetEX / legacy.php
Last active July 12, 2017 01:49
Codigo Legacy
<?php
$app->get('/producto', function(Request $request, Response $response){
$consulta = "SELECT * FROM productos ORDER BY id_producto DESC;";
try{
$db = new db();
$db = $db->conectar();
$query = $db->query($consulta);\
@alphanetEX
alphanetEX / styles.css
Created July 14, 2017 03:08
CSS Legacy
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
@-webkit-keyframes spin {