Skip to content

Instantly share code, notes, and snippets.

View esteinborn's full-sized avatar

Eric Steinborn esteinborn

View GitHub Profile
@font-face {
font-family: 'MyFontFamily';
src: url('myfont-webfont.eot?#iefix') format('embedded-opentype'),
url('myfont-webfont.woff') format('woff'),
url('myfont-webfont.ttf') format('truetype'),
url('myfont-webfont.svg#svgFontName') format('svg');
}
@mixin breakpoint($size: "", $maxWidth: false, $noMQSelector: "") {
@if $size == "" {
$size: 55em; // Put your "main" or most-used breakpoint here to use it as a default
}
@if $noMQSelector == true {
$noMQSelector: ".oldie"; // this is the default catch all selector, jsut pass true, unquoted.
}
// Default, `min-width` media query
@esteinborn
esteinborn / bling.js
Last active August 29, 2015 14:23 — forked from paulirish/bling.js
/* bling.js */
window.$ = document.querySelectorAll.bind(document)
Node.prototype.on = window.on = function (name, fn) {
this.addEventListener(name, fn)
}
NodeList.prototype.__proto__ = Array.prototype
@esteinborn
esteinborn / SassMeister-input.scss
Created July 10, 2015 18:48
Generated by SassMeister.com.
// ----
// Sass (v3.4.14)
// Compass (v1.0.3)
// Zen Grids (v1.4)
// ----
@import "zen";
$bp-large: 1024px;
%zen-grid-1-1 {
@esteinborn
esteinborn / pptpVPNreconnect
Created February 11, 2016 02:55
REconnect PPTP VPN profile for Synology
#!/bin/sh
#version 2014-04-26
VPNC_CONNECTING="/usr/syno/etc/synovpnclient/vpnc_connecting"
#get connection name
CONNECTION=`cat /usr/syno/etc/synovpnclient/pptp/pptpclient.conf | grep conf_name | awk 'BEGIN {FS="="} {print $2}'`
#get connection id
ID=`ls /usr/syno/etc/synovpnclient/pptp/ | grep options | awk 'BEGIN {FS="_"} {print $2}' | awk 'BEGIN {FS="."} {print $1}'`
@esteinborn
esteinborn / gulpfile.js
Last active February 19, 2019 21:41
Gulp 4 Gulpfile
/* global require exports */
/* eslint-env node */
/* eslint no-console: 0 */
/* eslint max-len: 0 */
/* eslint prefer-destructuring: 0 */
const {
watch,
series,
src,
@esteinborn
esteinborn / _default-variables.scss
Last active October 8, 2019 18:59
sass-migrator error
$base-font-color: hsla(0, 0%, 13%, 1); // 87% Black
$body-bg: $white !default;
$open-sans: 'open-sans', sans-serif;
$font-family-serif: $open-sans;
$font-family-base: $open-sans;
$body-font-size: 16px;
$letter-spacing: .03em;
$table-cell-padding: 1.25rem !default;
$table-condensed-cell-padding: 1rem !default;
$table-bg: hsla(0, 0%, 95%, .7);