This file contains hidden or 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
// Android & Java | |
import android.widget.Toast; | |
import android.app.AlarmManager; | |
import android.app.PendingIntent; | |
import android.content.Intent; | |
import android.content.Context; | |
import java.util.Calendar; | |
// React | |
import com.facebook.react.bridge.NativeModule; |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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; | |
} | |
} |