Skip to content

Instantly share code, notes, and snippets.

<?php
$api = new API;
$data = $_POST['data'];
$query = '&count=3&query=firstName:"'. $data['first_name'] .'" AND lastName:"'. $data['last_name'] .'"AND email:"'. $data['email'] .'"&fields=id,firstName,lastName,email';
$candidates = $api->get('search/Candidate', $query);
if (empty($candidates)) {
<!DOCTYPE html>
<html lang="en">
<link rel="icon" type="image/png" href="http://blackcatsf.dev/content/themes/blackcat/public/images/favicon.png">
<!-- Disable tap highlight on IE -->
<meta name="msapplication-tap-highlight" content="no">
<!-- Web Application Manifest -->
<link rel="manifest" href="manifest.json">
<!-- meta -->
<meta charset="utf-8">
a:6336:{i:0;O:8:\\"stdClass\\":7:{s:2:\\"Id\\";s:36:\\"28442238-3b7b-48ef-a8d8-a6a60028ced0\\";s:4:\\"Name\\";s:11:\\"BELLE GLADE\\";s:7:\\"Address\\";O:8:\\"stdClass\\":7:{s:14:\\"StreetAddress1\\";s:13:\\"833 S MAIN ST\\";s:14:\\"StreetAddress2\\";N;s:4:\\"City\\";s:11:\\"BELLE GLADE\\";s:5:\\"State\\";s:2:\\"FL\\";s:7:\\"ZipCode\\";s:5:\\"33430\\";s:8:\\"Latitude\\";s:10:\\"26.6757008\\";s:9:\\"Longitude\\";s:11:\\"-80.6700083\\";}s:10:\\"UnitNumber\\";s:5:\\"06207\\";s:8:\\"ApplyUrl\\";s:129:\\"https://my.peoplematter.com/usmcd1000889459/Hire/Recruiting/Application/Index?businessUnitId=28442238-3b7b-48ef-a8d8-a6a60028ced0\\";s:8:\\"Distance\\";i:0;s:5:\\"Alias\\";O:7:\\"WP_Term\\":10:{s:7:\\"term_id\\";i:181;s:4:\\"name\\";s:15:\\"USMCD1000889459\\";s:4:\\"slug\\";s:15:\\"usmcd1000889459\\";s:10:\\"term_group\\";i:0;s:16:\\"term_taxonomy_id\\";i:181;s:8:\\"taxonomy\\";s:18:\\"snag-a-job-aliases\\";s:11:\\"description\\";s:0:\\"\\";s:6:\\"parent\\";i:0;s:5:\\"count\\";i:16;s:6:\\"filter\\";s:3:\\"raw\\";}}
@nathanaelphilip
nathanaelphilip / admin.php
Created November 3, 2016 20:35
CRON syncing
function saj_sync_jobs($locations)
{
// get all business locations
foreach ((array)$locations as $key => $location) {
saj_persist_jobs($location);
}
protected $appends = array(
'date_range',
'share_url'
);
public function getShareUrl()
{
$starts_at = Carbon::parse($this->starts_at);
Delivered-To: pm@ampersandcreates.com
Received: by 10.13.220.68 with SMTP id f65csp102950ywe;
Fri, 15 Apr 2016 12:08:15 -0700 (PDT)
X-Received: by 10.202.75.194 with SMTP id y185mr11347012oia.100.1460747295612;
Fri, 15 Apr 2016 12:08:15 -0700 (PDT)
Return-Path: <dynamitedecals@server.dynamitedecals.com>
Received: from server.dynamitedecals.com ([198.89.122.10])
by mx.google.com with ESMTPS id v131si16998747oig.87.2016.04.15.12.08.15
for <pm@ampersandcreates.com>
remove_filter( 'the_content', 'wp_make_content_images_responsive' );
jQuery(document).ready(function($) {
$('.navigate').on('click', function(event) {
event.preventDefault();
var $target = $($(this).attr('href'));
scrollTo($target);
});
public function put(){
$title = $this->create_title($this->data);
// setup the 'post' data
$post = array(
'post_type' => 'listing',
'post_title' => $title,
'post_content' => $this->data['Remarks'],
'post_status' => 'publish'
# phrets_hourly is the WP_CRON hook
add_action('phrets_hourly', 'run_listings_update' );
function run_listings_update(){
$fetch = new Fetcher();
$fetch->fetch();