Skip to content

Instantly share code, notes, and snippets.

View dwlince's full-sized avatar

Jose Antonio Ortiz Corona dwlince

View GitHub Profile
@dwlince
dwlince / .php
Last active May 23, 2019 15:02
Yii2 posible error
Fatal error: Cannot use 'Object' as class name as it is reserved in C:\xampp\htdocs\sii_\vendor\yiisoft\yii2\base\Object.php on line 77
1.- El archivo /yii2/base/Object
<?php
namespace yii\base;
use Yii;
class Object extends BaseObject
{
}
@dwlince
dwlince / .sql
Last active May 20, 2019 16:18
Disparadores (Triggers) En PostgreSQL
CREATE TABLE emp (
empname text NOT NULL,
salary integer
);
CREATE TABLE emp_audit(
operation char(1) NOT NULL,
stamp timestamp NOT NULL,
userid text NOT NULL,
empname text NOT NULL,
@dwlince
dwlince / .shell
Created May 21, 2019 14:50
Comprimir y descomprimir .gz, .tar.gz, y .zip por linea de comandos en Linux
Archivos .tar.gz:
Comprimir: tar -czvf empaquetado.tar.gz /carpeta/a/empaquetar/
Descomprimir: tar -xzvf archivo.tar.gz
Archivos .tar:
Empaquetar: tar -cvf paquete.tar /dir/a/comprimir/
Desempaquetar: tar -xvf paquete.tar
Archivos .gz:
Comprimir: gzip -9 index.php
@dwlince
dwlince / .js
Last active July 10, 2019 14:05
js inicialización de Objeto
var _class_obj = {
variable:'asignar valor default',
init: function(args) {
this.valueInit();
this.cacheDom();
this.initEvento();
this.bindEvento();
},
valueInit: function() {
this.variable = valor;
@dwlince
dwlince / .html
Last active June 28, 2024 18:22 — forked from joseaoc007/.html
htlm_inicializar_pagina
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
</head>