Skip to content

Instantly share code, notes, and snippets.

View edinsoncs's full-sized avatar
🤖
Working from home

Edinson CS edinsoncs

🤖
Working from home
View GitHub Profile
<?php
//Edinson Carranza Saldaña
class CajaAhorro {
//Set attributes
public $titular = 'Edinson Carranza';
public $saldo = '35000';
public $interes = 'Developer';
@edinsoncs
edinsoncs / ComandosSymfony
Created November 7, 2017 19:47 — forked from pyjavo/ComandosSymfony
Symfony: Comandos comunes en consola
Conocer Version de Symfony instalada
php app/console --version
---- Creando Proyecto Nuevo En Symfony----
Crear una carpeta
mkdir CarpetaNueva
------------------ Composer ------------------
<!DOCTYPE html>
<html>
<head>
<title>Mi primera galeria</title>
<style type="text/css">
body{font: normal normal 12px/12px Verdana; background: #ddd; }
body > div{ width: 950px; margin: auto; text-align: center; padding: 20px 10px; background: white; }
div div{ background: #DDD; border: 1px solid purple; color: purple; display: inline-block; padding: 10px 15px; margin-right: 10px; }
h1{ font: italic bold 50px/52px Georgia; margin: 0 0 10px 0; color: fuchsia; text-align: center; border-bottom: 2px solid fuchsia; padding-bottom: 5px; }
img{ height: 170px; display: block; margin: auto; border: 2px solid #999; padding: 6px; background: white; border-radius: 4px; opacity: 0.85; transition: all 0.2s linear 0s; }
@edinsoncs
edinsoncs / pagination.js
Created March 31, 2017 05:28 — forked from keon/pagination.js
javascript pagination algorithm
var pagenation = function(current, total){
var list = [];
var pageLimit = 5;
var upperLimit, lowerLimit;
var currentPage = lowerLimit = upperLimit = Math.min(current, total);
for (var b = 1; b < pageLimit && b < total;) {
if (lowerLimit > 1 ) {
lowerLimit--; b++;
}
<html lang="es">
<script>
var a = Number(prompt('Ingrese lado A'));
var b = Number(prompt('Ingrese lado B'));
var c = Number(prompt('Ingrese lado C'));
var response = '';
"use strict"
document.write('To javascript pro');
document.write('<br />');
let n = 'edinson',
s = 'carranza';
let body = document.querySelectorAll('body');
let getNameFull = (name, surname) => {
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
<title>Facebook Components 2</title>
<style>
#main {
background: #dedede;
width: 20%;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css" />
<title>Facebook Like - React</title>
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<style>
var typeEnconding = function() {
this.charset = document.inputEncoding;
this.iqual = 'UTF-8';
}
var newE = new typeEnconding();
function scan(ch) {
if (ch.charset == ch.iqual) {
accept(ch);
} else {
//Core Dom
//Obtenemos el doctype de nuestro HTML
const d = document.doctype;
//console.info('Muestro el doctype de HTML:');
//console.log(d);
//Obtenemos los elementos de nuestro HTML
const e = document.documentElement;