Skip to content

Instantly share code, notes, and snippets.

View thexmanxyz's full-sized avatar
🐌
work work work

Andreas Kar thexmanxyz

🐌
work work work
View GitHub Profile
@thexmanxyz
thexmanxyz / loading-io-all-loader-primary.scss
Last active August 19, 2022 09:34
Loading.io - Pure CSS loader - all 12 and small version (CSS, SCSS and SCSS+$primary) - credits @ https://loading.io
/* All 12 Loading.io (plus small version for each) pure CSS loaders in one file, combined with $primary using e.g. template primary-color */
/* You can change the spinner with the classes load1 - load8 and load1-small - load8-small */
/* credits @ https://loading.io and https://github.com/loadingio/css-spinner/ */
/* circle */
.lds-circle, .lds-circle-small {
display: inline-block;
width: 64px;
height: 64px;
margin: 8px;
@thexmanxyz
thexmanxyz / css-loader-all-loader.css
Last active March 29, 2020 13:51
CSS-Loader - Pure CSS loader - all 8 and small versions (CSS and SCSS) - credits @ https://github.com/lukehaas/css-loaders
/* All 8 CSS-Loader (plus small version for each) pure CSS loaders in one file */
/* Uses black on white and not white on turquise like the original */
/* Add <div class="load1 loader">Loading...</div> to your HTML markup */
/* You can change the spinner with the classes load1 - load8 and load1-small - load8-small */
/* credits @ https://github.com/lukehaas/css-loaders */
/* load1 */
.async-gmaps-spinner.load1.loader,
.async-gmaps-spinner.load1-small.loader,
.async-gmaps-spinner.load1.loader:before,
@thexmanxyz
thexmanxyz / Simple-Overlay-Cookie.css
Last active April 8, 2020 13:19
Simple Overlay with Cookie (only shown once or on action)
@thexmanxyz
thexmanxyz / Multiply-Recursion-JS.js
Created May 4, 2020 09:48
Multiply Resursion JS
function multiply(arr, n) {
if (n <= 0) { // return 0 if count is 0 or negative
return 0;
} else { // sum up the next n - 1 elements with the current element
return multiply(arr, n - 1) + arr[n - 1];
}
}
@thexmanxyz
thexmanxyz / Config-Explore-Gantry5.html.twig
Created May 26, 2020 11:36
Explore Gantry5 configuration in TWIG
{# retrieve configuration #}
{{ dump(gantry.config) }}
{# retrieve styles configuration #}
{{ dump(gantry.config.styles) }}
{# retrieve breakpoint configuration #}
{{ dump(gantry.config.styles.breakpoints) }}
{# you can also obtain particle configurations via gantry.particles #}