I hereby claim:
- I am nmec on github.
- I am nmec (https://keybase.io/nmec) on keybase.
- I have a public key ASDuZ-ee6aL9YQQ6eGrwAkaGUYuxPn7J6Kk2Hju2FviEago
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
'use strict'; | |
var fs = require('fs'); | |
var gulp = require( 'gulp' ); | |
var modernizr = require('modernizr'); | |
var config = require('./modernizr-config'); // path to JSON config | |
gulp.task( 'modernizr', function (done) { | |
modernizr.build(config, function(code) { |
<snippet> | |
<content><![CDATA[ | |
@media #{\$${1:medium-up}} { | |
${2:/* Styles */} | |
} | |
]]></content> | |
<tabTrigger>media</tabTrigger> | |
<scope>source.scss</scope> | |
<description>Sass Media Query</description> | |
</snippet> |
jQuery(document).ready(function($){ | |
// Prevent right click on carousel | |
$('.gallery').on('contextmenu', function(){ | |
return false; | |
}); | |
// Prevent right click on all image elements | |
$('img').on('contextmenu', function(){ | |
return false; |
body { | |
white-space: pre; | |
font-family: Menlo, Monaco, monospace; | |
font-size: 0.8rem; | |
background: #1d1f21; | |
color: #c5c8c6; | |
} | |
.property { |
<?php | |
/** | |
* Prevents generation of 'Hello World' and 'Sample Page'. | |
* @link http://wordpress.stackexchange.com/a/71867/8872 | |
*/ | |
function wp_install_defaults() { | |
return null; | |
} |
<?php | |
// Remove SEO menu from Admin bar | |
add_action( 'wp_before_admin_bar_render', 'mytheme_admin_bar_render' ); | |
function mytheme_admin_bar_render() { | |
global $wp_admin_bar; | |
$wp_admin_bar->remove_menu('wpseo-menu'); | |
} | |
// Remove ‘page analysis’ and annoying SEO columns | |
add_filter( 'wpseo_use_page_analysis', '__return_false' ); |
<?php | |
$posts = array(5, 2, 43, 12); | |
// Get the posts | |
$my_loop = new WP_Query(array( | |
'post__in' => $posts, | |
'post_type' => 'any', | |
'posts_per_page' => -1, | |
)); |
<?php | |
/** | |
* Prevent new user email notifications | |
* This prevents new user email notifications being sent to users and administrators by commenting out the wp_mail functions. You could rewrite it to change the default registration email. | |
* This should be put in a plugin or your themes functions file. | |
* @link http://wordpress.org/extend/plugins/disable-wp-new-user-notification/ | |
* @author Jono Warren <[email protected]> | |
*/ | |
if ( !function_exists('wp_new_user_notification') ) { | |
function wp_new_user_notification($user_id, $plaintext_pass = '') { |
sudo nvram boot-args="iog=0x0" |