Skip to content

Instantly share code, notes, and snippets.

View millerrach's full-sized avatar

Rachel millerrach

  • Target
  • MN
View GitHub Profile
@millerrach
millerrach / no-scrollbar.css
Created May 28, 2018 17:47
No Scrollbar in Chrome
::-webkit-scrollbar {
display: none;
}
@millerrach
millerrach / find-width-height.js
Last active May 28, 2018 17:49
React - Find Width and Height
class App extends Component {
constructor() {
super();
this.state = {
width: 0,
height: 0,
}
this.updateDimensions = this.updateDimensions.bind(this);
}
componentWillMount() {

Keybase proof

I hereby claim:

  • I am millerrach on github.
  • I am millerrach (https://keybase.io/millerrach) on keybase.
  • I have a public key ASCgWp9tnAGLbjNfbHEXonBnOdWs4jK15KIBB3vx73y-dwo

To claim this, I am signing this object:

@millerrach
millerrach / ifSpaceChangeStyle.js
Created June 10, 2017 08:20
React - If space, change styling
let mapData = data.map((item, i) => {
let title = item.title;
let mapDataStyle = {
fontFamily: 'Montserrat',
color: '#4D4D4D',
fontSize: 20,
whiteSpace: title.indexOf(' ') === -1 ? null : 'initial',
lineHeight: title.indexOf(' ') === -1 ? null : 'normal',
marginBottom: title.indexOf(' ') === -1 ? null : 25,
}
@millerrach
millerrach / index.html
Last active May 28, 2018 17:34
SVG Color Transition
<body>
<div class="placement">
<span>
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 16.0.4, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="80px" height="80px" viewBox="0 0 16 16" style="enable-background:new 0 0 16 16;" xml:space="preserve">
<path fill="#7AA4A7" id="color" d="M4.724,14H2.152V6.26h2.572V14z M3.438,5.204H3.422C2.559,5.204,2,4.609,2,3.867
c0-0.759,0.575-1.337,1.456-1.337c0.879,0,1.421,0.579,1.438,1.337C4.894,4.609,4.335,5.204,3.438,5.204z M14,14h-2.572V9.859