For example, you want to set 40% alpha transparence to #000000
(black color), you need to add 66
like this #66000000
.
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 * as React from 'react'; | |
import { useDropzone, DropzoneProps, DropzoneState } from 'react-dropzone'; | |
import { Omit } from '@utils/typescript'; | |
import Box from '@components/Box'; | |
import { Button } from '@components/Button'; | |
import { H5, P } from '@components/Typography'; | |
import IconCircleCheckFull from '@icons/CircleCheckFull'; |
Share URLs
Here’s a collection of common social share URLs and examples of their structures along with links to documentations.
(The code has been broken up into several lines for readability—remember to remove any spaces and line breaks in the href if you copy & paste.)
Taken from Responsible Social Share Links
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
var passwordStrength = { | |
REGEX_PASSWORD_ONE_UPPERCASE : /^(?=.*[A-Z]).*$/, //Should contain one or more uppercase letters | |
REGEX_PASSWORD_ONE_LOWERCASE : /^(?=.*[a-z]).*$/, //Should contain one or more lowercase letters | |
REGEX_PASSWORD_ONE_NUMBER : /^(?=.*[0-9]).*$/, //Should contain one or more number | |
REGEX_PASSWORD_ONE_SYMBOL : /^(?=.*[!@#$%&_]).*$/, //Should contain one or more symbol | |
checkStrength: function (password) { | |
length = password.length; | |
//Will contain password strength |
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
(function ($) { | |
$.fn.changeElementType = function (newType) { | |
var attrs, elem, $elem; | |
for (var i = 0, il = this.length; i < il; i++) { | |
attrs = {}; | |
$elem = $(elem = this[i]); | |
$.each(elem.attributes, function (index, attr) { | |
attrs[attr.nodeName] = attr.nodeValue; | |
}); |
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
# vim:ft=zsh ts=2 sw=2 sts=2 | |
# | |
# agnoster's Theme - https://gist.github.com/3712874 | |
# A Powerline-inspired theme for ZSH | |
# | |
# # README | |
# | |
# In order for this theme to render correctly, you will need a | |
# [Powerline-patched font](https://gist.github.com/1595572). | |
# |
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
$.fn.setAllToMaxHeight = function(){ | |
return this.height( Math.max.apply(this, $.map( this , function(e){ return $(e).height() }) ) ); | |
} | |
// usage: $(‘div.unevenheights’).setAllToMaxHeight(); |