Skip to content

Instantly share code, notes, and snippets.

Avatar
⚒️
Devalator mode

AlphanetEX alphanetEX

⚒️
Devalator mode
View GitHub Profile
@alphanetEX
alphanetEX / practico final
Created Jun 3, 2017
Tabla de enrrutamiento IPv6 CCNA1
View practico final
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 Jun 25, 2017
CRUD SLIM EXAMPLE
View xas-market.php
<?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 Jun 29, 2017
Formulario basico Angular 2 + Bootstrap
View contacto.component.html
<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 Jul 5, 2017
Basic List Produtcs on Angular2
View productos.component.html
<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 Jul 5, 2017
enrutamiento estatico con Angular
View app.routing.ts
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 Jul 5, 2017
Formulario Rractivo Angular 2
View contacto.component.html
<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>
View contacto.component.html
<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 Jul 11, 2017
consulta php slim
View clietes.php
<?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 Jul 12, 2017
Codigo Legacy
View legacy.php
<?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);\
View styles.css
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
@-webkit-keyframes spin {