Skip to content

Instantly share code, notes, and snippets.

"1048613091","853c4c33-7c96-49ab-8f7a-69449446d3d8"
"1815297567","7526cd1f-865d-4e1a-86fa-1e9cc961b2eb"
"169280471","7de07f9e-6766-4875-85d7-27053799e601"
"497312649","20e9ab8b-e311-4b64-be5c-66fc85ac5716"
"992441807","74a88cc4-aa98-4561-9100-1f1bf7a6c6d7"
"1682035347","264e884a-4c24-4ad7-98c8-d308fbb3b4e2"
"1788001205","3f010505-92cc-47f3-8cf3-e520185d8cea"
"1208588970","5e889494-4926-42ca-9ed6-5c5d6f8649aa"
"947939257","3c3de996-ed21-49a1-8114-0ae97ee472c7"
"1109769354","85b8a459-b1b3-45ce-883c-62c9f39a6e78"
@manwar
manwar / process-sync.md
Last active February 8, 2025 01:39
Process synchronization in Perl and Python.

In the earlier post, I shared how to manage multiple process in Perl and Python.

Now in this post, we are talking about Process Synchronization.

We will do in Perl first.

#!/usr/bin/env perl

use v5.38;
@ianshimabukuro
ianshimabukuro / intro_to_machine_learning.ipynb
Created February 8, 2025 01:35
Intro_to_Machine_Learning.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
🌞 Morning 5 commits ████▊░░░░░░░░░░░░░░░░ 22.7%
🌆 Daytime 7 commits ██████▋░░░░░░░░░░░░░░ 31.8%
🌃 Evening 10 commits █████████▌░░░░░░░░░░░ 45.5%
🌙 Night 0 commits ░░░░░░░░░░░░░░░░░░░░░ 0.0%
@yjunechoe
yjunechoe / zscore-subject-intercept.R
Created February 8, 2025 01:34
If you z-score the response variable by group, will by-group intercept always be zero? (no - depends on meaning of intercept - ex: in dummy coding)
library(tidyverse)
set.seed(123)
df <- crossing(
subject = 1:10,
prime = c("yes", "no")
) %>%
mutate(
intercept = 500,
# Config generated by Ghostty Config (https://github.com/zerebos/ghostty-config)
title = Mwelwa was here...
background-opacity = 0.96
background-blur-radius = 14
theme = AlienBlood
bold-is-bright = true
background = #0f1610
foreground = #637d75
selection-background = #1d4125
// Common
bool isBarSquare(in vec2 fragCoord, in vec2 mouse_pos, in int bar_size )
{
bool vertical_bar = (
(int(mouse_pos.x)-bar_size <= int(fragCoord.x)) &&
(int(mouse_pos.x)+bar_size >= int(fragCoord.x))
);
bool horizontal_bar = (
(int(mouse_pos.y)-bar_size <= int(fragCoord.y)) &&
"741062442","0ac5bcb8-af58-4d45-87fe-a1639888f801"
"930114249","2a6b4260-c309-4f6f-964b-2bc9cf706ace"
"1536346640","b0d43706-da4c-45a7-bb98-9aef9853a8eb"
@forkyau
forkyau / hourly_rainfall_data-2025-02-08|09-15.csv
Created February 8, 2025 01:31
GIST created by python code
id station stationid value unit obstime date
0 流浮山 RF001 0 mm 2025-02-08T09:15:00+08:00 2025-02-08
1 湿地公园 RF002 0 mm 2025-02-08T09:15:00+08:00 2025-02-08
2 水边围 N12 0 mm 2025-02-08T09:15:00+08:00 2025-02-08
3 石岗 RF003 0 mm 2025-02-08T09:15:00+08:00 2025-02-08
4 大美督 RF004 0 mm 2025-02-08T09:15:00+08:00 2025-02-08
5 大埔墟 RF005 0 mm 2025-02-08T09:15:00+08:00 2025-02-08
6 北潭涌 RF006 0 mm 2025-02-08T09:15:00+08:00 2025-02-08
7 滘西洲 RF007 0 mm 2025-02-08T09:15:00+08:00 2025-02-08
8 西贡 N15 0 mm 2025-02-08T09:15:00+08:00 2025-02-08
@lvanasse
lvanasse / ci-xtensa-02.log
Created February 8, 2025 01:30
[xtensa-02] CI Log for nuttx @ ca6f5db6fc5d24ebe58be19c1cd7a5d0df856a64 / nuttx-apps @ fb0c1e10ded2a6fb9f066b9893662cbcc86e4646
Script started on 2025-02-08 00:17:58+00:00 [COMMAND="/home/ludovic/nuttx-release/run-job.sh xtensa-02" <not executed on terminal>]
Now running https://github.com/lupyuen/nuttx-release/blob/main/run-job.sh
Called by https://github.com/lupyuen/nuttx-release/blob/main/run-ci.sh
+ job=xtensa-02
+ neofetch
.-/+oossssoo+/-.
`:+ssssssssssssssssss+:`
-+ssssssssssssssssssyyssss+-
.ossssssssssssssssssdMMMNysssso.
/ssssssssssshdmmNNmmyNMMMMhssssss/