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 io | |
import sys | |
import re | |
import csv | |
import json | |
def get_parts(ris_file_text): | |
ris_text_parts = re.split(r'\nER -( |\n|$)', ris_file_text) | |
if len(ris_text_parts) == 1: | |
ris_text_parts = re.split(r'\r?\n\r?\n', ris_file_text) |
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
aasd: | |
- lala |
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
require "selenium-webdriver" | |
require "rspec" | |
include RSpec::Expectations | |
describe "Prueba" do | |
before(:each) do | |
unless ENV["DRIVER"] | |
ENV["DRIVER"] = 'phantomjs' | |
end |
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
# Get some path and absolutes paths | |
PATH_BEFORE_SCRIPT=`pwd`; | |
SCRIPT_NAME=`basename $0`; | |
SCRIPT_DIRNAME=`dirname $0`; | |
cd $SCRIPT_DIRNAME; | |
SCRIPT_ABSOLUTE_DIRNAME=`pwd`; | |
# We expect one parameter | |
if [[ "$#" -ne 1 ]]; then | |
echo "Usage: script_with_target_dir.sh <target_dir>" >&2; |
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
# Install PasteScript | |
pip install PasteScript | |
# Create a new project | |
paster create myproject | |
# (You should input the requested information, you can press enter to skip) | |
# Go to the new project | |
cd myproject |
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
# Install python | |
sudo aptitude install python-setuptools | |
sudo easy_install pip | |
sudo pip install virtualenv | |
# Create a new enviroment | |
mkdir ~/envs | |
cd ~/envs | |
virtualenv --no-site-packages my_project |