Los siguientes pasos le permitiran instalar ROOT
- Ejecutar en orden los siguientes comandos
mkdir ~/root-builder
cd ~/root-builder
git clone http://github.com/root-project/root.git
Los siguientes pasos le permitiran instalar ROOT
mkdir ~/root-builder
cd ~/root-builder
git clone http://github.com/root-project/root.git
// Determines the distance between two points on the earth surface | |
// using Vicenty's Formulae | |
// | |
// * https://en.wikipedia.org/wiki/Vincenty%27s_formulae | |
// | |
const vincenty = (p1, p2) => { | |
if (p1.lat === p2.lat && p1.lng === p2.lng) { | |
return 0.0 | |
} | |
const MAX_ITERATIONS = 200 |
#!/usr/bin/env bash | |
# Example: | |
# ./find-ecr-image.sh foo/bar mytag | |
if [[ $# -lt 2 ]]; then | |
echo "Usage: $( basename $0 ) <repository-name> <image-tag>" | |
exit 1 | |
fi | |
IMAGE_META="$( aws ecr describe-images --repository-name=$1 --image-ids=imageTag=$2 2> /dev/null )" |
// Code sourced from https://iangilham.com/2017/08/22/add-headers-with-lambda-edge.html | |
'use strict'; | |
exports.handler = (event, context, callback) => { | |
function add (h, k, v) { | |
h[k.toLowerCase()] = [ | |
{ | |
key: k, | |
value: v | |
} | |
]; |
# Ajustes generales para los gráficos | |
from distutils.spawn import find_executable | |
from matplotlib.font_manager import FontProperties | |
import matplotlib.pyplot as plt | |
import seaborn | |
import gc | |
plt.ioff() | |
plt.rc('lines', linewidth=1) |
# | |
# Wide-open CORS config for nginx | |
# | |
if ($request_method = 'OPTIONS') { | |
add_header 'Access-Control-Allow-Origin' '*'; | |
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; | |
# | |
# Custom headers and headers various browsers *should* be OK with but aren't | |
# | |
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range'; |
#! /usr/bin/env bash | |
sudo apt-get -y install \ | |
autotools-dev \ | |
axel \ | |
binutils \ | |
build-essential \ | |
cmake \ | |
console-setup \ | |
dpkg-dev \ | |
expat \ |
# Include this file in your .zshrc right after | |
# source $ZSH/oh-my-zsh.sh | |
# User configuration | |
if [ ! -S ~/.ssh/ssh_auth_sock ]; then | |
eval `ssh-agent` > /dev/null | |
ln -sf "$SSH_AUTH_SOCK" ~/.ssh/ssh_auth_sock | |
fi | |
export SSH_AUTH_SOCK=~/.ssh/ssh_auth_sock |
# User configuration | |
if [ ! -S ~/.ssh/ssh_auth_sock ]; then | |
eval `ssh-agent` > /dev/null | |
ln -sf "$SSH_AUTH_SOCK" ~/.ssh/ssh_auth_sock | |
fi | |
export SSH_AUTH_SOCK=~/.ssh/ssh_auth_sock | |
if [[ $(ssh-add -l) == "The agent has no identities." ]]; then | |
for key in `ls -1 ~/.ssh/*.pub`; do |