find . -type d -name 'node_modules' | xargs rm -r
- removes allnode_modules
folders recursively.
This file contains hidden or 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
/** | |
* Display all images without ALT tag | |
*/ | |
var images = jQuery('img'); | |
images.each(function(index, value) { | |
var el = jQuery(this); | |
var attr = el.attr('alt'); | |
if ( typeof attr !== typeof undefined && attr !== false ) { | |
if ( attr === '' ) { |
This file contains hidden or 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 | |
/** | |
* File field returning ID | |
*/ | |
if ( get_post_meta($post->ID, 'ENTER_KEY', true) ) { | |
$id = $cfs->get('ENTER_KEY'); | |
$src = wp_get_attachment_image_src($id, 'large'); | |
$alt = get_post_meta($id, '_wp_attachment_image_alt', true); | |
echo '<img src="' . esc_url($src[0]) . '" alt="' . $alt . '">'; |
This file contains hidden or 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
# Deny all access if user is not logged into WordPress | |
# | |
# | |
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{REQUEST_FILENAME} ^.*$ | |
RewriteCond %{HTTP_COOKIE} !^.*wordpress_logged_in.*$ [NC] | |
RewriteRule . - [R=403,L] |
This file contains hidden or 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'; | |
const gulp = require('gulp'); | |
const elixir = require('laravel-elixir'); | |
elixir( (mix) => { | |
mix.browserSync({ | |
files: ['./resources/templates/**/*.twig'], | |
proxy: 'example.dev' | |
}); |
This file contains hidden or 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
{ | |
"ignored_packages":["Vintage"], | |
"overlay_scroll_bars": "enabled", | |
"line_padding_top": 3, | |
"line_padding_bottom": 3, | |
"always_show_minimap_viewport": true, | |
"bold_folder_labels": true, | |
"indent_guide_options": [ "draw_normal", "draw_active" ], | |
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme", | |
"theme": "Material-Theme.sublime-theme", |
This file contains hidden or 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 | |
/** | |
* Get User Metadata. | |
*/ | |
$user_id = wp_get_current_user()->ID; | |
$user_data = get_user_meta($user_id); | |
var_dump($user_data); | |
/* |
This file contains hidden or 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
preloadPhotographs() { | |
let photos = this.photographs; | |
let preloaded = new Array(); | |
photos.forEach(photo => { | |
let image = new Image(); | |
image.src = photo.source; | |
image.onload = () => { | |
preloaded.push(image); | |
if (preloaded.length === photos.length) { | |
this.loading = false; |
This file contains hidden or 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
magnet:?xt=urn:btih:0595273ab674e05131a757f69f494a4285b429aa&dn=Facebook%20Leak%20%5B2019%5D%5B533M%20Records%5D%5B106%20Countries%5D |
OlderNewer