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 | |
$post_7 = get_post(7, ARRAY_A); | |
$title = $post_7['post_title']; | |
?> |
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
module.exports = function (grunt) { | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
concat: { | |
css: { | |
src: [ | |
'css/*' | |
], | |
dest: 'combined.css' | |
}, |
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
grunt.loadNpmTasks('grunt-contrib-concat'); | |
grunt.loadNpmTasks('grunt-contrib-uglify'); | |
grunt.loadNpmTasks('grunt-contrib-watch'); | |
grunt.loadNpmTasks('grunt-contrib-cssmin'); | |
grunt.registerTask('default', [ 'concat:css', 'cssmin:css', 'concat:js', 'uglify:js' ]); |
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
# Edit PHP.INI | |
cd /etc/php5/apache2 | |
sudo vi php.ini | |
# Restart Apache | |
sudo service apache2 restart |
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
# param'd'# | |
mysql -h {hostname} -u {username} | |
# example # | |
mysql -h localhost -u root |
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
scp file-name.tar.gz user@xx.x.x.xx:/var/www |
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
rm -rf <folder-name> |
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
/* in main.js it is successfully registering | |
if ('serviceWorker' in navigator) { | |
navigator.serviceWorker.register('js/serviceWorker.js').then(function(reg) { | |
// registration worked | |
console.log('Registration succeeded. Scope is ' + reg.scope); | |
}).catch(function(error) { | |
// registration failed | |
console.log('Registration failed with ' + error); | |
}); |
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
$meta_query_args = array( | |
'relation' => 'OR', // Optional, defaults to "AND" | |
array( | |
'key' => '_my_custom_key', | |
'value' => 'Value I am looking for', | |
'compare' => '=' | |
) | |
); | |
$meta_query = new WP_Meta_Query( $meta_query_args ); |
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
<template> | |
<div class="grid"> | |
<div class="column-headings"> | |
<div class="column" v-for="column in columns"> | |
{{column.name}} | |
<a v-if="column.sortable === true"><i class="fa fa-caret-down"></i></a> | |
</div> | |
</div> | |
<div class="grid-rows"> | |
<div class="grid-row" v-for="row in data"> |
OlderNewer