Skip to content

Instantly share code, notes, and snippets.

View miguelraz's full-sized avatar
:shipit:

Miguel Raz Guzmán Macedo miguelraz

:shipit:
  • UNAM
  • UNAM, Mexico
View GitHub Profile
@miguelraz
miguelraz / march2022.md
Created April 2, 2022 00:13
March 2022 github sponsors newsletter

March 2022 GitHub Sponsors newsletter and updates

Code

  • stdsimd documentation PR. Turns out, I'm not only a one trick pony and I'm brushing up on my Rust! stdsimd is Rust's foray into providing native SIMD instructions without reaching down to intrinsics. My goal in that project is to lower the gates for understanding by providing useful and beginner friendly documentation on a performance topic that's unusually hard to start people on. If you read the PR, do check out the Rust Godbolt links with the side-by-side assembly instruction. Those took a good couple of days to get up and running, and I'm pretty proud.
  • Let's talk about failures and how I spent a good afternoon not making Term.jl.
  • updated the mold jll recipe.
  • I did an initial code review of Tyler J. Thomas's repo (a monthly sponsor!), [RAPIDS.jl](https://github.com/tylerjtho
@miguelraz
miguelraz / cpp-comp-snippet
Last active March 4, 2022 06:34
cpp comp snippet
snippet CC
#define _CRT_SECURE_NO_DEPRECATE // suppress some compilation warning messages (for VC++ users)
// Shortcuts for "common" data types in contests
typedef long long ll;
typedef vector<int> vi;
typedef pair<int, int> ii;
typedef vector<ii> vii;
typedef set<int> si;
typedef map<string, int> msi;
// To simplify repetitions/loops, Note: define your loop style and stick with it!
@miguelraz
miguelraz / gist:84b2091bfe434e056ead936def191fda
Created March 1, 2022 05:29
February-sponsorship-update.md
# Thank you, and welcome!
First and foremost, thank you. You are receiving this email because you are helping me, Miguel Raz Guzmán Macedo, build free and open source software and realize my dream of doing this full time. Every donation is incredibly appreciated, and this has been a surprising month. What follows is a summary of what *your* donations has helped me achieve this month, but before I get into that...
# The situation in Ukraine
So, war is bad and Vladimir Putin has decided to invade Ukraine. This is a time of upheaval and tragedy and violence and it's been overwhelming to say the least. Other people in the [Julia community](https://discourse.julialang.org/t/information-for-julia-community-in-ukraine/77118/7?u=miguelraz) have already put together some resource on how you can donate to relief efforts, so please consider doing so if you haven't already. I unequivocally condemn all wars of aggression and imperial annexation - may the Julia community also emphatically reject those who support those
julia> function sol(arr)
# Bail early if too short
length(arr) < 2 && return 0
# Idea - normalize to positive ints and use RadixSort
# then take the maximum of the diff
mini = minimum(arr)
# Use ternary operator `?` and broadcasted in-place addition `.+=`
mini <= 0 ? arr .+= abs(mini) : nothing
# Use in-place RadixSort to modify `arr`
sort!(arr, alg = RadixSort)
@miguelraz
miguelraz / juliacon_video_urls.txt
Created January 24, 2022 19:27
juliacon_video_urls.txt
https://juliacon2020-uploads.s3.us-east-2.amazonaws.com/public/Geostatistical%20Learning%3A%20Hoffimann%20-%20Geostatistical%20Learning.mkv
https://juliacon2020-uploads.s3.us-east-2.amazonaws.com/public/Put%20some%20constraints%20into%20your%20life%20with%20JuliaCon(straints)%3A%20Put%20some%20constraints%20in%20your%20life%20with%20JuliaCon(straints).mp4
https://juliacon2020-uploads.s3.us-east-2.amazonaws.com/public/The%20state%20of%20JuMP%3A%20youtube-state-of-jump.mp4
https://juliacon2020-uploads.s3.us-east-2.amazonaws.com/public/Clearing%20the%20Pipeline%20Jungle%20with%20FeatureTransforms.jl%3A%20clearing_the_pipeline_jungle_glenn_moynihan.mp4
https://juliacon2020-uploads.s3.us-east-2.amazonaws.com/public/BifurcationKit.jl%3A%20bifurcation%20analysis%20of%20large%20scale%20systems%3A%202021-07-06%2016-24-06.mp4
https://juliacon2020-uploads.s3.us-east-2.amazonaws.com/public/TiledViews.jl%3A%20RainerHeintzmann_TiledViews.mp4
https://juliacon2020-uploads.s3.us-east-2.amazonaws.com/public/%5BREPLACE+PREVIOUS
ffmpeg -i intro.mp4 -i "Algorithmi.mp4" -filter_complex "[0:v]scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:-1:-1,setsar=1,fps=30,format=yuv420p[v0];
[1:v]scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:-1:-1,setsar=1,fps=30,format=yuv420p[v1];
[v0][0:a][v1][1:a]concat=n=2:v=1:a=1[v][a]" -map "[v]" -map "[a]" -c:v h264_nvenc -c:a aac -movflags +faststart "processed/postervideos/Algorithmi.mp4"
113×3 DataFrame
Row │ Title Session type Speaker names
│ String String String?
─────┼──────────────────────────────────────────────────────────────────────────────────────
1 │ Introducing QXGraphDecompositions Virtual Poster John Brennan
2 │ Graph Machine Learning with Grap… Virtual Poster Simon Schoelly
3 │ ParameterHandling.jl Virtual Poster Will Tebbutt
4 │ Auto-Parallelization at Cloud Sc… Virtual Poster Caleb Winston
5 │ Optimal control problems in Chem… Virtual Poster Oswaldo A.M
6 │ Surrogate Models of Multiscale D… Virtual Poster Ranjan Anantharaman

THS acts of civil disobedience in a liberal democracy to change unjust laws

Prop

  1. Yi Yu Yang he/him
  2. Cyrus he/him
  3. Tschumi he/him R. Cyrus

Opp

  1. Teng Siang he/him
@miguelraz
miguelraz / singapore.md
Created July 10, 2021 03:21
singapore.md

THS acts of civil disobedience in a liberal democracy to change unjust laws

Prop

  1. Janani
  2. Long Long
  3. Ava R. Janani

Opp

  1. Jan sen
## WHAT IS DEBATING ANYWAY?
Imagination, Fantasy and Debate
By Miguel Raz Guzmán Macedo
----