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
<table id="projects"> | |
<?php foreach ($data as $project): ?> | |
<tr> | |
<td class="projectName"> | |
<?php echo $project['name']; ?> | |
</td> | |
<td class="projectVersion noresize"> | |
<?php echo sprintf('%s/%s', $project['completedCount'], $project['totalCount']); ?> | |
</td> | |
<td class="projectsBars"> |
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 get_header(); ?> | |
<div id="main-content"> | |
<div class="container"> | |
<div id="content-area" class="clearfix"> | |
<div id="left-area"> | |
<?php | |
if ( have_posts() ) : | |
while ( have_posts() ) : the_post(); | |
$post_format = et_pb_post_format(); ?> |
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 standard windows command prompt | |
cd C:\Program Files\SlikSvn\bin | |
mkdir c:\dumpRepo | |
svnadmin create c:\dumpRepo | |
type c:\myproject.dump | svnadmin load c:\dumpRepo | |
svn export file:///c:/dumpRepo c:\myproject |
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 | |
/** | |
* @author Jonathon Byrd | |
* @package Address Parsing | |
* | |
* | |
*/ | |
class AddressHelper extends ObjectBase | |
{ | |
/** |
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 allow_my_post_types($allowed_post_types) { | |
$allowed_post_types[] = 'my_post_type'; | |
return $allowed_post_types; | |
} | |
add_filter( 'rest_api_allowed_post_types', 'allow_my_post_types'); |
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 sh | |
echo "Creating a self-signed certificate..." | |
openssl req -new -newkey rsa:2048 -sha1 -days 3650 -nodes -x509 -subj "/C=US/ST=Georgia/L=Atlanta/O=BNR/CN=localhost.ssl" -keyout config/server.key -out config/server.crt | |
if ! grep -q "\blocalhost\.ssl\b" /private/etc/hosts; then | |
echo "Adding localhost.ssl to your hosts file..." | |
echo "127.0.0.1 localhost.ssl" | sudo tee -a /private/etc/hosts | |
fi |
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
/* ========================================================= | |
Comments | |
========================================================= */ | |
ol.commentlist { | |
list-style:none; | |
margin:0 0 1em; | |
padding:0; | |
text-indent:0; |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>comment</key> | |
<string>mkdynamic</string> | |
<key>name</key> | |
<string>Made of Code</string> | |
<key>settings</key> | |
<array> |
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 | |
/** | |
* Template Name: ajax | |
*/ | |
?> | |
<?php | |
$post = get_post($_GET['id']); | |
?> | |
<?php if ($post) : ?> | |
<?php setup_postdata($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
<?php | |
// Standard API query arguments | |
$args = array( | |
'orderby' => 'title', | |
'per_page' => 3 | |
); | |
// Put into the `add_query_arg();` to build a URL for use | |
// Just an alternative to manually typing the query string | |
$url = add_query_arg( $args, rest_url('wp/v2/posts') ); |
OlderNewer