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
/* SECTION: MEDIA QUERIES */ | |
/* MQ: Desktop Slim */ | |
@media only screen and (min-width: 768px) and (max-width: 984px) { | |
} | |
/* MQ: Tablet Landscape */ | |
@media only screen and (min-width: 600px) and (max-width: 767px) { | |
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
function get_page_by_slug($page_slug, $output = OBJECT, $post_type = 'page' ) { | |
global $wpdb; | |
$page = $wpdb->get_var( $wpdb->prepare( "SELECT ID FROM $wpdb->posts WHERE post_name = %s AND post_type= %s", $page_slug, $post_type ) ); | |
if ( $page ) | |
return get_page($page, $output); | |
return null; | |
} |
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
/** | |
* is_blog | |
* | |
* A simple method that lets us know if were on a blog page or not | |
* | |
* @return bool | |
* @since 0.7 | |
*/ | |
function is_blog () { | |
global $post; |
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
git archive --format zip --output /full/path/to/zipfile.zip master |
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
<nav> | |
<ul> | |
<li><span>Home</span></li> | |
<li><span>About</span></li> | |
<li><span>Our Work</span></li> | |
<li><span>Blog</span></li> | |
<li><span>Contact</span></li> | |
</ul> | |
</nav> |
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
// Replaces all instances of the given substring. | |
String.prototype.replaceAll = function(strTarget, strSubString) | |
{ | |
var strText = this; | |
var intIndexOfMatch = strText.indexOf( strTarget ); | |
// Keep looping while an instance of the target string | |
// still exists in the string. | |
while (intIndexOfMatch != -1){ | |
// Relace out the current instance. |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset=utf-8 /> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
</body> | |
</html> |
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
{"result":"true","errors":[],"data":[["{\"1\":[{\"0\":\"Hunky\"},{\"1\":\"Male\"}],\"2\":[{\"0\":\"Dory\"},{\"1\":\"727455767\"}]}",null,"{\"1\":[],\"2\":[]}"]],"fields":{}} |
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
function getURLParams () { | |
var params = []; | |
window.location.search.substring(1).split("&").every(function (pair){ | |
var obj = {}; | |
pair = pair.split("="); | |
obj[pair[0]] = pair[1]; | |
params.push(obj); | |
}); | |
return params; | |
} |
OlderNewer