This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
height: 0; overflow: hidden; padding-top: 20px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$url = 'url'; | |
$proxyauth = 'user:pass'; | |
$proxy = 'proxy.server.es'; | |
$proxyPort = '8080'; | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL, $url); | |
//proxy suport |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"es": "lunes", | |
"en": "monday" | |
}, | |
{ | |
"es": "martes", | |
"en": "tuesday" | |
} | |
, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function new_nav_menu_items($output) { | |
$idstr = preg_match_all('/<li class="page_item page-item-(\d+)/', $output, $matches); | |
foreach($matches[1] as $mid){ | |
$slug = basename(get_permalink($mid)); | |
$output = preg_replace('/page-item-'.$mid.'(| current_page_item)">/', 'page-item-'.$mid.' page-item-'.$slug.'">', $output, 1); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"C:\Program Files\Sublime Text 2\sublime_text.exe" --wait --new-window "%1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import subprocess | |
archivos = subprocess.check_output(["git", "diff", "HEAD^", "HEAD", "--name-only"]) | |
try: | |
print subprocess.check_output("grep -nHe console " + archivos.replace('\n', ' '), stderr=subprocess.STDOUT, shell=True) | |
except Exception, e: | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo mount -t vboxsf E_DRIVE /home/marcoftheknight |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Alias node | |
alias node="D:\node.exe" | |
# Alias python | |
alias python="C:/Python27/python.exe" | |
# Alias a la carpeta de programas python | |
alias fl="c:/Users/eponce/python" | |
# Comandos chachi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"menu" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function(a){return!/[0-9]+/g.test(a)} |