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
{ | |
"name": "dz-jest-boiler", | |
"version": "0.1.0", | |
"description": "Test React Component with Jest and Enzyme", | |
"main": "server.js", | |
"scripts": { | |
"test": "jest --verbose", | |
"dev": "webpack-dev-server" | |
}, | |
"author": "Daniel Zuzevich", |
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 | |
$MailChimp = new MailChimp('insert api key here'); | |
$list_id = 'gmj87s22'; // Mailchimp List Id | |
$email = $_POST['email']; | |
$first_name = $_POST['firstName']; | |
$last_name = $_POST['lastName']; | |
$result = $MailChimp->post("lists/$list_id/members", [ |
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 urlExtractor(url) { | |
url = decodeURIComponent(url); | |
var charIndex = url.indexOf('='); | |
if(charIndex < 0) { | |
return; | |
} | |
var sliced = url.slice(charIndex).substring(1).replace(/_/g, ' '); | |
var inputField = document.getElementById('lead_source'); |
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
from random import randint | |
board = [] | |
# create the 5 x 5 board | |
for x in range(0, 5): | |
board.append(["O"] * 5) | |
board_index = len(board) - 1 |
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 | |
/** | |
* Generate the sitemap_index file | |
*/ | |
function generate_main() { | |
$main_xml = '<?xml version="1.0" encoding="UTF-8"?>'; | |
$main_xml .= "\n"; | |
$main_xml .= '<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">'; | |
$main_xml .= "\n\n"; |
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
<!-- DZ Was Here --> | |
<div style="float: right;"> | |
<a style="color: #9ABF93 !important;cursor: pointer;font-size:16px;" href="tel:8772714218">(877) 271-4218</a> | |
<?php echo do_shortcode('[aps-social id="2"]')?> | |
</div> | |
<!-- DZ Was Here --> |
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
server { | |
# Other config data will usually fill up this area | |
location ~ /.well-known { | |
allow all; | |
} | |
} |
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
sudo certbot certonly --webroot --webroot-path=/var/www/html -d example.com -d www.example.com |
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 | |
// Insert into the sheet | |
$options = array('valueInputOption' => 'RAW'); | |
$values = [ | |
["$email","$first_name","$last_name","$zip_code"] | |
]; | |
$body = new Google_Service_Sheets_ValueRange(['values' => $values]); | |
$result = $service->spreadsheets_values->append(SHEET_ID, 'A1:D', $body, $options); |