Skip to content

Instantly share code, notes, and snippets.

View m-bodmer's full-sized avatar

Marc Bodmer m-bodmer

View GitHub Profile
@m-bodmer
m-bodmer / rules.yml
Created November 14, 2023 16:38
golangci config
run:
timeout: 5m
modules-download-mode: readonly
skip-files:
- pkg/gql_types/gql_types.go
linters:
# We'll track the golangci-lint default linters manually
# instead of letting them change without our control.
disable-all: true

BEM Cheatsheet

BLOCK

Block encapsulates a standalone entity that is meaningful on its own.

While blocks can be nested and interact with each other, semantically they remain equal; there is no precedence or hierarchy.

Holistic entities without DOM representation (such as controllers or models) can be blocks as well.

@m-bodmer
m-bodmer / gist:928b9a926757f92db62f
Created November 15, 2014 22:04
Arduino Neopixel Flutter and Breathe - Yellow
#include <Adafruit_NeoPixel.h>
#define PIN 1
// Parameter 1 = number of pixels in strip
// Parameter 2 = pin number (most are valid)
// Parameter 3 = pixel type flags, add together as needed:
// NEO_KHZ800 800 KHz bitstream (most NeoPixel products w/WS2812 LEDs)
// NEO_GRB Pixels are wired for GRB bitstream (most NeoPixel products)
Adafruit_NeoPixel strip = Adafruit_NeoPixel(3, PIN, NEO_GRB + NEO_KHZ800);
@m-bodmer
m-bodmer / README.md
Last active December 22, 2015 04:39
Bing news search widget for Dashing
# the admin password for all of the IE VMs is “Password1″ without the quotes, it's also used for the password hints
1) Install VirtuaBox on your mac
http://download.virtualbox.org/virtualbox/4.1.10/VirtualBox-4.1.10-76795-OSX.dmg
2) Decide which versions of Internet Explorer you want to download and install – each version of Internet Explorer is contained within a separate virtual machine that runs within VirtualBox. In other words, if you want to run Internet Explorer 7, 8, and 9, you will need to download three separate VM’s, which may take a while so keep that in mind. Select the text below and copy it:
# Install ALL versions of Internet Explorer: IE 7, IE 8, and IE 9 (for now this script will also pull down a IE 6 vm with windows xp)