Displays characters remaining from a given total. Used with form inputs. Adds classes when active/above/below/equal the total character allowance.
Tests [y] Accessibility tested [n]
| // ---- | |
| // Sass (v3.4.9) | |
| // Compass (v1.0.1) | |
| // ---- | |
| @mixin property($property, $multiple) { | |
| @supports($property: 1rem){ | |
| #{$property}: ($multiple / $base-font-size) * 1rem; | |
| }; | |
| #{$property}: $multiple * 1px; |
| function getFunctionName (fn) { | |
| return fn.toString().substr(0, fn.toString().indexOf('(')).replace('function ', ''); | |
| } |
Displays characters remaining from a given total. Used with form inputs. Adds classes when active/above/below/equal the total character allowance.
Tests [y] Accessibility tested [n]
| function setCSSAttributeSelectorValue(selector, value) { | |
| return selector.slice(0, selector.lastIndexOf(']')) + '=' + value + ']'; | |
| } |
| The MIT License (MIT) | |
| Copyright (c) 2015 Justin Perry | |
| Permission is hereby granted, free of charge, to any person obtaining a copy of | |
| this software and associated documentation files (the "Software"), to deal in | |
| the Software without restriction, including without limitation the rights to | |
| use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | |
| the Software, and to permit persons to whom the Software is furnished to do so, | |
| subject to the following conditions: |
| function createRandomString(minLen, maxLen) { | |
| var alphabet = 'abcdefghijklmnopqrstuvwxyz'.split(''), | |
| stringLen = Math.floor(Math.random() * (maxLen - minLen + 1)) + minLen, | |
| string = ''; | |
| for(var i = 0; i < stringLen; i++) { | |
| string += alphabet[Math.floor(Math.random() * alphabet.length)]; | |
| } | |
| return string; | |
| } |
/usr/local/lib and delete any node and node_modules/usr/local/include and delete any node and node_modules directorybrew install node, then run brew uninstall node in your terminalCheck your Home directory for any local or lib or include folders, and delete any node or node_modules from there
go to /usr/local/bin and delete any node executable.
You may need to do the additional instructions as well:
Interview questions and resources for recruiting senior front-end developers
#Installing legacy versions of npm
sudo npm install -g [email protected]
Note: If you run without sudo then npm will start uninstalling itself and then exit as it doesn't have su permissions. If you then try to do npm install, it is longer available.