Skip to content

Instantly share code, notes, and snippets.

View NickDeckerDevs's full-sized avatar

nicholas decker NickDeckerDevs

View GitHub Profile
@NickDeckerDevs
NickDeckerDevs / wistia-embed-hs.html
Created December 7, 2018 15:26
wistia emebd with pop over and hover stuff
<div class="wistia-embed-container">
<script src="https://fast.wistia.com/embed/medias/{{ module.wistia_video_id|trim }}.jsonp" async></script>
<script src="https://fast.wistia.com/assets/external/E-v1.js" async></script>
</div>
<div class="hero-video-link">
<span class="trigger-video"><span class="wistia_embed wistia_async_{{ module.wistia_video_id|trim }} popover=true popoverContent=link" style="display:inline;position:relative"><a href="#">Watch Video<img src="//cdn2.hubspot.net/hubfs/191357/images/temp-images/playbutton-50.png" data-original="//cdn2.hubspot.net/hubfs/191357/images/temp-images/playbutton-50.png" data-hover="//cdn2.hubspot.net/hubfs/191357/images/temp-images/playbutton-50-hover.png" alt="play button to start video"></a></span></span>
</div>
@NickDeckerDevs
NickDeckerDevs / .htaccess
Last active December 18, 2018 21:27
htaccess to allow cors requests for RELITTLE site
<IfModule mod_headers.c>
Header add Access-Control-Allow-Origin "https://content.relittle.com/"
Header add Access-Control-Allow-Methods: "GET"
</IfModule>
@NickDeckerDevs
NickDeckerDevs / blogjson.html
Created January 7, 2019 22:03
create json object from blog listing in hubspot
{% set eventsBlog = blog_recent_posts('2670316261', 200) %}
<script>
var allEvents = [{% for post in eventsBlog %}
{
id: '{{ post.id }}',
name: '{{ post.name|escape }}',
url: '{{ post.absolute_url }}',
image: "{{ post.featured_image }}",
date: '{{ post.publishDateLong|datetimeformat('%B %e, %Y') }}',
@NickDeckerDevs
NickDeckerDevs / footer.html
Last active April 3, 2019 22:36
hubspot schema in footer
@NickDeckerDevs
NickDeckerDevs / crawler.js
Created February 6, 2019 03:24
crawler florida
const Crawler = require("crawler");
var c = new Crawler({
maxConnections: 10,
// each crawled page this will happen
callback: function(error, res, done) {
if(error) {
console.log(error);
} else {
var $ = res.$;
@NickDeckerDevs
NickDeckerDevs / filter.html
Created February 11, 2019 13:27
filter items using url params
<style>
.filter-news-container > div {
width: calc(100% / 4 - 10px);
display: inline-block;
}
.filter-news {
color: #00b2e3;
text-decoration: none;
}
</style>
@NickDeckerDevs
NickDeckerDevs / home.php
Created March 14, 2019 13:26
what am I doing here
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta description="A Personal Chef since 1993, Kathy is able to draw on her vast array of talent and passions using them to enrich the quality of life for those she serves. Her culinary experiences...">
<title>Chef Kathy Peterson</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
<link href="http://fonts.googleapis.com/css?family=Josefin+Slab:400,600,700" rel="stylesheet" type="text/css">
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<link rel="icon" href="/favicon.ico" type="image/x-icon">
@NickDeckerDevs
NickDeckerDevs / includes.php
Created March 14, 2019 13:26
some more weird shit
<?php
class Chef {
public static function getJquery() {
$currentJquery = '<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>';
return $currentJquery;
}
public static function getSliderScript() {
$sliderScript = '<script type="text/javascript" src="slider/engine1/wowslider.js"></script>
<script type="text/javascript" src="slider/engine1/script.js"></script>';
return $sliderScript;
@NickDeckerDevs
NickDeckerDevs / timecheck.php
Created April 10, 2019 17:51
cheking if date is past
$temp_date = 'your date here';
$date_for_live = (strtotime($temp_date) + 3 * 60 * 60);
if( time() > $date_for_live ) {
// remove the hidden status
}
@NickDeckerDevs
NickDeckerDevs / timecheck.php
Created April 10, 2019 17:51
cheking if date is past
$temp_date = 'your date here';
$date_for_live = (strtotime($temp_date) + 3 * 60 * 60);
if( time() > $date_for_live ) {
// remove the hidden status
}