Skip to content

Instantly share code, notes, and snippets.

View bradonomics's full-sized avatar

Brad West bradonomics

View GitHub Profile
@bradonomics
bradonomics / cloudSettings
Last active October 31, 2022 15:31
Visual Studio Code Settings Sync Gist
{"lastUpload":"2022-10-31T15:31:09.330Z","extensionVersion":"v3.4.3"}
[
{ "keys": ["ctrl+up"], "command": "swap_line_up" },
{ "keys": ["ctrl+down"], "command": "swap_line_down" },
{ "keys": ["shift+tab"], "command": "unindent" },
{
"keys": ["ctrl+1"],
"command": "set_layout",
"args":
{
"cols": [0.0, 1.0],
# initialization file (not found)
@bradonomics
bradonomics / inline_svg_helpers.rb
Created January 7, 2021 14:51 — forked from josepmartins/inline_svg_helpers.rb
SVG inline helpers for Rails
# Inline svg from @tomeara https://gist.github.com/tomeara/6515860
def inline_svg(path)
file = File.open("app/assets/images/#{path}", "rb")
raw file.read
end
# Use SVG internal link
def use_svg(clazz)
content_tag(:svg, content_tag(:use, "", { "xlink:href" => '#icon-' + clazz }), class: "icon icon-#{clazz}")
end
@bradonomics
bradonomics / userContent.css
Last active August 12, 2022 15:57
CSS Overrides for FireFox
@-moz-document domain(my.1password.com) {
.vault-view #vault-content #search,
.vault-view #vault-content #item-list,
.vault-view #vault-content #item-list-info-box,
.vault-view #vault-content #watchtower-dashboard {
width: 550px !important;
}
.vault-view #vault-content #item-details,
.vault-view #vault-content #item-details section.toolbar,
.toolbar--toolbar_ZG8Vl {
@bradonomics
bradonomics / stylebot.json
Last active March 13, 2020 16:22
Stylebot Options Backup
{
"*": {
"_enabled": false,
"_rules": {}
},
"austinkleon.com": {
"_enabled": true,
"_rules": {
"body": {
"font-size": "1em"
@bradonomics
bradonomics / utilities-display.scss
Last active February 5, 2021 15:32
Sass Utilities on traveltripper.com
// Display
.d-flex {
display: flex !important;
}
.flex-column {
flex-direction: column !important;
}
.justify-content-start {
@bradonomics
bradonomics / ie-edge-targets.scss
Created September 28, 2018 20:28
When you still need to target IE and Edge browsers.
@supports (-ms-ime-align: auto) {
// Target Edge
}
@media all and (-ms-high-contrast: none) {
// Target IE11
}
.highlight, .highlighter-rouge {
background-color: #F7F8FA;
color: #5A6575;
border: none;
}
.highlight .lineno {
color: #B1B8C4
}
@bradonomics
bradonomics / sources.list
Last active May 17, 2018 19:42
Ubuntu 18.04 LTS Sources File
# deb cdrom:[Ubuntu 18.04 LTS _Bionic Beaver_ - Release amd64 (20180425)]/ bionic main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ bionic main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ bionic main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted