Skip to content

Instantly share code, notes, and snippets.

View bergie's full-sized avatar

Henri Bergius bergie

View GitHub Profile
@bergie
bergie / 2023 polars.ipynb
Last active April 5, 2024 03:11
2023 polars.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bergie
bergie / README.md
Last active March 6, 2024 05:42
Arduino CLI with ESP8266
  • Install Arduino IDE to /opt/arduino
  • Install PubSubClient and MsgFlo
  • Edit /opt/arduino/libraries/PubSubClient/src/PubSubClient.h and set a bigger buffer size (for example 512)
  • Add ESP8266 board URL:
/opt/arduino/arduino --pref "boardsmanager.additional.urls=http://arduino.esp8266.com/stable/package_esp8266com_index.json" --save-prefs
  • Install board package
@bergie
bergie / README.md
Created May 30, 2012 12:47
Backbone.js Collection View example

This is an example of using a Collection view with Backbone.

@bergie
bergie / Energy-2023.ipynb
Last active November 1, 2023 09:27
Lille Ø 2023 Energy Mix
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bergie
bergie / windvswater.ipynb
Last active November 1, 2023 08:06
Wind vs water
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"id": "a46e1f2d-925d-4574-8319-43a657d16cc6",
"item": "1c99761a-2e6d-49b9-84f1-34234a007bc8",
"type": "article",
"html": "<article><h1>Hacker News</h1><p>Get away with Google Flights (googleblog.blogspot.com)</p></article>",
"score": 0,
"created_at": "2015-02-26T02:19:02.072Z",
"updated_at": null,
"metadata": {
"author": [],
@bergie
bergie / .gitignore
Created September 19, 2011 15:50
Node.js email handling examples
config.json
reading-image.png
@bergie
bergie / 2022 polars.ipynb
Last active December 8, 2022 21:16
Lille Oe Polars
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bergie
bergie / README.md
Created May 18, 2011 11:33
Falsy Values tutorials
@bergie
bergie / rename.js
Created November 18, 2022 11:17
Rename notes from GitJournal Zettelkasten to Obsidian
const { readdir, readFile, writeFile } = require('node:fs/promises');
const { spawn } = require('node:child_process');
const path = require('path');
const frontmatter = require('frontmatter');
let notedir = process.env.PWD;
if (process.argv.length > 2) {
notedir = path.resolve(process.env.PWD, process.argv[2]);
}
const notesmap = {};