Skip to content

Instantly share code, notes, and snippets.

// Override key bindings by placing them into your key bindings file.
[
{ "key": "escape escape", "command": "workbench.action.exitZenMode",
"when": "inZenMode" },
{ "key": "shift+escape", "command": "closeReferenceSearch",
"when": "inReferenceSearchEditor && !config.editor.stablePeek" },
{ "key": "escape", "command": "closeReferenceSearch",
"when": "inReferenceSearchEditor && !config.editor.stablePeek" },
{ "key": "shift+escape", "command": "editor.action.inlineSuggest.hide",
"when": "inInlineEditsPreviewEditor" },
@ivelasq
ivelasq / _brand.yml
Created June 11, 2026 20:30
SciPy Demo brand.yml file
## _brand.yml — mimics the SciPy 2026 conference style
## https://www.scipy2026.scipy.org/
##
## Colors are taken straight from the SciPy 2026 site.
## Fonts: the live site uses Adobe Fonts (Typekit) — "fairway" for headings
## and "mr-eaves-modern" for body — which require an Adobe account to embed.
## We substitute close, freely available Google Fonts here: Montserrat (which
## the SciPy site itself uses for buttons) for headings, and Mulish for body.
## Swap these for the Adobe families if you have access.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>a11y-dark</string>
<key>settings</key>
<array>
<dict>
<key>settings</key>
rotations = scan("input.txt", character())
counter = 0
new_starting_position = 50
max_dial = 99
pattern = "\\d+"
# Part 1 ---
for (rotation in rotations){
{
"[python]": {
// automatically selects Python console
"interpreters.startupBehavior": "always"
},
// R language specific settings
"[r]": {
// use Air
"editor.defaultFormatter": "Posit.air-vscode",
// apply formatting on save
@ivelasq
ivelasq / show-results.Rmd
Created July 28, 2025 17:47
R Markdown Results Fold
---
title: R Markdown Results Fold
---
```{r}
#| eval: false
plot(mtcars$mpg, mtcars$hp)
```
@ivelasq
ivelasq / resize.R
Created July 30, 2024 17:14
Resizing images using R
library(magick)
input_folder <- "test/"
output_folder <- "resized/"
if (!dir.exists(output_folder)) {
dir.create(output_folder)
}
image_files <- list.files(input_folder, full.names = TRUE, pattern = "\\.(jpg|jpeg|png)$")
library(shiny)
library(plotly)
library(gridlayout)
library(bslib)
ui <- grid_page(
layout = c("header header ",
"sidebar plot "),
row_sizes = c("100px",
"1fr"),
library(charlatan)
set.seed(1234)
(z <- AddressProvider$new('nl_NL'))
address_list <- purrr::map(1:5, function(x) {
dplyr::bind_cols(
building = z$building_number(),
street = z$street_address(),
@ivelasq
ivelasq / file-sizes.R
Created February 14, 2023 11:50
Find file sizes in directory
all_files <- fs::dir_ls(".", recurse = TRUE)
files_info <-
dplyr::bind_cols(all_files, fs::file_size(all_files))