Skip to content

Instantly share code, notes, and snippets.

View richmccartney's full-sized avatar
🎯
Focusing

Richard McCartney richmccartney

🎯
Focusing
View GitHub Profile
@richmccartney
richmccartney / input.scss
Created August 4, 2023 10:44
Generated by SassMeister.com.
///
/// Map deep get
///
/// @author Kitty Giraudel
/// @access public
/// @param {Map} $map - Map
/// @param {Arglist} $keys - Key chain
///
/// @return {*} - Desired value
///

Palindrome function exercise

Write a function that takes a number and returns a number that is both GREATER and a PALINDROME.

Example

nextPalindrome(104) => 111
nextPalindrome(91) => 99
nextPalindrome(146703) => 147741
/*
Prompt: write a function that takes a number and returns a number that is both GREATER and a PALINDROME.
Ex.
nextPalindrome(104) => 111
nextPalindrome(91) => 99
nextPalindrome(146703) => 147741
*/
const nextPalindrome = (num) => { }
@richmccartney
richmccartney / Image.js
Created March 21, 2019 17:33
Image Component with IntersectionObserver
import "intersection-observer";
import React, { Component } from "react";
const styles = {
'width': '400px',
'minHeight': '200px',
'marginBottom': '20px'
}
class Image extends Component {
@richmccartney
richmccartney / pr-template-bookmarklet.js
Last active October 19, 2018 10:40
PR Template Bookmarklet
javascript: (function() {
var e = document.getElementById("pull-request-description");
if (e) {
if (e.value) {
e.value += "\n\n";
}
e.value +=
" #### What does this PR do?\n\n #### Any background context you want to provide?\n\n #### Where should the reviewer start?\n\n #### How should this be manually tested?\n\n #### Additional information or screenshots\n\n ";
}
})();
<pre style="font: 10px/5px monospace;">````````````````..,,,``.....`````````````.......````````````````````````................```````````````````````````````````````````````````````````````````````````````,...`````````````````````````````
``````````````..,,,``....```````````````......```````````````````````````............``````````````````````````````````````````````````````````````````````````````````.....````````````````````````````
`````````````..,,```...``````````````.......``````````````````````````````......```````````````````````````````````````````````````````````````````````````````````````.,...````````````````````````````
```````````...,.```.`.`````````````.......``````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````,..,````````````````````````````
``````````...,``````````````````........````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````,...`````````
<pre style="font: 10px/5px monospace;">````````````````..,,,``.....`````````````.......````````````````````````................```````````````````````````````````````````````````````````````````````````````,...`````````````````````````````
``````````````..,,,``....```````````````......```````````````````````````............``````````````````````````````````````````````````````````````````````````````````.....````````````````````````````
`````````````..,,```...``````````````.......``````````````````````````````......```````````````````````````````````````````````````````````````````````````````````````.,...````````````````````````````
```````````...,.```.`.`````````````.......``````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````,..,````````````````````````````
``````````...,``````````````````........````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````,...`````````
@richmccartney
richmccartney / SassMeister-input.scss
Last active February 19, 2016 11:25
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
$base-spacing-unit: 20px !default;
@mixin spacing($spacing, $spacing-unit) {
$directions: top right bottom left;
$sizes: (tiny: $spacing-unit / 4, small: $spacing-unit / 2, large: $spacing-unit * 2, huge: $spacing-unit * 4);
@richmccartney
richmccartney / SassMeister-input.scss
Created February 18, 2016 00:24
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
////
/// @author Web Team at Canonical Ltd
/// @link http://ubuntudesign.github.io/vanilla-framework/docs/#mixin-vf-forms
/// @since 0.0.3
////
@richmccartney
richmccartney / SassMeister-input.scss
Last active February 17, 2016 23:30
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
$base-spacing-unit: 20px !default;
@mixin spacing($spacing, $spacing-unit) {
$directions: top right bottom left horizontal vertical none;
$sizes: (tiny: $spacing-unit/4, small: $spacing-unit/2, large: $spacing-unit*2, huge: $spacing-unit*4);