This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# make sure to `pip install markdown` before you run this script :) | |
# generates beautiful html files in `docs` folder for every markdown file in the root folder | |
import shutil, markdown, os; shutil.rmtree("docs") if os.path.exists("docs") else None; os.mkdir("docs"); [open("docs/" + file.name.replace(".md", ".html"), "w").write('<link href="https://cdn.statically.io/gh/ayshptk/html.css/main/flavor/white.min.css" rel="stylesheet" >\n<meta name="viewport" content="width=device-width, initial-scale=1.0">\n' + markdown.markdown(file.read())) for file in [open(file, "r") for file in [f for f in os.listdir() if f.endswith(".md")]]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create an Audio Context | |
let context = new AudioContext() | |
// Create an Oscillator | |
let osc = context.createOscillator() | |
// Lower the volume | |
/* | |
.createGain() represents a change in Volume | |
It's an `AudioNode` audio-processing module that causes a given 'gain' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
// Load plugins | |
const autoprefixer = require("autoprefixer"); | |
const browsersync = require("browser-sync").create(); | |
const cp = require("child_process"); | |
const cssnano = require("cssnano"); | |
const del = require("del"); | |
const eslint = require("gulp-eslint"); | |
const gulp = require("gulp"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Show products only of selected category. | |
*/ | |
function get_subcategory_terms( $terms, $taxonomies, $args ) { | |
$new_terms = array(); | |
$hide_category = array( 126 ); // Ids of the category you don't want to display on the shop page | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title></title> | |
<style> | |
.profile-grid-wrapper { | |
-webkit-backdrop-filter: blur(7px) saturate(110%); | |
backdrop-filter: blur(7px) saturate(110%); | |
background-color: rgba(255, 255, 255, 0.7); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'woocommerce_checkout_fields' , 'woo_remove_billing_checkout_fields' ); | |
/** | |
* Remove unwanted checkout fields | |
* | |
* @return $fields array | |
*/ | |
function woo_remove_billing_checkout_fields( $fields ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_toggles = {} | |
makeToggle = (id, fn, delay = 250) => { | |
const elem = document.querySelector('#' + id) | |
elem.onclick = () => { | |
if (_toggles[id]) { | |
clearInterval(_toggles[id]) | |
_toggles[id] = null | |
} else { | |
_toggles[id] = setInterval(() => elem.disabled || fn(), delay) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/**************************\ | |
Basic Modal Styles | |
\**************************/ | |
.modal { | |
font-family: -apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif; | |
} | |
.modal__overlay { | |
position: fixed; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on run {input, parameters} | |
delay 4 | |
tell application "Terminal" | |
activate | |
end tell | |
tell application "System Events" | |
delay 0.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cost-of-modules --include-dev --no-install | |
Calculating... | |
βββββββββββββββββββββββββββββββββββββββββββββ¬βββββββββββββββ¬ββββββββββ | |
β name β children β size β | |
βββββββββββββββββββββββββββββββββββββββββββββΌβββββββββββββββΌββββββββββ€ | |
β babel-preset-env β 147 β 81.98M β | |
βββββββββββββββββββββββββββββββββββββββββββββΌβββββββββββββββΌββββββββββ€ |
NewerOlder