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
#!/bin/bash | |
# install packages needed to compile ruby | |
yum -y install make gcc zlib-devel openssl-devel \ | |
readline-devel gdbm-devel bison \ | |
libffi-devel wget | |
# you should register EPEL repository to install libyaml | |
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-7.noarch.rpm | |
yum -y install libyaml-devel | |
cd /tmp | |
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.gz |
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 bash | |
apt-get -y update | |
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline5-dev libyaml-dev | |
cd /tmp | |
wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p370.tar.gz | |
tar -xvzf ruby-1.8.7-p370.tar.gz | |
cd ruby-1.8.7-p370/ | |
./configure --prefix=/usr/local | |
make | |
make install |
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 bash | |
# Tested for Ubuntu 12.04 | |
[[ "$(id -u)" -ne "0" ]] && echo "must be root!" && exit 1 | |
RBVER="2.0.0-p0" | |
apt-get update | |
apt-get install -y build-essential bison zlib1g-dev libssl-dev libgdbm-dev libreadline-dev libncurses-dev libffi-dev libyaml-dev wget rsync git-core |
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
#!/bin/bash | |
# install packages needed to compile ruby | |
yum -y install make gcc zlib-devel openssl-devel \ | |
readline-devel gdbm-devel bison \ | |
libffi-devel wget | |
# you should register EPEL repository to install libyaml | |
# rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-7.noarch.rpm | |
yum -y install libyaml-devel | |
cd /tmp | |
wget ftp://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p247.tar.gz |
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
((= Latex base template (must inherit) | |
This template builds upon the abstract template, adding common latex output | |
functions. Figures, data_text, | |
This template does not define a docclass, the inheriting class must define this.=)) | |
((*- extends 'document_contents.tplx' -*)) | |
%=============================================================================== | |
% Abstract overrides | |
%=============================================================================== |
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
#!/bin/bash | |
# This tool is to compare a translated notebook or markdown file to | |
# the original English document in tensorflow/docs. | |
# Check if the nbdiff is available | |
if ! [ -x "$(command -v nbdiff-web)" ]; then | |
echo 'Error: nbdiff-web is not installed. `pip install nbdime` please' >&2 | |
exit 1 | |
fi |
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 python | |
# coding: utf-8 | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# https://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software |