Skip to content

Instantly share code, notes, and snippets.

@Klerith
Klerith / TimelineLite.min.js
Created October 9, 2014 03:29
jQuery: TimeLineLite
/*!
* VERSION: 1.13.1
* DATE: 2014-07-22
* UPDATES AND DOCS AT: http://www.greensock.com
*
* @license Copyright (c) 2008-2014, GreenSock. All rights reserved.
* This work is subject to the terms at http://www.greensock.com/terms_of_use.html or for
* Club GreenSock members, the software agreement that was issued with your membership.
*
* @author: Jack Doyle, jack@greensock.com
@Klerith
Klerith / TimelineMax.min.js
Created October 9, 2014 03:29
jQuery: TimeLineMax
/*!
* VERSION: 1.13.1
* DATE: 2014-07-22
* UPDATES AND DOCS AT: http://www.greensock.com
*
* @license Copyright (c) 2008-2014, GreenSock. All rights reserved.
* This work is subject to the terms at http://www.greensock.com/terms_of_use.html or for
* Club GreenSock members, the software agreement that was issued with your membership.
*
* @author: Jack Doyle, jack@greensock.com
@Klerith
Klerith / TweenLite.min.js
Created October 9, 2014 03:29
jQuery: TweenLite
/*!
* VERSION: 1.13.1
* DATE: 2014-07-22
* UPDATES AND DOCS AT: http://www.greensock.com
*
* @license Copyright (c) 2008-2014, GreenSock. All rights reserved.
* This work is subject to the terms at http://www.greensock.com/terms_of_use.html or for
* Club GreenSock members, the software agreement that was issued with your membership.
*
* @author: Jack Doyle, jack@greensock.com
@Klerith
Klerith / TweenMax.min.js
Created October 9, 2014 03:30
jQuery: TweenMax
/*!
* VERSION: 1.13.1
* DATE: 2014-07-19
* UPDATES AND DOCS AT: http://www.greensock.com
*
* Includes all of the following: TweenLite, TweenMax, TimelineLite, TimelineMax, EasePack, CSSPlugin, RoundPropsPlugin, BezierPlugin, AttrPlugin, DirectionalRotationPlugin
*
* @license Copyright (c) 2008-2014, GreenSock. All rights reserved.
* This work is subject to the terms at http://www.greensock.com/terms_of_use.html or for
* Club GreenSock members, the software agreement that was issued with your membership.
@Klerith
Klerith / tap.min.js
Created October 9, 2014 03:54
jQuery: Tap
// Tap
!function(a,b){"use strict";var c,d,e,f="._tap",g="._tapActive",h="tap",i="clientX clientY screenX screenY pageX pageY".split(" "),j={count:0,event:0},k=function(a,c){var d=c.originalEvent,e=b.Event(d);e.type=a;for(var f=0,g=i.length;g>f;f++)e[i[f]]=c[i[f]];return e},l=function(a){if(a.isTrigger)return!1;var c=j.event,d=Math.abs(a.pageX-c.pageX),e=Math.abs(a.pageY-c.pageY),f=Math.max(d,e);return a.timeStamp-c.timeStamp<b.tap.TIME_DELTA&&f<b.tap.POSITION_DELTA&&(!c.touches||1===j.count)&&o.isTracking},m=function(a){if(!e)return!1;var c=Math.abs(a.pageX-e.pageX),d=Math.abs(a.pageY-e.pageY),f=Math.max(c,d);return Math.abs(a.timeStamp-e.timeStamp)<750&&f<b.tap.POSITION_DELTA},n=function(a){if(0===a.type.indexOf("touch")){a.touches=a.originalEvent.changedTouches;for(var b=a.touches[0],c=0,d=i.length;d>c;c++)a[i[c]]=b[i[c]]}a.timeStamp=Date.now?Date.now():+new Date},o={isEnabled:!1,isTracking:!1,enable:function(){o.isEnabled||(o.isEnabled=!0,c=b(a.body).on("touchstart"+f,o.onStart).on("mousedown"+f,o.onStart
@Klerith
Klerith / Init-DataTable.js
Created October 16, 2014 14:22
DataTable: Initialization
$('#dynamic-table').dataTable( {
"aaSorting": [[ 0, "desc" ]],
"oLanguage":{
"infoFiltered": "(filtered from _MAX_ total records)",
"sProcessing": "Procesando...",
"sLengthMenu": "Mostrar _MENU_ registros",
"sZeroRecords": "No se encontraron resultados",
"sEmptyTable": "Ningún dato disponible en esta tabla",
"sInfo": "Mostrando registros del _START_ al _END_ de un total de _TOTAL_ registros",
"sInfoEmpty": "Mostrando registros del 0 al 0 de un total de 0 registros",
@Klerith
Klerith / clear-add-DataTable.js
Created October 16, 2014 14:35
DataTable: Agregar, Limpiar y Agregar
// Crear referencia al DataTable
Tabla = $('#tblResultados').DataTable();
// Limpiar Tabla
Tabla.fnClearTable();
// Agregar un row
Tabla.fnAddData( [
'<span class="red">' + rivm + "</span>",
identidad,
@Klerith
Klerith / Serialize.vb
Last active August 29, 2015 14:08
VB.NET: Serialize a jSon
Class PNLinea
Public periodo As String
Public regimen As String
Public causa As String
Public identidad As String
Public nombres As String
Public area As String
Public numepago As String
Public montopagarmensual As String
@Klerith
Klerith / class.Database.inc
Last active August 29, 2015 14:17
PHP: class.Database.inc
<?
// ======================================================
// Clase: class.Database.php
// Funcion: Se encarga del manejo con la base de datos
// Descripcion: Tiene varias funciones muy útiles para
// el manejo de registros.
//
// Ultima Modificación: 17 de marzo de 2015
// ======================================================
@Klerith
Klerith / Datatable_Structure.html
Created March 23, 2015 14:15
HTML: Datatable structure
<table class="display table table-bordered table-striped" id="tblDatos">
<thead>
<tr>
<th>Rendering engine</th>
<th>Browser</th>
<th>Platform(s)</th>
<th class="hidden-phone">Engine version</th>
<th class="hidden-phone">CSS grade</th>
</tr>
</thead>