Skip to content

Instantly share code, notes, and snippets.

View eaa3's full-sized avatar
🤖
Focusing

Ermano Arruda eaa3

🤖
Focusing
View GitHub Profile
@eaa3
eaa3 / gmaps_distance2json.r
Last active December 18, 2017 17:03
Saving google maps distance queries as json with R, and then converting the json file to csv with python
#!/usr/bin/Rscript
#
library(googleway) # install by running in the R shell: install.packages("googleway")
library(rjson) # install by running in the R shell: install.packages("rjson")
library(stringr) # install by running in the R shell: install.packages("stringr")
# Change this to hold your own api key
key = Sys.getenv("MAPS_API_KEY")
@eaa3
eaa3 / SendJSON
Created May 26, 2018 13:37
Send JSON file with Unity WebRequest
using System.Collections;
using System.Collections.Generic;
using UnityEngine.Networking;
using UnityEngine;
using System.Text;
public class SendJSON : MonoBehaviour
{
private static string BASE_URL = "http://127.0.0.1:8000/healthprofile"; //http://healthbookdemo.herokuapp.com/healthprofile
@eaa3
eaa3 / .tmux.conf
Created November 2, 2018 13:40
Tmux config
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g mouse on
bind m \
set -g mouse on \;\
@eaa3
eaa3 / convexify.py
Created April 6, 2019 20:21
Convexify mesh model
import sys
import os
import logging
import subprocess
import trimesh
import lxml.etree as et
import numpy as np
from trimesh.decomposition import convex_decomposition
@eaa3
eaa3 / 10-ieee1394.rules
Created May 7, 2019 13:59
firewire rule - ubuntu 16.04
KERNEL=="raw1394", NAME="%k", GROUP="users"
# Save to /etc/udev/rules.d/10-ieee1394.rules
@eaa3
eaa3 / merge_junit_results.py
Created April 20, 2022 12:22 — forked from cgoldberg/merge_junit_results.py
Merge multiple JUnit XML results files into a single results file.
#!/usr/bin/env python
"""Merge multiple JUnit XML results files into a single results file."""
# MIT License
#
# Copyright (c) 2012 Corey Goldberg
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal