Skip to content
View nickinnon's full-sized avatar
:shipit:
:shipit:

Block or report nickinnon

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. FizzBuzzEnterpriseEdition FizzBuzzEnterpriseEdition Public

    Forked 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

  2. 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/
    3
    
                  
    4
    const testCase = 'some string {{foo}} is {{bar}} testing {{noMatchingKey}} <- nothing over there.';
    5
    
                  
  3. 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
    2
    
                  
    3
    const RenderChildren = ({ children }) => (
    4
        <React.Fragment>
    5
            {children}
  4. Convert RGBA + background to HEX Convert RGBA + background to HEX
    1
    // Conert HEX to rgb
    2
    const convertHexToRGB = hex => {
    3
      hex = hex.replace('#','');
    4
      const k = hex.length === 3 ? 2 : 1;
    5
      const getInt = i => parseInt(hex.substring(i/k, (i+k)/k).repeat(k), 16);