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
/** | |
Given to me by by giustina on #wordpress | |
**/ | |
/** | |
To update WordPress options with the new blog location, use the following SQL command: | |
**/ |
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
var myApp = (function (){ | |
myProps = { | |
foo : function (){ | |
console.log("foo"); | |
}, |
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
<ul> | |
<?php | |
foreach ( $GLOBALS['wp_filter'] as $tag => $priority_sets ) | |
{ | |
echo '<li><strong>' . $tag . '</strong><ul>' ; | |
/* Each [priority] */ | |
foreach ( $priority_sets as $priority => $idxs ) { | |
echo '<li>' . $priority . '<ul>'; |
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
module.exports = function (grunt){ | |
grunt.initConfig({ | |
compass : { | |
dist : { | |
options : { | |
sassDir : "sass", | |
cssDir : "css", | |
debugInfo : true |
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 post meta | |
$meta = get_post_meta( get_the_ID() ); | |
echo "<pre>" ; | |
print_r($meta) ; | |
echo "</pre>" ; | |
?> |
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
#!/usr/bin/python | |
from __future__ import division | |
import sys | |
welcome = """ | |
################################### | |
Meal Tip calculator | |
################################### |
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
#!/usr/bin/python | |
from __future__ import division | |
import argparse | |
parser = argparse.ArgumentParser() | |
parser.add_argument( | |
"--mealcost", | |
type=float, |
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
// hide editor on options page | |
add_action( 'admin_init', 'hide_editor' ); | |
function hide_editor() { | |
$post_id = $_GET['post'] ? $_GET['post'] : $_POST['post_ID'] ; | |
if( !isset( $post_id ) ) return; | |
// Hide the editor on the page titled 'options' | |
$page_options = get_the_title($post_id); | |
if($page_options == 'options'){ |
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
get_adjacent_post | |
get_boundary_post | |
get_children | |
get_extended | |
get_next_post | |
get_next_posts_link | |
next_posts_link | |
get_permalink | |
the_permalink | |
get_the_excerpt |
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 | |
/** | |
* | |
* Call functions from here | |
* | |
* Note: this file does not override the parent themes functions file. | |
* Instead, it gets loaded _before_ the parents functions.php gets loaded | |
* | |
*/ | |
/* |
OlderNewer