Skip to content

Instantly share code, notes, and snippets.

View SergioGeeK7's full-sized avatar
🏠
Working from home

Sergio A. SergioGeeK7

🏠
Working from home
View GitHub Profile
@SergioGeeK7
SergioGeeK7 / config.json
Last active August 29, 2015 13:56
sublime text configuracion
{
"font_face": "PragmataPro",
"font_size": 14.0,
"highlight_line": true,
"ignored_packages":
[
"Vintage"
],
"theme": "Soda Dark 3.sublime-theme",
"soda_folder_icons": true,
@SergioGeeK7
SergioGeeK7 / lalala.sql
Created March 9, 2014 21:46
Problem SQL sa
alter authorization on database::Facturacion to sa
public void main (String args[]){
int z [] = {1,2,3,4};
ArrayList b = new ArrayList();
List <Integer> a= new ArrayList<>();
ArrayList <String> r = new ArrayList<>();
print(new int []{1,2,3});
from p in context.Periods
join f in context.Facts
on new {
id = p.periodid,
p.otherid
} equals new {
f.id,
f.otherid
} into fg
from fgi in fg.DefaultIfEmpty()
@SergioGeeK7
SergioGeeK7 / lalaa.php
Created June 14, 2013 01:41
My Firts Gits
<?php
$conexion=mysql_connetc("localhost","root","");
mysql_selected_db("mm",$conexion);
// yeah this connet whit data base
@SergioGeeK7
SergioGeeK7 / Gits.php
Created June 14, 2013 01:42
My second gits
<?php
echo "hola ";
?>
function throttle( fn, time ) { var t = 0; return function() { var args = arguments, ctx = this; clearTimeout(t); t = setTimeout( function() { fn.apply( ctx, args ); }, time ); }; }
function throttle( fn, time ) {
var t = 0;
return function() {
var args = arguments, ctx = this;
clearTimeout(t);
t = setTimeout( function() {
fn.apply( ctx, args );
}, time );
};
@SergioGeeK7
SergioGeeK7 / new_gist_file
Created September 27, 2013 22:16
From http://www.emenia.es/metodo-on-de-jquery-tutorial/ Jquery On Por lo que la forma correcta de utilizar on(). (y por supuesto off().) según jQuery es asi:
$(document).on('evento', '#elemento', (function(e) { // tu código });