Skip to content

Instantly share code, notes, and snippets.

View himedlooff's full-sized avatar

Mike Morici himedlooff

View GitHub Profile
{
"caret_style": "wide",
"color_scheme": "Packages/User/SublimeLinter/base16-eighties.dark (SL).tmTheme",
"create_window_at_startup": false,
"detect_indentation": false,
"draw_white_space": "all",
"find_selected_text": true,
"font_face": "Input Mono",
"font_size": 14.0,
"highlight_line": true,
/* topdoc
name: Padded container
family: cfgov-misc
notes:
- ".padded-container is meant to contain anything you want with consistent
padding. It uses a margin collapsing trick in CSS to achieve this
consistency which this is why .line-container_body is needed. The only
caveat to this consistency is if you place something inside of it that has
a bottom-margin that is larger than the .padded-container padding."
patterns:
var n = [
':namik_smile::namik_smile::namik_smile:',
':namik_smile::spacer::namik_smile:',
':namik_smile::spacer::namik_smile:',
];
var a = [
':namik_smile::namik_smile::namik_smile:',
':namik_smile::spacer::namik_smile:',
':namik_smile::namik_smile::namik_smile::namik_smile:',
];
<?xml version="1.0" encoding="UTF-8"?>
<mxGraphModel dx="3239" dy="2042" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" fold="1" page="1" pageScale="1" pageWidth="1169" pageHeight="826" style="default-style2" math="0"><root><mxCell id="0"/><mxCell id="1" parent="0"/><mxCell id="192" value="" style="edgeStyle=elbowEdgeStyle;entryX=0.5;entryY=0;exitX=0.5;exitY=1;strokeColor=#FFB366;elbow=vertical" parent="1" source="95" target="129" edge="1"><mxGeometry width="100" height="100" relative="1" as="geometry"><mxPoint x="-500" y="970" as="sourcePoint"/><mxPoint x="-400" y="870" as="targetPoint"/><Array as="points"><mxPoint x="-410" y="620"/></Array></mxGeometry></mxCell><mxCell id="176" value="" style="edgeStyle=none;exitX=0.5;exitY=1;entryX=0.5;entryY=0;strokeColor=#FFB366" parent="1" source="152" target="108" edge="1"><mxGeometry width="100" height="100" relative="1" as="geometry"><mxPoint x="-420" y="-594.5" as="sourcePoint"/><mxPoint x="-420" y="-415.5" as="targetPoint"/></mxGeometry></mxCell><mxCell
@himedlooff
himedlooff / github-copy-file-path.js
Last active October 21, 2015 22:14
Paste this into your console to enable click-to-copy on GitHub.com file paths
(function(){
$('.file-info[title], .file-info [title]')
.css('cursor', 'pointer')
.click(function() {
var range = document.createRange();
$(this).html($(this).attr('title'));
range.selectNode(this);
window.getSelection().addRange(range);
try {
var successful = document.execCommand('copy');
@himedlooff
himedlooff / svg-regex.md
Last active February 27, 2018 20:15
SVG Regex
 id="[a-z(-|_)]*"
\n[\s]*
<html>
<head style="display: block; width: 50%; height: 100%; float: left;">
<meta charset="UTF-8">
<title>Live CSS</title>
<style>
* {
box-sizing: border-box;
}
#style {
@himedlooff
himedlooff / prefixing-scss.md
Last active April 21, 2024 13:28
Regex for finding SCSS variables and class declarations and prepending them with a prefix in Sublime Text

SCSS

Field Value
Find \$([a-z\-_]+)
Where -*.js,-*.woff,-*.woff2
Replace $newprefix-$1

Should match these:

Show hidden files on OSX

defaults write com.apple.finder AppleShowAllFiles true
killall Finder