Skip to content

Instantly share code, notes, and snippets.

@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 / vb-nombres-sql.vb
Created October 16, 2014 15:37
VB.net: Condicion para cortar nombres para sql
Public Shared Function Condiciones(ByRef NombresJuntos As String) As String
Dim Condicion As String = ""
Dim Variable As String = ""
Dim Nombre As String = NombresJuntos
Dim i As Integer
Dim Contador As Integer = 0
NombresJuntos = NombresJuntos + " "
@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>
@Klerith
Klerith / Sublime.Scopes.txt
Last active May 31, 2017 22:38
Sublime: Sublime Text Scopes.txt
ActionScript: source.actionscript.2
AppleScript: source.applescript
ASP: source.asp
Batch FIle: source.dosbatch
C#: source.cs
C++: source.c++
Clojure: source.clojure
CoffeeScript: source.coffee
CSS: source.css
D: source.d
@Klerith
Klerith / Save_Data_From_Angular_Post.php
Last active May 31, 2017 22:37
PHP: save data from angular post
<?php
session_start();
include '../../classes/class.Database.php';
include '../../classes/class.Deduccion.php';
echo $Data;
$Deduccion = new Deduccion();
@Klerith
Klerith / open_new_tab.js
Last active May 14, 2022 22:51
JavaScript: Open in new tab JavaScript
function OpenInNewTab(url) {
var win = window.open(url, '_blank');
win.focus();
}
@Klerith
Klerith / .gitconfig
Last active May 31, 2017 22:33 — forked from orj/.gitconfig
GIT: Using p4merge as Git mergetool on Mac OS X.
[merge]
keepBackup = false
tool = custom
[mergetool "custom"]
cmd = /Applications/p4merge.app/Contents/Resources/launchp4merge "$PWD/$BASE" "$PWD/$REMOTE" "$PWD/$LOCAL" "$PWD/$MERGED"
keepTemporaries = false
trustExitCode = false
keepBackup = false