
Pinned Loading
-
FizzBuzzEnterpriseEdition
FizzBuzzEnterpriseEdition PublicForked from EnterpriseQualityCoding/FizzBuzzEnterpriseEdition
A Serious fork of FizzBuzz Enterprise Edition is a no-nonsense implementation of FizzBuzz made by serious businessmen for serious business purposes.
Java
-
Parse keys in static content
Parse keys in static content 1// Whipped this up quick after needing to add in (a lot) of user dynamic data into a static frontend served by a CMS.
2// jsFiddle link: https://jsfiddle.net/nickinnon/ys0Lr42p/
34const testCase = 'some string {{foo}} is {{bar}} testing {{noMatchingKey}} <- nothing over there.';
5 -
Conditionally render components in R...
Conditionally render components in React the functional way. 1// Example on putting conditional renderers in semantic JSX components using basic functional concepts
23const RenderChildren = ({ children }) => (
4<React.Fragment>
5{children}
-
Convert RGBA + background to HEX
Convert RGBA + background to HEX 1// Conert HEX to rgb
2const convertHexToRGB = hex => {
3hex = hex.replace('#','');
4const k = hex.length === 3 ? 2 : 1;
5const getInt = i => parseInt(hex.substring(i/k, (i+k)/k).repeat(k), 16);
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.