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
//Creditos FREDERICO GUILHERME DE OLIVEIRA GOMES FILHO | |
#include <iostream> | |
#include <GL/glut.h> | |
void init(void) { | |
glClearColor(0.0, 0.0, 0.0, 0.0); | |
glMatrixMode(GL_PROJECTION); | |
gluOrtho2D(0.0, 500.0, 0.0, 500.0); | |
} |
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
// | |
// | |
// TransformacaoPlanetas | |
// | |
// Created by Marcelo Costa on 15/12/12. | |
// Copyright (c) 2012 Universidade Federal de Alagoas - UFAL. All rights reserved. | |
// | |
//#import <Cocoa/Cocoa.h> | |
//#import <GLUT/GLUT.h> |
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
# 1. Download and install the latest Anaconda distribution from https://www.continuum.io/downloads#macos | |
# 2. Create a new Python environment. Make sure you choose python 3.5 as your python version for the virtual environment: | |
conda create -n myenv python=3.5 | |
# 3. Activate the new environment using: | |
source activate myenv |
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 | |
# Change the current directory to the document path. | |
cd "${BB_DOC_PATH%/*}" | |
# Update PATH. | |
PATH=$PATH:/usr/bin/:/usr/local/bin/ | |
PATH=$PATH:/usr/local/bin:/usr/X11/bin:/usr/texbin:/opt/local/bin | |
# Pre-compute the file names used. |
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/sh | |
# Install brew | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
# Apple hides old versions of stuff at https://developer.apple.com/download/more/ | |
# Install the latest XCode (8.0). | |
# We used to install the XCode Command Line Tools 7.3 here, but that would just upset the most recent versions of brew. | |
# So we're going to install all our brew dependencies first, and then downgrade the tools. You can switch back after | |
# you have installed caffe. | |
# Install CUDA toolkit 8.0 release candidate | |
# Register and download from https://developer.nvidia.com/cuda-release-candidate-download |