Archived. Please see https://www.sainnhe.dev/post/status-line-config
First of all, install a nerd font, and apply it: nerd font
add_action('admin_bar_menu', 'show_template'); | |
function show_template() { | |
global $template; | |
print_r($template); | |
} |
jQuery.validator.addMethod("cnpj", function(cnpj, element) { | |
var numeros, digitos, soma, resultado, pos, tamanho, | |
digitos_iguais = true; | |
if (cnpj.length < 14 && cnpj.length > 15) | |
return false; | |
for (var i = 0; i < cnpj.length - 1; i++) | |
if (cnpj.charAt(i) != cnpj.charAt(i + 1)) { |
$fontawesome_path: "." !default | |
@font-face | |
font-family: 'FontAwesome' | |
src: font-url('#{$fontawesome_path}/fontawesome-webfont.eot') | |
src: font-url('#{$fontawesome_path}/fontawesome-webfont.eot?#iefix') format("embedded-opentype"), font-url('#{$fontawesome_path}/fontawesome-webfont.woff') format("woff"), font-url('#{$fontawesome_path}/fontawesome-webfont.ttf') format("truetype") | |
font-weight: normal | |
font-style: normal | |
@mixin icon($icon) |
<?php | |
class WPLazyLoadImages { | |
function __construct() { | |
// Add Our Filters and actions for the plugin | |
add_action('wp_enqueue_scripts', array($this, 'enqueue_lazyload')); | |
add_filter('the_content', array($this, 'filter_lazyload')); | |
add_action('wp_footer', array($this, 'footer_lazyload')); |
First of all, install a nerd font, and apply it: nerd font
$debug-rhythm: false; |
<?php | |
/* | |
E d i ç ã o - 2.0 / 29-09-2015 | |
-------------------------------------------------------------------------------- | |
[+] AUTOR: Cleiton Pinheiro / Nick: googleINURL | |
[+] Blog: http://blog.inurl.com.br | |
-------------------------------------------------------------------------------- | |
*/ |
jQuery(function($) { | |
$('form[data-async]').live('submit', function(event) { | |
var $form = $(this); | |
var $target = $($form.attr('data-target')); | |
$.ajax({ | |
type: $form.attr('method'), | |
url: $form.attr('action'), | |
data: $form.serialize(), |
<?php | |
$image = imagecreatefromjpeg($_GET['src']); | |
$filename = 'images/cropped_whatever.jpg'; | |
$thumb_width = 200; | |
$thumb_height = 150; | |
$width = imagesx($image); | |
$height = imagesy($image); |
/* ---------------------------------------------------------- */ | |
/* */ | |
/* A media query that captures: */ | |
/* */ | |
/* - Retina iOS devices */ | |
/* - Retina Macs running Safari */ | |
/* - High DPI Windows PCs running IE 8 and above */ | |
/* - Low DPI Windows PCs running IE, zoomed in */ | |
/* - Low DPI Windows PCs and Macs running Firefox, zoomed in */ | |
/* - Android hdpi devices and above */ |