https://docs.google.com/presentation/d/1Kd89TI5TaFwkcKZOw_c3OIYh29Qu9ggqAGRaW63i8IY/edit
Open source contribution is both a technical and a social phenomenon. Any FOSS project naturally has a "caste system" - a group of contributors with extensive rights vs everyone else. Some of this separation is necessary - core contributors have deeper knowledge of the code, share vision, and trust each other.
Core contributors have one more right that others do not -- they can create repository branches. Thus, they can contribute "locally" - by pushing proposed changed to the primary repository's work branches,
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://docs.google.com/presentation/d/1iQFFMCuIPLYdUiEgeFsO8fKTQB6ArSM8GrxLKXxY-RQ/edit?usp=sharing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://docs.google.com/presentation/d/1Rl3k_bu7e3YZ-p8mGoQ-rqeJIUUlr6JfDSTCg3cWAog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Place this page as /benches/format.rs in a rust project created with `cargo new fmttest --lib` | |
// Add to Cargo.toml: | |
// | |
// [dev-dependencies] | |
// criterion = { version = "0.4", features = ["html_reports"] } | |
// | |
// [[bench]] | |
// name = "format" | |
// harness = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Benchmarks for the Rust iterator extension discussion at | |
// https://internals.rust-lang.org/t/add-iterate-with-separators-iterator-function/18781/13 | |
// Place this page as /benches/iters.rs in a rust project created with `cargo new itertest --lib` | |
// Add to Cargo.toml: | |
// | |
// [dependencies] | |
// itertools = "0.10" | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use criterion::{black_box, criterion_group, criterion_main, Criterion}; | |
use dup_indexer::DupIndexer; | |
fn benchmark_strings(c: &mut Criterion) { | |
let mut group = c.benchmark_group("Strings"); | |
group.bench_function("String", |b| { | |
b.iter(|| { | |
let mut di = DupIndexer::new(); | |
for _ in 0..100 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT x, | |
y, | |
ST_Y(p_mid) mid_lat, | |
ST_Y(p_min) min_lat, | |
ST_Y(p_max) max_lat, | |
ST_Y(d_mid) mid_lat_decoded, | |
ST_Y(d_min) min_lat_decoded, | |
ST_Y(d_max) max_lat_decoded, | |
abs(ST_Y(p_mid) - ST_Y(d_mid)) mid_lat_error, | |
abs(ST_Y(p_min) - ST_Y(d_min)) min_lat_error, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create table map | |
( | |
tile_index INTEGER, | |
tmp_zoom INTEGER GENERATED ALWAYS AS ((tile_index & 0xFC000000) >> 26) VIRTUAL, | |
tile_column INTEGER GENERATED ALWAYS AS (CASE | |
WHEN tmp_zoom <= 13 THEN (tile_index & 0x3FFE000) >> 13 | |
ELSE (tile_index & 0x3FFF8000) >> 15 END) VIRTUAL, | |
tile_row INTEGER GENERATED ALWAYS AS (CASE | |
WHEN tmp_zoom <= 13 THEN tile_index & 0x1FFF | |
ELSE tile_index & 0x7FFF END) VIRTUAL, |
NewerOlder