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 / 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 });
@SergioGeeK7
SergioGeeK7 / new_gist_file
Created November 7, 2013 15:18
configuracion open in browser
{
"/opt/lampp/htdocs":{
"url_testing":"localhost",
"url_production":"http://productiontld2"
}
}
import sublime, sublime_plugin
# import webbrowser
# import os
import subprocess
class RunInBrowserCommand(sublime_plugin.TextCommand):
def run(self, edit):
url = self.view.file_name()
print "[i] filename: " + url
@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,