Did you know guys can be seen as exclusive language? Consider $generNeutralTerm
instead. $articleLink Come to #guybot-discussions for more information
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ----------------------------------------------------------------------------- | |
/* Shame CSS */ | |
// This is not a dumping ground. It is a staging area for hacks that are | |
// intended to be fixed and resolved so as not to sully our | |
// production-ready codebase. Hacks are necessary, but they are not | |
// permanent, nor are they acceptable long-term. You are not done when | |
// you've moved your selector and rules here. | |
// This is not intended to be an easy fix, or a simple way out. You will | |
// spend time writing out your shame, and you will make it known that |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<iframe | |
src="/asset/you/wanna/include.html" | |
style="visibility: collapse; position: absolute; height: 0; width: 0;left: -100%;top: -100%;" | |
onload="this.parentNode.insertBefore((this.contentDocument.body || this.contentDocument).firstChild, this);this.parentNode.removeChild(this)" | |
></iframe> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "nm-engineering-tech-blog", | |
"main": "src/server/server.js", | |
"engines": { | |
"node": "^8.9.1" | |
}, | |
"scripts": { | |
"start": "...", | |
"dev": "rimraf ./dist && yarn build:copy && export NODE_ENV=dev && ./node_modules/.bin/nodemon --exec 'yarn server'", | |
"server": "...", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const actionTypes = [ | |
'ACTION_NAME', | |
].reduce((actions, action) => { | |
actions[action] = action; | |
return actions | |
}, {}); | |
//will output { ACTION_NAME: 'ACTION_NAME' } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const actionTypes = [ | |
'ACTION_NAME', | |
].reduce((actions, action) => { | |
actions[action] = action; | |
return actions | |
}, {}); | |
//will output { ACTION_NAME: 'ACTION_NAME' } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Sets up theme-wide options | |
* | |
* @since _geekery_ 1.0 | |
*/ | |
use Carbon_Fields\Container; | |
use Carbon_Fields\Field; | |
Container::make('theme_options', 'Geekery settings') |
- https://css-tricks.com/using-svg/
- https://lincolnloop.com/blog/svg-sprites-and-icon-systems-are-super/
- https://css-tricks.com/svg-sprites-use-better-icon-fonts/
- https://css-tricks.com/icon-fonts-vs-svg/
- https://24ways.org/2014/an-overview-of-svg-sprite-creation-techniques/
- https://css-tricks.com/creating-svg-icon-system-react/
- Deprecated, but a differing opinion: https://css-tricks.com/creating-svg-icon-system-react/
- https://cloudfour.com/thinks/seriously-dont-use-icon-fonts/
- http://ianfeather.co.uk/ten-reasons-we-switched-from-an-icon-font-to-svg/
- https://speakerdeck.com/ninjanails/death-to-icon-fonts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
export default class Icon extends Component { | |
fullName(href='') { | |
return `#${href}_icon-${this.props.glyph}`; | |
} | |
render() { | |
const { glyph } = this.props; | |
let wrapperClasses = [ | |
'_icon', |
NewerOlder