I hereby claim:
- I am doughamlin on github.
- I am doughamlin (https://keybase.io/doughamlin) on keybase.
- I have a public key ASCoOgQvYFKaBC407xmvm0rDe2MouOOUjcSbG2bo3IU-Two
To claim this, I am signing this object:
# EditorConfig helps developers define and maintain consistent | |
# coding styles between different editors and IDEs | |
# editorconfig.org | |
root = true | |
[*] | |
# Change these settings to your own preference | |
indent_style = space |
I hereby claim:
To claim this, I am signing this object:
/** | |
* Converts a list of SVG polygon points to fractions/bounding box units | |
* | |
* @param {string} points Space separated list of points from Illustrator/Sketch/etc. export (each point is a comma separated X,Y pair) | |
* @param {number} width Bounding box width | |
* @param {number} height Bouding box height | |
*/ | |
function convertSVGPoints(points, width, height) { | |
var convertedPoints = []; | |
points = points.split(' '); |
@mixin bg($url, $color: transparent, $repeat: no-repeat, $position: center center, $size: contain) { | |
background: $color url($url) $repeat $position; | |
background-size: $size; | |
} | |
@mixin size($width, $height: $width) { | |
width: $width; | |
height: $height; | |
} |
@mixin font-size($size) { | |
font-size: $size + px; | |
font-size: ($size/10) + rem; | |
} | |
@mixin height($size) { | |
height: $size + px; | |
height: ($size/10) + rem; | |
} | |
@mixin min-height($size) { | |
min-height: $size + px; |
// ---- | |
// Sass (v3.3.0.rc.1) | |
// Compass (v0.13.alpha.7) | |
// ---- | |
@mixin margin($margin) { | |
@if length($margin) == 1 { | |
margin: $margin+px; | |
margin: $margin/10+rem; | |
} |
// ---- | |
// Sass (v3.3.0.rc.1) | |
// Compass (v0.13.alpha.7) | |
// ---- | |
@mixin padding($padding) { | |
padding: @each $value in $padding { $value + px }; | |
padding: @each $value in $padding { ($value / 10) + rem }; | |
} | |
.test1 { |
$background: #fff; | |
$text: #444; | |
.spoiler { | |
color: $background; | |
background: $background; | |
&:hover { color: $text; } | |
&:before { | |
content: '(Spoiler alert. Hover to reveal.): '; | |
color: darken($text, %10); |
function roundTo(x,n) { | |
if(!n) { n = 2; } | |
var result = x * Math.pow(10,n); | |
var result = Math.round(result); | |
var result = result / Math.pow(10,n); | |
return result; | |
} |
add_action('init', 'CONTENTTYPE_register'); | |
function CONTENTTYPE_register() { | |
$labels = array( | |
'name' => _x('CONTENTTYPE NAME', 'post type general name'), | |
'singular_name' => _x('CONTENTTYPE NAME', 'post type singular name'), | |
'add_new' => _x('Add New', 'CONTENTTYPE NAME'), | |
'add_new_item' => __('Add New CONTENTTYPE NAME'), | |
'edit_item' => __('Edit CONTENTTYPE NAME'), | |
'new_item' => __('New CONTENTTYPE NAME'), |