Remove untracked/ignored files/directories and uncommitted changes.
$ git clean -xfd
$ git submodule foreach --recursive git clean -xfd
$ git reset --hard
#!/usr/bin/env bash | |
# PHP Switcher | |
# Easily switch between PHP versions with Homebrew and Laravel Valet. | |
# Copyright (C) Kyle Brumm <http://kylebrumm.com> | |
# | |
# Credit/Resources: | |
# https://gist.github.com/bgarrant/b9a2f7fb8ff06c9a45086359ded7a95e | |
# https://raw.githubusercontent.com/conradkleinespel/sphp-osx/master/sphp |
ps -ax | grep mysql
(stop and kill any MySQL processes)
brew unlink [email protected]
/** | |
* 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" }, |
import React, { forwardRef } from 'react' | |
import styled from 'styled-components' | |
import css, { get } from '@styled-system/css' | |
import { | |
system, | |
compose, | |
space, | |
color, | |
typography, | |
layout, |
# Sass Helpers | |
- Variables | |
- Functions | |
- Mixins |
// 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 |
Turn into bookmarklets using https://caiorss.github.io/bookmarklet-maker/ for easy access.