Skip to content

Instantly share code, notes, and snippets.

View nstone101's full-sized avatar

Nick Stone nstone101

View GitHub Profile
#########################
# App Development 2017
#
# Section: Snippets
# Author: Nstone1013
# AuthorName: Nick Stone
# Company: Contacted, NSD LLC.,
# Ascention, Kansas City Consultant
# AuthorPage: http://github.com/nstone1012
# Gist URI: http://gist.github.com/
@nstone101
nstone101 / index.html
Created December 31, 2018 10:39
Toggle button with javascript svg animation
<div class="hero-section--how_works-scheme">
<button class="button button-switch active">
<span class="switch-label switch-label--on">with basement</span>
<span class="switch-label switch-label--off"">without basement</span>
<span class="switch-handle">
<svg class="switch-handle__icon" viewBox="0 0 46 46" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle opacity="0.6" cx="22.6875" cy="22.8125" r="22.6875" fill="#ffffff"/>
<path d="M14.5 18.7916H30.7273V28.125H14.5V18.7916Z" fill="#2CC7C4"/>
<rect x="19.167" y="18.7916" width="7" height="7" fill="#AFEBEA"/>
<rect x="14.5" y="30.325" width="16.3333" height="4.66667" fill="#2CC7C4"/>
aws ec2 describe-security-groups --query 'SecurityGroups[*].GroupId' --output text | tr '\t' '\n'
import datetime
t1 = datetime.time(22, 0, 0)
t2 = datetime.time(21, 0, 0)
if t1>t2:
print("t1 is greater than t2") # this will be printed as t1 is gt than t2
SELECT DISTINCT
o.name AS Object_Name,
o.type_desc
FROM sys.sql_modules m
INNER JOIN
sys.objects o
ON m.object_id = o.object_id
WHERE m.definition Like '%INSERT%';
@media (max-width: 768px){
.mobile-summary-switch {
display:none !important;
}
}
var products = ["TITLE1", "TITLE2", "TITLE3"];
$( ".btn-coupon" ).click(function(e) {
$( ".cart-line-items-v2 li" ).each(function() {
var productTitle = $(this).find(".line-title").text();
console.log("Product Title: " + productTitle);
for (i = 0; i < products.length; i++) {
if (productTitle == products[i]) {
e.preventDefault;
break;
}
// All Steps in SEO
https://www.youtube.com/watch?v=evqV44zapGM&ab_channel=AleemIqbal
SEO
Step 01
https://www.youtube.com/playlist?list=PLvTJ8WFp4oKa7rLukvCsibeN-c7nzeNdY
## remove domain extension remove .html remove .php remove last extension .htaccess file
## Redirects example.com/cool-page.html to example.com/cool-page
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteCond %{REQUEST_URI} ^(.+)\.html$
RewriteRule (.*)\.html$ /$1 [R=301,L]
https://www.danielmorell.com/guides/htaccess-seo/redirects/https-www-and-trailing-slash