Skip to content

Instantly share code, notes, and snippets.

demonio demonio

Block or report user

Report or block demonio

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@demonio
demonio / admin.phtml
Last active Sep 8, 2016
JS para editar cajas con prims
View admin.phtml
<!DOCTYPE html>
<html lang="es">
<head>
<title>Materialize</title>
<link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="/css/materialize.min.css" media="print,screen" rel="stylesheet">
<link href="/css/prism.css" media="print,screen" rel="stylesheet">
<link href="/css/admin.css" media="screen" rel="stylesheet">
<link href="/css/hacks.css" media="screen" rel="stylesheet">
<link href="/css/pantallita.css" media="screen" rel="stylesheet">
@demonio
demonio / dock.css
Last active Jul 21, 2016
DOCK FOR ME WEB, DOCK FOR YOU WEB
View dock.css
/* dock - top */
.dock { text-align: left; }
.dock-container { position: absolute; }
a.dock-item
{
position: absolute;
text-align: center;
}
@demonio
demonio / agenda_console.php
Created Jul 19, 2016
FULLCALENDAR en KumbiaPHP... LOL
View agenda_console.php
<?php
/**
*/
class AgendaConsole
{
/**
*/
public function enviar_correo($params)
{
exec('wget https://iiswebusr:eldrazi@teleasistencia-vh.asispa1.es/agenda/enviar_correo/' . $params['id']);
@demonio
demonio / generate_controller.php
Last active Jul 9, 2016
Generador de controladores, acciones y sus vistas by error.
View generate_controller.php
<?php
/**
*/
class GenerateController extends AdminController
{
public function index()
{
}
@demonio
demonio / bent.css
Last active Jul 12, 2016
Recurso CSS efecto fondo cabecera doblado al borde izquierdo
View bent.css
/*
*/
#body h5.a
{
background: linear-gradient(to right, #fff59d, white);
margin-left: -17px !important;
padding: 5px;
position: relative;
}
#body h5.a span.bent
@demonio
demonio / index.phtml
Last active Jun 1, 2016
Modulo de permisos
View index.phtml
<!--
app/views/admin/permisos.index.phtml
-->
<form method="post">
<div class="actions">
<button class="btn-floating darken-1 orange tooltipped waves-effect waves-light" data-delay="500" data-position="left" data-tooltip="guardar permisos" name="accion" type="submit" value="guardar"><i class="material-icons">save</i></button>
</div>
<div class="mt5 ml5 mr50">
<div class="card row">
<h5 class="col s12 teal-text darken-1 pv10">reglas</h5>
@demonio
demonio / index.phtml
Last active Jun 6, 2016
Sube, instala y desinstala módulos para KumbiaPHP
View index.phtml
<fieldset>
<legend><?=ucfirst($controller_name)?></legend>
<div>
<label>Filter:</label>
<input class="js-filter" data-to=".list li" type="text" />
</div>
<ul>
<?php foreach($modules as $module) :
$filename = str_replace('.zip', '', basename($module) ); ?>
<li>
@demonio
demonio / _.php
Last active Mar 30, 2016
Un debug bar partial para KumbiaPHP
View _.php
<?php
/**
* NAVAJA SUIZA
*/
class _
{
/**
* IMPRIME VARIABLES EN PANTALLA
*/
static function r($x='')
@demonio
demonio / live_filter.js
Last active Mar 15, 2016
Snippet para filtrar filas o elementos ignorando acentos y mayúsculas (con un input.js-filter + data-to a una lista o tabla).
View live_filter.js
$(function()
{
/* INPUT LIVE FILTER */
$('body').on( 'keyup', '.js-filter', function()
{
var item = $(this).data('to');
var search = $(this).val();
$(item).hide();
$(item+":icontains('"+search+"')").show();
@demonio
demonio / kubar.php
Last active Mar 14, 2016
Kubar es una lib que añade una barra personalizable y modular a tu template con info relevante de tu aplicación.
View kubar.php
<?php
/**
*/
class Kubar
{
public static $bar_bg = '#FE4747';
public static $menu_bg = '#00A1CB';
public static $td_border = '1px dotted #EEE';
public static $td_color = 'white';
public static $button_selected = '#FFFC19';
You can’t perform that action at this time.