Skip to content

Instantly share code, notes, and snippets.

View kmuncie's full-sized avatar
🐢
Serverless at ♥️

Kevin Muncie kmuncie

🐢
Serverless at ♥️
View GitHub Profile
@kmuncie
kmuncie / usefulRegex.txt
Last active November 17, 2019 02:06
Useful SED and Regex Commands
// Used this to convert Compass experimental mixins to plain CSS (MacOS)
find sass -type f -name "*.scss" -exec sed -E -i '' "s/@include experimental\(([a-zA-Z-]*), ([0-9a-zA-Z-]*)\)/\1: \2/g" {} +
// Used this to convert Compass border-radius mixins to plain CSS (MacOS)
find sass -type f -name "*.scss" -exec sed -E -i '' "s/@include border-radius\(([0-9a-zA-Z]*)\)/border-radius: \1/g" {} +
// Used this to convert Compass transition-property mixins with a single property to plain CSS (MacOS)
find sass -type f -name "*.scss" -exec sed -E -i '' "s/@include transition-property\(([a-zA-Z]*)\)/transition-property: \1/g" {} +
// Used this to convert Compass transition-duration mixins with a single property to plain CSS (MacOS)
@kmuncie
kmuncie / spacing-test.html
Last active January 18, 2019 21:58
Spacing Test
<!DOCTYPE html>
<html lang="crk-x-cys" dir="ltr" xml:lang="crk-x-cys">
<head>
<meta charset="utf-8">
<title>title</title>
<style>
body {
font-family: "Segoe UI",Roboto,"Noto Sans","Helvetica Neue",Helvetica,Arial,"Arial Unicode MS",sans-serif;
}
</style>
@kmuncie
kmuncie / trackpointConfig.md
Created May 27, 2018 19:49
Trackpoint Config for Thinkpad's with Ubuntu
@kmuncie
kmuncie / deleteOldBranches.txt
Created December 28, 2017 16:39
Git 1.9.1 Delete old branches
git for-each-ref --sort=committerdate refs/heads/ --format='%(refname:short) %(committerdate:relative)' | grep '1 year' | awk '{print $1}' | xargs git branch -d
@kmuncie
kmuncie / delete_branches_older_than.sh
Created December 28, 2017 16:03 — forked from antonio/delete_branches_older_than.sh
Script to delete branches older than a certain date
#!/bin/sh
date=$1
DRY_RUN=1
for branch in $(git branch -a | sed 's/^\s*//' | sed 's/^remotes\///' | grep -v 'master$'); do
if [[ "$(git log $branch --since $date | wc -l)" -eq 0 ]]; then
if [[ "$branch" =~ "origin/" ]]; then
local_branch_name=$(echo "$branch" | sed 's/^origin\///')
if [[ "$DRY_RUN" -eq 1 ]]; then
@kmuncie
kmuncie / typeScales.scss
Created November 15, 2017 20:20
Type Scales - Why?
// Standard modular scale with base and ratio
https://codepen.io/kmuncie/pen/gxKBVd
$modularscale: (
base: 1em,
ratio: 1.195
);
// ms(0) 1em 16px
// ms(1) 1.195em 19.12px

Keybase proof

I hereby claim:

  • I am kmuncie on github.
  • I am kmuncie (https://keybase.io/kmuncie) on keybase.
  • I have a public key ASBKikoa0v238vJbryexkOw37_vOQ8u9dq1BW8rl1zn0pQo

To claim this, I am signing this object:

@kmuncie
kmuncie / styleUpdate.css
Created May 9, 2017 20:06
RP Style Updates
body {
/* font-size: 80%; REMOVE THIS LINE FOR LARGER TEXT */
font-family: "Helvetica Light",Helvetica,"Droid Sans",Arial,Arial Unicode MS,sans-serif;
}
/* This is for standard headings globally */
h1, h2, h3, h4, h5, h6 {
font-weight: 200;
}
@kmuncie
kmuncie / startTime.sh
Created October 17, 2016 19:26
Bash command for start time
--startTime "$(date -u +'%Y-%m-%dT%H:%M:%SZ' -d '2 min ago')"
diff --git a/sass/core/applications/_highlight.scss b/sass/core/applications/_highlight.scss
index 19f7c6c..e3c2ae2 100644
--- a/sass/core/applications/_highlight.scss
+++ b/sass/core/applications/_highlight.scss
@@ -27,7 +27,7 @@ h6.selectedContentHighlight {
// few pixels and throws off the text wrapping on some scriptures
// See http://browserhacks.com/#hack-28f493d247a12ab654f6c3637f6978d5 for details
// on targeting IE 10+/Edge browsers using media query
-@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
+@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {