Skip to content

Instantly share code, notes, and snippets.

View GuillaumePressiat's full-sized avatar

GuillaumePressiat

View GitHub Profile
@GuillaumePressiat
GuillaumePressiat / underscrape_and_RSelenium.R
Last active August 14, 2023 21:55
Using Selenium in R to scrape JS tables
# https://stackoverflow.com/q/67021563/10527496
# java -jar selenium-server-standalone-3.9.1.jar
library(RSelenium)
library(tidyverse)
library(rvest)
@GuillaumePressiat
GuillaumePressiat / main_tantivy_test.rs
Created November 26, 2023 21:53
Tantivy test en Rust, slop, phraseQuery, fuzzyTerm
#[macro_use]
extern crate tantivy;
use tantivy::query::QueryParser;
use tantivy::schema::*;
use tantivy::ReloadPolicy;
use tempfile::TempDir;
use tantivy::query::FuzzyTermQuery;
use tantivy::query::PhraseQuery;
use tantivy::query::TermQuery;
use tantivy::collector::{Count, TopDocs};
@GuillaumePressiat
GuillaumePressiat / pmsi_rust_rsa.rs
Last active December 5, 2023 23:31
rust pola.rs example for fwf file
use polars::prelude::*;
use std::{
env
};
pub fn main(){
configure_the_environment();