Skip to content

Instantly share code, notes, and snippets.

View antiartificial's full-sized avatar

Aaron Barton antiartificial

View GitHub Profile
<div class="slider-container">
<div class="slider-left">
<h3>Choose Your Debt Amount</h3>
<div class="slider-diver"></div>
<span class="slider-amount-text">Your Debt:</span>
<span class="slider-debt-amount">$22,000</span>
</div>
<div class="slider-right">
<div class="slider-slider">
<el-slider
@antiartificial
antiartificial / health-check.php
Last active November 30, 2020 19:18
Health Check
<?php
function Test_Database() {
$config = [
"server" => "172.x.x.x:3306",
"username" => "healthcheck",
"password" => "password"
];
$link = new mysqli($config['server'],$config['username'],$config['password']);
// We don't care if dealer identifier matches, proceed with 'standard' evaluation
// Export only used! As of this time 05/30/18 Marketplace only supports USED
if(isset($temp_line[$columns_merged['state_of_vehicle']]) && (strtolower($temp_line[$columns_merged['state_of_vehicle']]) !== $this->dealer_identifier_value)) {
//log_message('debug', __FUNCTION__."() -- Used vehicle found.");
// Check for empty prices
if(isset($grab['price']) && (!empty($grab['price']) && $grab['price'] !== "0 {$line_currency}")) {
//log_message('debug', __FUNCTION__."() -- Valid price found.");
// Check for a photo
if(isset($grab['images']) && !empty($grab['images']) && is_array($grab['images']) && count($grab['images'
<form action="https://motorwhiz.com/WebhookToyotaOfGlendale" data-focused="true" enctype="multipart/form-data" id="contact" method="post" name="contact">
<fieldset>
<input name="name" placeholder="Your name" required="" tabindex="1" type="text">
</fieldset>
<fieldset>
<input name="email" placeholder="Your Email Address" required="" tabindex="2" type="email">
</fieldset>
<fieldset>
<input name="phone" placeholder="Your Phone Number" required="" tabindex="3" type="tel">
</fieldset>

Keybase proof

I hereby claim:

  • I am antiartificial on github.
  • I am antiartificial (https://keybase.io/antiartificial) on keybase.
  • I have a public key ASAT9oJ0ryOFCH4v2Og60FCYgL8ih3WftZRdouKC2mV3fAo

To claim this, I am signing this object:

private function alerts($data_array)
{
foreach($data_array as $test) {
log_message('debug', __FUNCTION__."() ---------------------------------------------");
log_message('debug', __FUNCTION__."() Test parameters:");
log_message('debug', __FUNCTION__."() - alert_ct: $test->alert_ct pattern_ct: $test->pattern_ct not_ct: $test->not_ct");
log_message('debug', __FUNCTION__."() - alert_ga: $test->alert_ga pattern_ga: $test->pattern_ga not_ga: $test->not_ga");
log_message('debug', __FUNCTION__."() - alert_gtm: $test->alert_gtm pattern_gtm: $test->pattern_gtm not_gtm: $test->not_gtm");
log_message('debug', __FUNCTION__."() Beginning Test iteration...");
@antiartificial
antiartificial / image_lib_resize_crop.php
Last active August 29, 2015 13:56
Code Igniter image_lib resize and crop (credit to JoostV source: http://ellislab.com/forums/viewthread/75715)
//Set config for img library
$config['image_library'] = 'ImageMagick';
$config['library_path'] = '/usr/bin/';
$config['source_image'] = $filePath . $fileOldName;
$config['maintain_ratio'] = false;
//Set cropping for y or x axis, depending on image orientation
if ($fileData['image_width'] > $fileData['image_height']) {
$config['width'] = $fileData['image_height'];
$config['height'] = $fileData['image_height'];