Turn into bookmarklets using https://caiorss.github.io/bookmarklet-maker/ for easy access.
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, { forwardRef } from 'react' | |
import styled from 'styled-components' | |
import css, { get } from '@styled-system/css' | |
import { | |
system, | |
compose, | |
space, | |
color, | |
typography, | |
layout, |
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
/** | |
* Group an array of object by a specified key | |
* @param {array} items Array of objects | |
* @param {string} key Key to use for grouping | |
* @returns {object} | |
*/ | |
const groupBy = (items, key) => { | |
return items.reduce( | |
(result, item) => ({ | |
...result, |
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
// Credit: https://gist.github.com/yangshun/9892961 | |
const video = { | |
parse: function(url) { | |
// - Supported YouTube URL formats: | |
// - http://www.youtube.com/watch?v=My2FRPA3Gf8 | |
// - http://youtu.be/My2FRPA3Gf8 | |
// - https://youtube.googleapis.com/v/My2FRPA3Gf8 | |
// - Supported Vimeo URL formats: | |
// - http://vimeo.com/25451551 | |
// - http://player.vimeo.com/video/25451551 |
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
# Sass Helpers | |
- Variables | |
- Functions | |
- Mixins |
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, { forwardRef } from 'react' | |
import styled from 'styled-components' | |
import css, { get } from '@styled-system/css' | |
import { | |
system, | |
compose, | |
space, | |
color, | |
typography, | |
layout, |
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
/** | |
* browserdetect.js | |
* Detect the current browser and version using the user agent. | |
* Credit: https://stackoverflow.com/a/13480430/6272119 | |
*/ | |
var BrowserDetect = { | |
dataBrowser: [ | |
{ string: navigator.userAgent, subString: "Edge", identity: "MS Edge" }, | |
{ string: navigator.userAgent, subString: "MSIE", identity: "Explorer" }, | |
{ string: navigator.userAgent, subString: "Trident", identity: "Explorer" }, |
ps -ax | grep mysql
(stop and kill any MySQL processes)
brew unlink [email protected]
NewerOlder