Skip to content

Instantly share code, notes, and snippets.

View ian-h-chamberlain's full-sized avatar
🏔️

Ian Chamberlain ian-h-chamberlain

🏔️
View GitHub Profile
@samrocketman
samrocketman / SENA_Linux.md
Last active June 15, 2024 11:55
Connecting my SENA device via USB on Linux to update the firmware

Update SENA from Linux

In May, 2016, I completely switched all of my home computing environments to Linux. As a result, I've had to find workarounds for things which require Windows. This article outlines my first attempt to update my SENA 10S helmet communicator from KUbuntu 16.04 Linux.

What works and what doesn't

If you follow this guide, I'll state up front what success you'll expect.

  • Installing the Sena Device Manager works.
  • Connecting SENA 10S via USB works.
@lmarkus
lmarkus / README.MD
Last active May 12, 2025 11:14
Extracting / Exporting custom emoji from Slack

Extracting Emoji From Slack!

Slack doesn't provide an easy way to extract custom emoji from a team. (Especially teams with thousands of custom emoji) This Gist walks you through a relatively simple approach to get your emoji out.

If you're an admin of your own team, you can get the list of emoji directly using this API: https://api.slack.com/methods/emoji.list. Once you have it, skip to Step 3

HOWEVER! This gist is intended for people who don't have admin access, nor access tokens for using that list.

Follow along...

@CMCDragonkai
CMCDragonkai / linked_list.nix
Created October 27, 2014 09:28
Nix: Lazy Linked List Implementation using Nested Attribute Sets. This example specifically reifies the fibonnaci sequence into a lazy linked list.
# nix lists are not lazy linked lists
# we can however create lazy linked list using nested attribute sets, where the head is the node value and the tail is the nested cons
# we've basically created a recursive union type:
# type stream a = nil | { head = a; tail = stream a; }
# it's basically a lazy linked list!!!!
let
# O(n) access of the linked list, it needs to unwrap the linked list as it goes deeper into the list
streamElemAt = s: i:
@petrklus
petrklus / rgb_to_kelvin.py
Last active May 10, 2025 11:06
Kelvin to RGB in python
"""
Based on: http://www.tannerhelland.com/4435/convert-temperature-rgb-algorithm-code/
Comments resceived: https://gist.github.com/petrklus/b1f427accdf7438606a6
Original pseudo code:
Set Temperature = Temperature \ 100
Calculate Red:
If Temperature <= 66 Then