This file contains hidden or 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
# reemplaza ";" y "a" por "," de in.txt y crea out.txt | |
tr ';a' ',' <in.txt >out.txt | |
# Las mayusculas a minusculas | |
tr 'A-Z' 'a-z' <in.txt >out.txt |
This file contains hidden or 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
" en modo de comandos | |
gg=G |
This file contains hidden or 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
git log –pretty=format: –name-only –since=”4 oct 2011 09:00″ | sort | uniq |
This file contains hidden or 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
# ---------------------------------------------------------------------------- | |
# virtualenv | |
# ---------------------------------------------------------------------------- | |
#source /usr/local/bin/virtualenvwrapper.sh | |
source /usr/local/bin/virtualenvwrapper_lazy.sh | |
# ---------------------------------------------------------------------------- | |
# Directorios | |
# ---------------------------------------------------------------------------- | |
alias l='ls' |
This file contains hidden or 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
var html = '<p>a</p>'; | |
var jade = 'p a'; | |
// si piensas que | |
if (jade.length < html.length) { | |
console.log('bien!!'); | |
} | |
// si crees que es lo contrario | |
else { |
This file contains hidden or 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 getValues() { | |
var values = {}; | |
$(':input').each(function() { | |
var el = $(this); | |
if (this.type === 'checkbox') { | |
if (el.is(':checked')) { | |
values[this.name] = true; | |
} | |
} |
This file contains hidden or 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
var jbuild = require('jbuild'); | |
var express = require('express'); | |
var jade = require('jade'); | |
var stylus = require('stylus'); | |
var nib = require('nib'); | |
var handler; | |
function server(config) { | |
handler = require('./config.js'); |
This file contains hidden or 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
var chokidar = require('chokidar'); | |
var handler = require('./handler.js'); | |
var cc = require('jbuild'); | |
var watcher = chokidar.watch('file or dir', {ignored: /^\./, persistent: true}); | |
var c = new cc.Compiler(); | |
function build(path) { |
This file contains hidden or 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
*.py[cod] | |
# C extensions | |
*.so | |
# Packages | |
*.egg | |
*.egg-info | |
dist | |
build |
This file contains hidden or 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
#!/bin/sh | |
# Templates | |
JADE_FILES=$(find templates/ -name *.jade); | |
# configs | |
CONFIG_JADE=$(cat config/jade.js); | |
# stylus building |