Skip to content

Instantly share code, notes, and snippets.

View latim's full-sized avatar

Marcelo Costa Oliveira latim

View GitHub Profile
//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);
}
//
//
// 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>
@latim
latim / MacOS_Install_OpenCV.py
Created May 9, 2019 17:35 — forked from vishwanath79/MacOS_Install_OpenCV.py
Install OpenCV on Mac OS Sierra on Python 3.5
# 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
@latim
latim / LaTeX.sh
Created March 15, 2017 13:36 — forked from ytsutano/LaTeX.sh
TextWrangler: automated LaTeX compilation.
#!/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.
@latim
latim / install_caffe.sh
Created November 21, 2016 17:30 — forked from doctorpangloss/install_caffe.sh
Installing Caffe on Mac 10.11.5 and later in the 10.11 series, and 10.12.1 and later in the 10.12 series
#!/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