- way more mini exercises
- loopy vs iterator way
- factorial and add
-
- 1 to 100 elems
- collect all evens
- any
- all
- fold, scan, reduce, flatten_map, tree_fold1
- partition, partition_in_place, (COMPARE to C++)
https://github.com/miguelraz/JuliaParaGenteConPrisa |
Codigo de laplace! | |
x + 1 |
julia> using CSV, DataFrames, Plots | |
julia> dates = begin | |
data = CSV.read("juliacon-2022_sessions(2).csv", DataFrame) | |
df = data[!, :created] | |
dates = DateTime.(first.(split.(df, '.'))) | |
sort!(dates) | |
end; | |
julia> p = plot(dates, 1:length(dates), title = "JuliaCon submission times", xaxis = "Date submission", yaxis = "# of submissions", label = :none); |
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.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! |
# 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) |
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" |