Skip to content

Instantly share code, notes, and snippets.

View twome's full-sized avatar
💼
Looking for a job

Tom Kenny twome

💼
Looking for a job
View GitHub Profile
@twome
twome / How to remove Windows paths from WSL path.md
Last active June 27, 2022 02:32 — forked from ilbunilcho/How to remove Windows paths from WSL path.md
How to remove Windows paths from WSL `path` environment variable

[Requires WSL Build 17093 or above]

You can override WSL's settings by editing /etc/wsl.conf in the WSL filesystem. (Normally, this file doesn't exist at first.)

$ sudo vi /etc/wsl.conf

[interop]
appendWindowsPath = false
@twome
twome / close_deleted_files.py
Last active January 30, 2019 15:03 — forked from michaelkonecny/close_deleted_files.py
Sublime Text plugin - close tabs containing deleted files on refocus
"""
When a view is focused, goes through all open tabs and closes those, whose files don't exist anymore.
Tested in Sublime Text 3.0 macOS 10.14.2
"""
import sublime_plugin
import sublime
import time
import os
# I Pledge To Be Better
I want our industry to be a safe, welcoming and inclusive place for everyone, regardless of
their gender, abilities, skin color, sexual orientation, age, class, neuro-diversity or any other attribute.
I acknowledge that this is not currently the case, and will do my best, to the extent that I can
afford to dedicate to this, to help make ours a better community and industry.
I value the diversity of perspectives that people with different backgrounds bring to the table.
I will call out exclusionary practices, behaviors or cultures and see how, together, we can perhaps
reshape them to be inclusive and supportive instead.
@twome
twome / bem.md
Created April 15, 2013 05:23 — forked from dmfrancisco/bem.md

BEM – meaning block, element, modifier – is a front-end naming methodology. CSSWizardry uses a naming scheme based on BEM, but honed by Nicolas Gallagher. The naming convention follows this pattern:

.block {}
.block__element {}
.block--modifier {}
  • .block represents the higher level of an abstraction or component
  • .block__element represents a descendent of .block that helps form .block as a whole
  • .block--modifier represents a different state or version of .block