Skip to content

Instantly share code, notes, and snippets.

View Undistraction's full-sized avatar

Pedr Browne Undistraction

View GitHub Profile
@Undistraction
Undistraction / cloudSettings
Last active October 28, 2020 16:28
VSCode Settings For Vladi
{"lastUpload":"2020-10-28T15:31:12.889Z","extensionVersion":"v3.4.3"}
@Undistraction
Undistraction / index.css
Created December 10, 2017 10:35
NegativeAdventurousBluetonguelizard created by Undistractions - https://repl.it/@Undistractions/NegativeAdventurousBluetonguelizard
Empty file
@Undistraction
Undistraction / index.css
Created December 10, 2017 10:35
NegativeAdventurousBluetonguelizard created by Undistractions - https://repl.it/@Undistractions/NegativeAdventurousBluetonguelizard
Empty file
@Undistraction
Undistraction / cloudSettings
Last active May 3, 2019 13:15
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-05-03T13:15:14.357Z","extensionVersion":"v3.2.9"}
let data;
let errorMessage;
const analyseImageWithVibrant = jest.fn(
() => new Promise((resolve, reject) => {
if (data) {
resolve(data);
} else {
reject(errorMessage);
}
@Undistraction
Undistraction / gist:c421369031fc3db1d0838d2c97069717
Created March 1, 2017 10:59
Redux Container With Dynamic Component
import { connect } from 'react-redux';
import React from 'react';
import { loadStepDataRequest } from '../../redux/actions';
import getStepByUid from '../../redux/selectors/getStepByUid';
import * as PropTypes from '../proptypes';
// Take state and feed in to component props
// proptypes.js
import React from 'react';
export const stepData = React.PropTypes.arrayOf(
React.PropTypes.shape({
title: React.PropTypes.string.isRequired,
date: React.PropTypes.string.isRequired,
filename: React.PropTypes.string.isRequired,
colourAnalytics: React.PropTypes.arrayOf(
We couldn’t find that file to show.
@Undistraction
Undistraction / floated-list.scss
Created December 18, 2015 09:37
floated-list mixin
////
/// @group tools
/// @author Pedr Browne
/// @access public
////
/// Create a floated list, clearfixing the container, floating children and
/// setting spacing between them.
///
/// @param {String} $start-from
@Undistraction
Undistraction / SassMeister-input-HTML.html
Created October 27, 2015 11:53
Generated by SassMeister.com.
<div class="Flexbox">
<div class="Flexbox-child"></div>
<div class="Flexbox-child"></div>
</div>
<div class="Flexbox">
<div class="Flexbox-child"></div>
<div class="Flexbox-child"></div>
<div class="Flexbox-child"></div>
</div>