Skip to content

Instantly share code, notes, and snippets.

View nstone101's full-sized avatar

Nick Stone nstone101

View GitHub Profile
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%';
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
aws ec2 describe-security-groups --query 'SecurityGroups[*].GroupId' --output text | tr '\t' '\n'
@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"/>
#########################
# 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/