Skip to content

Instantly share code, notes, and snippets.

@EmSixTeen
EmSixTeen / discord-teams.css
Created March 4, 2024 07:56
MS Teams-esque look for Discord
:root {
--c-white: #ffffff;
--c-purple-700: #5052ac;
--c-purple-500: #7679e4;
--c-purple-400: #8085ee;
--c-grey-900: #0a0a0a;
--c-grey-800: #141414;
--c-grey-700: #1f1f1f;
--c-grey-600: #292929;
--c-grey-500: #2b2b3e;
@EmSixTeen
EmSixTeen / input.scss
Created November 28, 2023 15:00
Generated by SassMeister.com.
@use 'sass:meta';
@use 'sass:map';
@use 'sass:string';
$color-palette: (
rose: (
'050': #fcf5f6,
'100': #f8e3e6,
'200': #f1c7cd,
'300': #eaa7b0,
@EmSixTeen
EmSixTeen / input.scss
Created August 30, 2023 13:59
Generated by SassMeister.com.
@use 'sass:meta';
@use 'sass:map';
@use 'sass:string';
$color-palette: (
rose: (
'050': #fcf5f6,
'100': #f8e3e6,
'200': #f1c7cd,
'300': #eaa7b0,
@EmSixTeen
EmSixTeen / wp-query-ref.php
Created January 24, 2022 13:25 — forked from luetkemj/wp-query-ref.php
WP: Query $args
// This gist is now maintained on github at https://github.com/luetkemj/wp-query-ref
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.github.io
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters
* Source: https://core.trac.wordpress.org/browser/tags/4.9.4/src/wp-includes/query.php
*/
@EmSixTeen
EmSixTeen / echo-enqueued-styles-scripts-wordpress.php
Created November 11, 2021 13:11 — forked from omurphy27/echo-enqueued-styles-scripts-wordpress.php
Wordpress - Print Out All Enqueued Scripts And Styles On A Page
<?php
// add the below to your functions file
// then visit the page that you want to see
// the enqueued scripts and stylesheets for
function se_inspect_styles() {
global $wp_styles;
echo "<h2>Enqueued CSS Stylesheets</h2><ul>";
foreach( $wp_styles->queue as $handle ) :
echo "<li>" . $handle . "</li>";
@EmSixTeen
EmSixTeen / html-languages.txt
Last active November 3, 2021 09:24 — forked from JamieMason/html-languages.txt
HTML lang attribute / ISO language code reference / Culture names
CULTURE SPEC.CULTURE ENGLISH NAME
--------------------------------------------------------------
Invariant Language (Invariant Country)
af af-ZA Afrikaans
af-ZA af-ZA Afrikaans (South Africa)
ar ar-SA Arabic
ar-AE ar-AE Arabic (U.A.E.)
ar-BH ar-BH Arabic (Bahrain)
ar-DZ ar-DZ Arabic (Algeria)
ar-EG ar-EG Arabic (Egypt)
@EmSixTeen
EmSixTeen / yt-expand_show_more.js
Created April 28, 2021 07:04
Automatically expand "Show more" on the YouTube video details page
/*
Automatically expand the 'Show more' button on the 'Video details' page for YouTube videos
Adapted from: https://stackoverflow.com/a/29754070/493159
2021.04.28
*/
// Call the below function
waitForElementToDisplay("#toggle-button", function () {
document.getElementById("toggle-button").click();
}, 1000, 9000);