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 | |
// Warning: this will overwrite every post in your database | |
// BACKUP FIRST! | |
clean_post_content(); | |
function clean_post_content() { | |
$posts = get_posts(array( | |
'post_type' => array('post'), // or page, or cpt | |
'post_status' => 'publish', // or any, draft, etc |
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
.sticky, | |
.bypostauthor, | |
.gallery-caption | |
display: normal | |
.alignright | |
float: right | |
display: block | |
.alignleft |
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
var inFolder = Folder.selectDialog("Please select folder to process"); | |
if(inFolder !== null) { | |
var fileList = inFolder.getFiles(/\.(jpg|tif|psd|)$/i); | |
var outfolderName = prompt('Folder name', 'zoom'); | |
var outfolder = new Folder(decodeURI(inFolder) + "/" + outfolderName); | |
if (!outfolder.exists) outfolder.create(); | |
for(var a = 0; a < fileList.length; a++) { |
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
/* | |
* Generate a SVG-sprite mixin for Sass | |
* ==================================== | |
* | |
* Gaya Kessler - http://gaya.ninja - http://twitter.com/GayaNinja | |
* | |
* SVGSprite is a wonderful package, but doesn't enable responsive sprites out of the box. | |
* This moustache template generates a sass file with a mixin for the generated SVG-sprite. | |
* Calculates the position and size of the background by filename. | |
* Included SVG image scales to width and height. |
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
/* Row and Column defaults */ | |
.row { margin-left: auto; margin-right: auto; margin-top: 0; margin-bottom: 0; max-width: 62.5em; width: 100%; } | |
.row .row.collapse { margin-left: 0; margin-right: 0; max-width: none; width: auto; } | |
.row .row { margin-left: -0.9375em; margin-right: -0.9375em; max-width: none; width: auto; } | |
.row.collapse .column, .row.collapse .columns { padding-left: 0; padding-right: 0; float: left; } | |
.column, .columns { padding-left: 0.9375em; padding-right: 0.9375em; width: 100%; float: left; position: relative; } | |
/* Up to 640px */ | |
@media only screen { | |
.small-1 { width: 8.33333% } |
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 dummy query var which causes all languages to be shown | |
* in the queries. | |
* See https://github.com/polylang/polylang/blob/2ed446f92955cc2c952b944280fce3c18319bd85/include/query.php#L125-L134 | |
*/ | |
add_filter( 'pll_filter_query_excluded_query_vars', function( $excludes ) { | |
$excludes[] = 'allLanguages'; | |
return $excludes; |
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
// $ npm install | |
// $ gulp serve | |
// $ open http://localhost:8080 | |
var gulp = require('gulp'), | |
del = require('del'), | |
scss = require('gulp-sass'), | |
htmlmin = require('gulp-htmlmin'), | |
cleancss = require('gulp-clean-css'), | |
connect = require('gulp-connect'), |
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 | |
namespace YourPlugin\Blocks; | |
abstract class Block{ | |
/** | |
* Block title | |
* | |
* @var string |
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
{ | |
"React Stateless Functional Component": { | |
"prefix": "rfac", | |
"body": [ | |
"import React from 'react'", | |
"", | |
"const $TM_FILENAME_BASE = () => { ", | |
"\treturn (", | |
"\t\t<div>", | |
"", |
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
@font-face { | |
font-family: 'Inter'; /* v3.11 */ | |
font-style: normal; | |
font-weight: 400; | |
src: url("data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAADK8AA4AAAAAcuwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABHREVGAAAjJAAAACsAAAAuAkUCbUdQT1MAACNQAAAG2QAAHSa0FrhtR1NVQgAAKiwAAAiOAAAjFrGWVndPUy8yAAAhyAAAAFEAAABggKJ82GNtYXAAACIcAAAAOwAAAGAAGwJFZ2FzcAAAIxwAAAAIAAAACP//AANnbHlmAAABRAAAHOsAACo2iAHLmGhlYWQAAB/EAAAANgAAADYnUzaRaGhlYQAAIagAAAAfAAAAJB71EI9obXR4AAAf/AAAAasAAAMIOf6DtWxvY2EAAB5MAAABdwAAAYbyJ+fUbWF4cAAAHjAAAAAcAAAAIADZAOduYW1lAAAiWAAAAK0AAAFkGpw0V3Bvc3QAACMIAAAAEwAAACD+MwDAeNp9egFAVFX29z33vXkzGOowDIBFxjgIrGtGDgj9c42v1f1Ty7bYx6p/Q5sVIjQyZFFJTSciJcUiJZYIlRSVDAUVkxRtUlQssknRWJs1bKmPdWdr1tAGmHfnO/e9QSG/vsb3Zt6Pc88953fvOffc+yKUdPjcdKqOEIGMJgQEsxA8LjohfoplcmiIUaJ6Y4+x5PFFix7HS0f6kzX2n9z8gV/E5yNtmmShVkf00QRV6LVERwkhqDWOEMmO0D3kPkJMwSbBHGxKNCmXRVAurUm5gP+xY57smdc2j30eCZPT2flIeACfqA5v8GAkO5cOkyLZF/PkfVSXLntoktxGk9oowbusXG2MtMltAqHcixofkbICCIklD5KHCIGEKBJjGgthQTHRBP2KSkywhISKoWHmSRATFDZWCDFSURsSNA0S4ifBAyAEjYIQ41 |
OlderNewer