Skip to content

Instantly share code, notes, and snippets.

{"v":"5.12.2","fr":60,"ip":0,"op":180,"w":500,"h":500,"nm":"5-check list","ddd":0,"assets":[{"id":"comp_0","nm":"mask book","fr":60,"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"mask circle","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":0,"s":[342.935,366.57,0],"to":[0,5.067,0],"ti":[0,0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":30,"s":[342.935,396.97,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":60,"s":[342.935,366.57,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":90,"s":[342.935,396.97,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":120,"s":[342.935,366.57,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":150,"s":[342.935,396.97,0],"to":[0,0,0],"ti":[0,5.067,0]},{"t":176,"s":[342.935,366.57,0]}],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0
@ayebare
ayebare / Yoast Plugin
Created September 27, 2017 15:52
using json
(function($, window, document) {
var CblocksPlugin = function() {
window.YoastSEO.app.registerPlugin( 'CblocksPlugin', { status: 'loading' } );
this.getData();
};
CblocksPlugin.prototype.getData = function() {
var _self = this;
@ayebare
ayebare / xml-cleaner.php
Last active May 10, 2017 07:13
Cleaning invalid characters in a list of xml files
<?php
$path_to_xmls = 'updated/problem-updated/*.{wxr,xml}';
$files = glob( $path_to_xmls, GLOB_BRACE );
foreach ( $files as $file ) {
echo "{$file} \n";
$path_to_file = $file;
$file_contents = file_get_contents( $path_to_file );
$file_contents = preg_replace( '/[^\x{0009}\x{000a}\x{000d}\x{0020}-\x{D7FF}\x{E000}-\x{FFFD}]+/u', '', $file_contents );
@ayebare
ayebare / Sample-code
Created November 14, 2016 07:33
Searching text data
function is_text_col( $type ) {
foreach ( array( 'text', 'varchar' ) as $token ) {
if ( false !== strpos( $type, $token ) )
return true;
}
return false;
}