View HOA
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 | |
/** | |
* Single Listing CT IDX Pro Info | |
* | |
* @package WP Pro Real Estate 7 | |
* @subpackage Include | |
*/ | |
global $ct_options; |
View idx_get_grouped_features
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 | |
// Usage: | |
$post_id = 'POST_ID_HERE'; | |
echo idx_get_grouped_features( $post_id ); | |
/** | |
Example Output: | |
<div class="idx_grouped_features"> | |
<h4>Interior</h4> | |
<ul> |
View bytes-to-image-aspnet.cs
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
try { | |
byte[] imageBytes = null; | |
imageBytes = ...; //read image from the disk | |
if (imageBytes != null) | |
{ | |
Response.Clear(); | |
Response.ContentType = "image/jpg"; | |
Response.BinaryWrite(imageBytes); |
View envato-api-nodejs-http-request-helper.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
var httpHelper = require('./helper/http'); | |
var options = { | |
host: 'marketplace.envato.com', | |
path: '/api/edge/number-of-files:themeforest.json', | |
method: "GET", | |
headers: {'user-agent': 'Node.js - Envato API Consumer'} | |
}; | |
httpHelper.request(options, function (body) { |
View get-nodejs-http-request-helper.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
/*GET Request*/ | |
var httpHelper = require('./helper/http'); | |
var options = { | |
host: 'www.domain.com', | |
path: '/example-page', | |
method: 'GET' | |
}; | |
httpHelper.request(options, function (body) { |
View nodejs-http-request-helper.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
var http = require('http'); | |
function request(options, callback) | |
{ | |
http.request(options, function (response) { | |
var responseBody = ''; | |
response.on('data', function (data) { | |
responseBody += data; | |
}); |
View user_signup_command.php
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 | |
class SignupCommand extends AbstractCommand { | |
private $oUser = null; | |
private $data = array(); | |
function __construct($oUser, $data) { | |
$this->oUser = $oUser; | |
$this->data = $data; |
View php_command_pattern.php
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 | |
interface InterfaceCommand { | |
function execute(); | |
} | |
abstract class AbstractCommand implements InterfaceCommand { | |
/** |