Skip to content

Instantly share code, notes, and snippets.

Kirk Strobeck kirkstrobeck

Block or report user

Report or block kirkstrobeck

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@kirkstrobeck
kirkstrobeck / cloudSettings
Last active Apr 15, 2019
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2019-03-15T21:27:14.427Z","extensionVersion":"v3.2.7"}
View vscode-css-overrides.css
.editor-actions .actions-container > .action-item > .action-label.icon:not(.textdiff-editor-action) {
display: none !important;
}
View eslintrc.json
{
"extends": "airbnb",
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true,
"modules": true
}
},
View envTest.js
console.log(process.env.NODE_ENV);
@kirkstrobeck
kirkstrobeck / _helpers.scss
Last active Dec 6, 2016
My goto sass helpers
View _helpers.scss
// https://gist.github.com/kirkstrobeck/ae946cce0d27ff3e377d55ee0db5d1e9
@mixin unselectable () {
user-select: none;
cursor: default;
}
// - - -
.align-center {
@kirkstrobeck
kirkstrobeck / .json
Last active Jun 6, 2016
Sublime Text 3 preferences
View .json
{
"animation_enabled": false,
"auto_close_tags": false,
"auto_match_enabled": false,
"binary_file_patterns":
[
"node_modules/*",
"*.png",
"coverage/PhantomJS*"
],
View deepSearchArrayOfObjects.js
function deepSearchArrayOfObjects (attrs) {
var results = [];
for (var i = 0; i < attrs.items.length; i++) {
var obj = attrs.items[i];
var objString = JSON.stringify(obj);
if (objString.indexOf(attrs.search) > -1) results.push(obj);
}
return results;
}
@kirkstrobeck
kirkstrobeck / widow-fix.xsl
Last active May 24, 2016 — forked from MrBlank/Widon't XSLT
Remove unsightly widows by adding a non-breaking space between the last two words in a string.
View widow-fix.xsl
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!--
From: https://gist.github.com/kirkstrobeck/4d8797310883ce7caf04965b573dfeab
Name: Widow Fix
Version: 1.0
Author: Oleg Kurapov
URL: http://www.2sheds.ru/blog/2007/06/widont-in-xslt-dont-be-a-widow-maker/
View gist:52c2763979c205e606a9

Donec sed odio dui. Maecenas sed diam eget risus varius blandit sit amet non magna. Etiam porta sem malesuada magna mollis euismod. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec ullamcorper nulla non metus auctor fringilla. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.

Vestibulum id ligula porta felis euismod semper. Maecenas faucibus mollis interdum. Sed posuere consectetur est at lobortis. Maecenas sed diam eget risus varius blandit sit amet non magna. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Cras mattis consectetur purus sit amet fermentum. Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Maecenas sed diam eget risus varius blandit sit amet non magna. Sed posuer

View autofocus.js
/* global angular */
/**
* https://gist.github.com/mlynch/dd407b93ed288d499778
*
* the HTML5 autofocus property can be finicky when it comes to dynamically
* loaded templates and such with AngularJS. Use this simple directive to tame
* this beast once and for all.
*
* Usage:
* <input type="text" autofocus>
You can’t perform that action at this time.