Skip to content

Instantly share code, notes, and snippets.

View benja's full-sized avatar
:shipit:
tinkering

Benjamin benja

:shipit:
tinkering
  • Oslo, Norway
View GitHub Profile
@benja
benja / keybindings.json
Last active December 18, 2022 15:19
Visual Studio Code — Exclude .gitignore files on command
[
{
"key": "shift+cmd+[Period]",
"command": "settings.cycle.explorer.excludeGitIgnore"
},
]
@benja
benja / fib.rs
Last active September 1, 2022 10:26
Retrieve the nth value in the fibonacci sequence in Rust
// 0, 1, 1, 2, 3, 5, 8, 13, 21, 34
pub fn nth(n: usize) -> usize {
let mut v: Vec<usize> = vec![0, 1, 1];
for i in (2..n).skip(1) {
v.push(v[i - 1] + v[i - 2])
}
v[n - 1]
}
@benja
benja / Fabric Repo Automation Setup.md
Last active April 19, 2022 12:18
Fabric Repo Automation Setup

Fabric Repo Automation

This guide demonstrates how to automate releases in FINN/Fabric repositories using Semantic Release and Github Actions. To read more about how releases in Fabric work, please refer to the RFC.

Setup

  1. Create a next branch from the default branch.

  2. Setup and configure renovate bot to auto merge dependencies to the next branch:

@benja
benja / cloudSettings
Last active September 14, 2021 15:32
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-09-14T15:32:13.205Z","extensionVersion":"v3.4.3"}
@benja
benja / cloudSettings
Created July 1, 2020 13:01
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-07-01T13:01:12.636Z","extensionVersion":"v3.4.3"}