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
var Module = (function(){ | |
// private var | |
var _privateVar = "private"; | |
// private method | |
function _privateMethod() { | |
return "private bar"; | |
} | |
// return public |
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
/* | |
Theme Name: Child Theme {Child Theme of Worpress Foundation} | |
Theme URI: http://320press.com/wpfoundation | |
Description: A bones/Zurb foundation based wordpress theme. | |
Version: 1.0 | |
Template: wordpress-foundation | |
*/ | |
@import url("../wordpress-foundation/style.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
/* | |
Theme Name: Example Child Theme Name | |
Theme URI: http://child-theme-homepage.tld | |
Description: A description of your child theme. | |
Author: Child Theme Author Name | |
Author URI: http://child-theme-author-homepage.tld | |
Version: 1.0 | |
Tags: translation-ready, ... |
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
#!/usr/bin/env bash | |
# | |
# simple recursive search and replace string in files | |
# setup: alias replace='~/replace.sh' | |
# notes: you will need to escape special chars! eg: replace '\/dir1' '\/dir2' . | |
# usage: replace <oldstring> <newstring> <path> <depth> | |
# examples: | |
# replace "([^\s]+.php)" "\/\1" . | |
# replace "\"\/([^\/]+.php)" "\"\/dir\/\1" . |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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 | |
function gf_custom_validation_message($message, $form){ | |
return '<div class="validation_error">Please correct the following errors:<br/><div id="error_list"></div></div>'; | |
} | |
add_filter("gform_validation_message", "gf_custom_validation_message", 10, 2); |
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
<style type='text/css'> | |
#custom_overlay { | |
background: #222; | |
position: fixed; | |
top: 0; | |
left: 0; | |
width: 100%; | |
height: 100%; | |
z-index: 3000; | |
} |
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
$args=array( | |
'orderby'=> 'modified', | |
'order' => 'ASC', | |
'post_type' => 'post', | |
'post_status' => 'publish', | |
'posts_per_page' => 5, | |
'caller_get_posts'=> 1 | |
); | |
$my_query = null; | |
$my_query = new WP_Query($args); |
NewerOlder