Skip to content

Instantly share code, notes, and snippets.

View stefang's full-sized avatar

Stefan Goodchild stefang

View GitHub Profile
.button {
-moz-background-clip:border !important;
-moz-background-inline-policy:continuous !important;
-moz-background-origin:padding !important;
-moz-border-radius-bottomleft:4px !important;
-moz-border-radius-bottomright:4px !important;
-moz-border-radius-topleft:4px !important;
-moz-border-radius-topright:4px !important;
-moz-box-shadow:0 1px 3px rgba(0, 0, 0, 0.3);
background:#E1DDDD url(../images/button_grey.png) repeat-x scroll center center !important;
@stefang
stefang / The HAML
Created September 2, 2011 11:23
Hide labels, but show on focus to replace the hidden placeholder text as a reminder
%form
%ol
%li
%label.hidden(for="the_input") The label text
%input(name="the_input" placeholder="the placeholder text")

iOS only Capacitor Plugin using Swift Package Manager

This took me way longer than it should have to work this out as I'm not a iOS developer so this may help someone. I was trying to make a wrapper plugin for OSCKit so I could use it in my Ionic / Capacitor App.

As per usual (~May 2025)

npm init @capacitor/plugin
cd capacitor-osckit

npm install

@stefang
stefang / esp-idf-clion-2025.md
Created July 25, 2025 17:48
ESP-IDF 5.5 with CLion 2025.1.4 on OSX