Skip to content

Instantly share code, notes, and snippets.

@rross101
rross101 / config.el
Created June 20, 2022 15:58
Toggle transparency mode in emacs / Macos
;; Transparency mode and toggle
(set-frame-parameter (selected-frame) 'alpha '(85 . 50))
(define-minor-mode transparency-mode
"Enable Transparency"
:global t
(if transparency-mode
(set-frame-parameter (selected-frame) 'alpha '(85 . 50))
(set-frame-parameter (selected-frame) 'alpha '(100 . 100))))
@rross101
rross101 / settings.json
Created October 19, 2021 22:00
VS Code Settings
{
// Look
"workbench.colorTheme": "Gruvbox Dark Medium",
"breadcrumbs.enabled": false,
"editor.renderLineHighlight": "gutter",
"workbench.editor.titleScrollbarSizing": "default",
"editor.suggest.preview": false,
"diffEditor.renderIndicators": false,
"editor.wordBasedSuggestions": false,
"editor.scrollbar.vertical":"hidden",
@rross101
rross101 / M1-Linux-notes.md
Last active October 18, 2021 21:38
Notes - Asahi linux on M1 Macbook Pro

Notes on installing linux on a Macbook Pro M1

Introduction

I've spent a decent chunk of time using Linux as a daily driver; and tinkering in Linux; but I've no official programming experience, and before this I'd never compiled a Linux kernel. I went into it with the expectation that it would be fun and that I wouldn't end up with a completely working system. There's good documentation on the Asahi Linux github, although I still stumbled a few times; and there is very friendly support on the Asahi Linux IRC channels.

Asahi Linux is a group of open-source folk porting Linux to the M1 Macs. There's also a commercial affair called Corellium who've done something similar and have instructions here - https://www.corellium.com/blog/linux-m1 - I didn't try their way; not for any particular reason except a vague loyalty to open source; but maybe it would have been the easier way. Whilst Corellium have tweeted their support for Asahi I don't know how friendly the relations between the two are.

My instructions

@rross101
rross101 / styles.less
Last active May 1, 2019 16:24
My styles.less file for Atom - multi-coloured markdown headings, all black background
atom-text-editor {
background-color: black;
}
.atom-dock-resize-handle {
background-color: teal;
}
.tree-view {
-- looper
-- key 2 rec / overdub
-- key 3 stop
-- enc 2 length
-- enc 3 rate
-- todo - mask click; double / half loop; multiple loops
engine.name = 'SoftCut'
@rross101
rross101 / bounce.lua
Created September 18, 2018 22:03
Bounce for Norns
--- bounce by declutter; can't remember who first created this app in Max for the monome
--- to-do:
--- sound on collision
--- multiple balls
g = grid.connect()
function init()
--- set up variables and grid