Skip to content

Instantly share code, notes, and snippets.

View jerrylow's full-sized avatar

Jerry Low jerrylow

View GitHub Profile
@jerrylow
jerrylow / pure-css-donut-chart.scss
Last active June 21, 2021 18:57
Pure CSS Donut Chart Mixin
// Pure CSS Donut Chart
// By: Jerry Low
// How to use sample: https://codepen.io/jerrylow/pen/KKdNXbJ
.donut {
--donut-size: 300px;
--donut-border-width: 20px;
--donut-spacing: 0;
--donut-spacing-color: 255, 255, 255;
--donut-spacing-deg: calc(1deg * var(--donut-spacing));
@jerrylow
jerrylow / .csscomb.json
Last active September 21, 2018 16:09
CSS Comb Sort Alphabetically
{
"sort-order": [[
"$include",
"$extend",
"align-items",
"align-self",
"animation",
"animation-delay",
"animation-direction",
"animation-duration",
@jerrylow
jerrylow / respond-to.scss
Created March 28, 2018 17:24
Breakpoints Mixin
/* Variables */
@function breakpoints($name) {
@return map-get($breakpoints, $name);
}
$breakpoints: (
xs: 480px,
sm: 768px,
md: 992px,
lg: 1200px,
@jerrylow
jerrylow / stacker.scss
Created January 29, 2018 17:52
Pure CSS Game Stacker
@import url('https://fonts.googleapis.com/css?family=VT323');
$block-gap: 8px;
$block-size: 25px;
$blocks-per-row: 7;
$blocks-color: #233f5a;
$blocks-active: #fabc7f;
$blocks-bg: #172031;
$speed: 2.5s;
@jerrylow
jerrylow / responsive.jquery.js
Last active March 23, 2018 17:20
jQuery Responsive/Breakpoint Optimized Library
/**
* @file responsive.js
* Helper script that will be used for making front-end changes bases on
* boostrap breakpoints.
* Full Library Version: https://github.com/jerrylow/breakpoints
* ---------------------------------------------------------------------
*
*
* Initiate:
* $(window).responsive();
@jerrylow
jerrylow / index.slim
Created December 20, 2017 18:25
React: Large Dataset Filtering Performance
div#content