Skip to content

Instantly share code, notes, and snippets.

View concipaulo's full-sized avatar

Paulo Conci concipaulo

View GitHub Profile
@concipaulo
concipaulo / westworld_db.csv
Created April 8, 2020 04:47
Rehoboam data
lat lon text title episode
21.4813 109.1202 2.39 arc seconds Divergence: Beihai-China 1
34.0522 -118.2437 minor irregularities. analysis required Anomaly Detect: Los Angeles-USA 1
51.5074 0.1278 special circunstances Elevated Scrutiny: London U.R.E.W. 1
9.9166 115.5333 6.06 arc seconds Divergence: South China Sea 2
37.7749 -122.4194 special circunstances Elevated Scrutiny: San Francisco-USA 3
34.5362 117.2928 2.3 arc minutes Divergence: Victorville-USA 4
@concipaulo
concipaulo / rehoboam_map.R
Last active April 8, 2020 05:01
Rehoboam World Anomalies
library(tidyverse)
library(maps)
library(hrbrthemes)
library(ggrepel)
world <- map_data("world")
rehoboam.data <- read_csv("westworld_db.csv" , col_types = cols(
lat = col_double(),
lon = col_double(),
text = col_character(),
@concipaulo
concipaulo / table.csv
Last active March 7, 2020 23:14
top shooting average in the NHL
Rk Name SHOTS G average
1 Gemel Smith 1 1 1
2 Yegor Korshkov 1 1 1
3 Joel L'Esperance 2 1 0.5
4 Miikka Salomäki 2 1 0.5
5 Patrick Brown 2 1 0.5
6 Tyler Graovac 5 2 0.4
7 Maxim Letunov 3 1 0.333
8 Vitaly Abramov 3 1 0.333
9 Kailer Yamamoto 35 9 0.257
@concipaulo
concipaulo / lollipop_chart.r
Last active March 1, 2020 03:35
Make a lollipop chart in ggplot
career14 <- career14 %>%
arrange(desc(eb_average))%>%
mutate(id = row_number())%>%
mutate(Player = fct_reorder(Player, id),
Player = fct_rev(Player))
@concipaulo
concipaulo / filterdataset.r
Last active March 7, 2020 23:21
Average Shooting percentage in the season
career <- dtset %>%
filter(Pos != "G", SHOTS > 100) %>%
group_by(Name) %>%
summarise(SHOTS = sum(SHOTS), G = sum(G)) %>%
mutate(average = G / SHOTS)
cd /path/where/you/want/the/repository
# clone the repository
git clone https://www.github.com/Airblader/i3 i3-gaps
cd i3-gaps
# compile & install
autoreconf --force --install
rm -rf build/
mkdir -p build && cd build/
@concipaulo
concipaulo / f90
Created April 23, 2018 23:02
Structured mesh generator
program creatingmesh
implicit none
!
integer*4 :: j, i, r, cont
integer*4 :: row, col
real*8 :: delta = 70.d-2 , crdx, crdy
real*8 :: temp = 0.d0
real*8 :: comp = 30.d0, alt = 20.d0
!
open(unit=3, file='mesh.dat', status='unknown')