Skip to content

Instantly share code, notes, and snippets.

@feromes
feromes / workshop.md
Last active February 9, 2022 20:32
WorkShop de Qgis para o Grupo de Trabalho o Chão da Cidade da FAU Mackenzie de São Paulo

Workshop de Qgis avançado

Agenda

  • Overview e download dos dados a serem utilizados
    • Base de Logradouros
    • Faces dos lotes
    • Largura de Vias
    • Usos por lote
  • Relacionando a face do lote ao uso
import csv
# Define os valores da tela para serem referenciados no código
xmax, ymax = 1000, 1000
# Carrega os pontos que estão no arquivo e atribui às listas globais x e y
def load_points():
global x, y
x, y = [], []
with open('complexidade-200-pontos.csv', 'rb') as csvfile:
@feromes
feromes / Exercício de Prova de Indução Finita da formula de triangulação de Delaunay.ipynb
Created October 5, 2020 14:09
Exercício de Prova de Indução Finita da formula de triangulação de Delaunay para a Disciplina do Prof. Cintra PTR5968, Poli/USP
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@feromes
feromes / 0-instructions.md
Last active June 27, 2024 01:27
This follow files intend to help you getting work the IFC Viewer on Windows 10. You really should consider using Linux, but when you are not convinced. Follow the steps

Instructions to getting IFC Viewer working on Jupyter NoteBook

  1. You have to install previously Anaconda and I supposed you're under Windows OS, otherwise you had already IFC Viewer working :)
  2. It's boring but will rid you from some trouble. You should create a new Environment on Anaconda
  • Open Anaconda
  • Go to Environments
  • Click on +Create
  • Choose an appropriate name, like ifc_viewer
  1. Still on Anaconda, we're gonna go deeper. Click on arrow right to the name of the environment you just created, and you should access a menu, and then choose Open Terminal
  2. You must be thrilled to see this beautiful black terminal. I always think I'm Neo in Matrix this time :) But you're here just to install 3 Python Libs that we need to make things working. And you're gonna type the following lines on terminal, hit enter and wait for the magic happens.
@feromes
feromes / Exercicio de UTM PTR5003.ipynb
Last active March 29, 2020 13:24
Exercícios de UTM para disciiiplina PTR5003
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@feromes
feromes / notes.md
Last active March 10, 2020 12:59
Apresentação sobre o GeoSampa no Centro Universitário Belas Artes
@feromes
feromes / Mapeamento sonoro e softwares livres.pdf
Last active November 2, 2017 13:52
Levantamento de softwares livres e sistemas colaborativos para mapeamento e estudo sonoro
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@feromes
feromes / fibonacci_golden_spiral.scad
Last active June 16, 2024 11:49
Fibonacci's spiral in OpenScad using a simple polar equation
//fibonacci_golden_spiral.scad - Simple implementation of the Fibonacci Spiral's polar equation
phi = (1 + sqrt(5)) / 2; // =~ 1.618
function radius(angle) = 10 * pow(phi, (angle / 90));
for(i = [0:1:720]) {
translate([sin(i) * radius(i), cos(i) * radius(i)]) circle(3);
}
@feromes
feromes / dogbone.scad
Last active June 24, 2017 13:15
Simple example to solve 2d cut dogbone using a router CNC, write in OpenScad
//dogbone.scad - Simple example to solve 2d cut dogbone using a router CNC
square_side = 100;
half_square_side = square_side / 2;
radius = 5;
dog_bone_offset = sin(45) * radius;
square_vertex = [[1, 1], [1, -1], [-1, -1], [-1, 1]];
difference () {