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
// | |
// SFSymbolDelayStart.swift | |
// VariableSFSymbolAnimation | |
// | |
// Created by Matthew Young on 12/27/22. | |
// | |
import SwiftUI | |
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
/* | |
* RGBa-Mixin with fallback (http://css-tricks.com/rgba-browser-support/) | |
*/ | |
@mixin transparent-backgound($color: #000, $value:0.5) | |
$start: "rgb("; | |
$end: ")"; | |
background: #{$start}red($color), green($color), blue($color)#{$end}; | |
background: rgba($color, $value); |
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
jQuery(document).ready(function($){ | |
var _custom_media = true, | |
_orig_send_attachment = wp.media.editor.send.attachment; | |
$('.stag-metabox-table .button').click(function(e) { | |
var send_attachment_bkp = wp.media.editor.send.attachment; | |
var button = $(this); | |
var id = button.attr('id').replace('_button', ''); | |
_custom_media = true; | |
wp.media.editor.send.attachment = function(props, attachment){ | |
if ( _custom_media ) { |
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
{ | |
"snippets": [ | |
{ | |
"name": "dataurl.js", | |
"content": "// dataurl.js\n// https://github.com/bgrins/devtools-snippets\n// Print out data URLs for all images / canvases on the page.\n\n((() => {\n\n console.group(\"Data URLs\");\n\n [].forEach.call(document.querySelectorAll(\"img\"), i => {\n const c = document.createElement(\"canvas\");\n const ctx = c.getContext(\"2d\");\n c.width = i.width;\n c.height = i.height;\n\n try {\n ctx.drawImage(i, 0, 0);\n console.log(i, c.toDataURL());\n }\n catch(e) {\n console.log(i, \"No Permission - try opening this image in a new tab and running the snippet again?\", i.src);\n }\n });\n\n [].forEach.call(document.querySelectorAll(\"canvas\"), c => {\n try {\n console.log(c, c.toDataURL());\n }\n catch(e) {\n console.log(c, \"No Permission\");\n }\n });\n\n console.groupEnd(\"Data URLs\");\n\n}))();" | |
}, | |
{ | |
"name": "jqueryify.js", | |
"content": "// jquerify.js\n// https://github.c |
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
<IfModule mod_deflate.c> | |
#The following line is enough for .js and .css | |
AddOutputFilter DEFLATE js css | |
AddOutputFilterByType DEFLATE text/plain text/xml application/xhtml+xml text/css application/xml application/rss+xml application/atom_xml application/x-javascript application/x-httpd-php application/x-httpd-fastphp text/html | |
#The following lines are to avoid bugs with some browsers | |
BrowserMatch ^Mozilla/4 gzip-only-text/html | |
BrowserMatch ^Mozilla/4\.0[678] no-gzip | |
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html | |
</IfModule> |
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
const scrollable = document.querySelectorAll( '.scrollable' ); | |
scrollable.forEach( function( el ) { | |
if ( el.offsetHeight < el.scrollHeight ) { | |
el.classList.add( 'bottom-shadow' ); | |
} | |
el.addEventListener( 'scroll', function( e ) { | |
const scrollHeight = e.target.clientHeight; | |
const scrollPosition = scrollHeight + e.target.scrollTop; |
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
[{"action":"prevtab","blacklist":false,"exported":true,"key":"a","open":false,"sites":"*mail.google.com*","sitesArray":["*mail.google.com*"]},{"action":"nexttab","blacklist":false,"exported":true,"key":"s","open":false,"sites":"*mail.google.com*","sitesArray":["*mail.google.com*"]},{"action":"newtab","blacklist":false,"exported":true,"key":"t","open":false,"sites":"*mail.google.com*","sitesArray":["*mail.google.com*"]},{"action":"closetab","blacklist":false,"exported":true,"key":"c","open":false,"sites":"*mail.google.com*","sitesArray":["*mail.google.com*"]},{"action":"back","blacklist":false,"exported":true,"key":"z","open":false,"sites":"*mail.google.com*","sitesArray":["*mail.google.com*"]},{"action":"forward","blacklist":false,"exported":true,"key":"x","open":false,"sites":"*mail.google.com*","sitesArray":["*mail.google.com*"]},{"action":"reload","blacklist":false,"exported":true,"key":"r","open":false,"sites":"*mail.google.com*","sitesArray":["*mail.google.com*"]},{"action":"copyurl","blacklist":false,"e |
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 | |
function crux_search_filter( $query ) { | |
if ( $query->is_search ) { | |
$query->set( 'post_type', 'product' ); | |
$query->is_archive = true; | |
$query->is_post_type_archive = true; | |
} | |
return $query; |
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
{ | |
"root": true, | |
"env": { | |
"browser": true, | |
"es6": true | |
}, | |
"plugins": [ | |
"wordpress", | |
"async" | |
], |
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
// Embassy Suites Amarillo,"550 Buchanan Street, Amarillo, TX 79101","Amarillo, TX",Hilton,Open,226,,,35.207672,-101.8324899 | |
async function fetchAsync(string) { | |
const response = await fetch(ajaxurl, { | |
method: 'POST', | |
headers: { | |
'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8' | |
}, | |
credentials: 'same-origin', |
NewerOlder