Skip to content

Instantly share code, notes, and snippets.

View kohlmannj's full-sized avatar

Joseph Kohlmann kohlmannj

View GitHub Profile
@kohlmannj
kohlmannj / .eslintrc
Created January 24, 2017 03:32
.eslintrc Snapshot 2017-01-23
{
"parser": "babel-eslint",
"extends": [
"airbnb"
],
"rules": {
"import/newline-after-import": "off"
}
}
@kohlmannj
kohlmannj / .stylelintrc
Created January 24, 2017 03:30
.stylelintrc Snapshot 2017-01-23
{
"plugins": [
"stylelint-scss"
],
"extends": [
"stylelint-config-sass-guidelines",
"stylelint-config-standard"
],
"rules": {
"indentation": 2,
// Sass Code
.selector {
// This mixin's content block will be wrapped in this media query:
// `@media (min-width: 540px)`
@include size-class(regular) {
width: span(5);
@include font-size(auto, vw) {
// Will output a font-size property and value within a media query:
@kohlmannj
kohlmannj / iframeScale.js
Created December 8, 2014 19:13
jQuery Plugin: iframe Scaler (transforms iframes to fit inside their containing elements)
(function($) {
$.fn.iframeScale = function() {
this.each(function() {
var $iframe = $(this).find("iframe");
var scaleFactor = $(this).width() / $iframe.width();
$iframe.css({
webkitTransform: "scale(" + scaleFactor + ")",
mozTransform: "scale(" + scaleFactor + ")",
msTransform: "scale(" + scaleFactor + ")",
transform: "scale(" + scaleFactor + ")"
@kohlmannj
kohlmannj / index.html
Created April 27, 2012 19:57 — forked from mbostock/.block
Polymaps + D3, Part 2
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?1.29.5"></script>
<script type="text/javascript" src="http://polymaps.org/polymaps.min.js?2.5.0"></script>
<style type="text/css">
html, body {
height: 100%;
background: #E6E6E6;