El archivo mejorado y actualizado ahora puede ser visto en https://github.com/gcorreaq/snippets/tree/main/roman-to-decimal-numbers
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
brew update | |
brew install mongodb | |
sudo mongod |
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
python prueba_control_4.py RUT.py |
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
export PS1="\u@\h:\W \$ " |
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/env ruby | |
# Script to watch a directory for any changes to a haml file | |
# and compile it. | |
# | |
# USAGE: ruby haml_watch.rb <directory_to_watch> [output_directory] | |
# | |
# Blake Smith / http://blakesmith.github.com/2010/09/05/haml-directory-watcher.html | |
# | |
# Fork by Gonzalo Correa (https://github.com/gcorreaq) | |
# |
The homeboys at Homebrew decided to make the "htop" package unofficial, stranding many users. Here's how to get some htop goodness working again.
brew install autoconf
brew link autoconf
brew install automake
brew install --HEAD https://raw.github.com/adamv/homebrew-alt/master/unmaintained/htop.rb
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
4 | |
2 | |
55 | |
55 | |
4 | |
45 | |
38 | |
78 | |
67 | |
4 |
First, edit your .bash_profile (or create it in your home directory), and add this lines
# For Homebrew
PATH="/usr/local/bin:/usr/local/sbin:$PATH"
# For Homebrew Python 2.7
PATH="/usr/local/share/python:$PATH"
Restart your terminal, so the new .bash_profile is loaded, and execute this commands
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
/** | |
* Module dependencies. | |
*/ | |
var spdy = require('spdy') | |
, express = require('express') | |
, routes = require('./routes') | |
, user = require('./routes/user') | |
, http = require('http') | |
, path = require('path') |
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
import multiprocessing | |
import random | |
import clint | |
def count_lines(path): | |
with open(path, 'r') as file_r: | |
line_number = 0 |
OlderNewer