Skip to content

Instantly share code, notes, and snippets.

View curtisbelt's full-sized avatar

Curtis Belt curtisbelt

View GitHub Profile
@curtisbelt
curtisbelt / responsive-font.scss
Last active December 4, 2016 09:35
Responsive Font Mixin
$viewport-desktop-size: 1366;
$viewport-mobile-size: 320;
// Given a range of font sizes ( $mobile-font-size and $desktop-font-size ), apply break points evenly from mobile to desktop widths
@mixin responsive-font( $mobile-font-size, $desktop-font-size, $line-height-buffer: 2 ) {
$number-of-breakpoints-required: $desktop-font-size - $mobile-font-size;
$maximum-viewport-range: $viewport-desktop-width - $viewport-mobile-width;
$breakpoint-multiplier: $maximum-viewport-range / $number-of-breakpoints-required;
font-size: #{$mobile-font-size}px;
line-height: #{$mobile-font-size + $line-height-buffer}px;
@curtisbelt
curtisbelt / Default (Windows).sublime-keymap
Last active November 29, 2016 23:28
Default (Windows).sublime-keymap
[
{ "keys": ["ctrl+alt+p"], "command": "prompt_select_workspace" },
// Auto-space within parentheses
{ "keys": [" "], "command": "insert_snippet", "args": {"contents": " $0 "}, "context":
[
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "preceding_text", "operator": "regex_contains", "operand": "\\($", "match_all": true },
{ "key": "following_text", "operator": "regex_contains", "operand": "^\\)", "match_all": true }
]
},
@curtisbelt
curtisbelt / httpd-vhosts.conf
Created November 13, 2016 00:19
httpd-vhosts.conf for Re-usable Wordpress Installation
<VirtualHost *:80>
ServerName dev.host
UseCanonicalName off
ServerAlias *.host
DocumentRoot E:/wamp64/www/wordpress
<Directory "E:/wamp64/www/wordpress/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>