Skip to content

Instantly share code, notes, and snippets.

View yllus's full-sized avatar

Sully Syed yllus

View GitHub Profile
@yllus
yllus / tacklehunger_google_analytics_code.js
Created May 4, 2020 18:56
tacklehunger_google_analytics_code.js
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-101110544-8"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-101110544-8');
</script>
@yllus
yllus / media-queries-b4.scss
Created July 8, 2020 15:42 — forked from akolinski/media-queries-b4.scss
Media queries using SASS in Bootstrap 4
// -- Default media queries
// Extra small devices (Mobile phones, 0px and up)
// No media query needed since this is the default in Bootstrap
// Small devices (landscape phones, 576px and up)
@include media-breakpoint-up(sm) { ... }
// Medium devices (tablets, 768px and up)
@include media-breakpoint-up(md) { ... }
@yllus
yllus / ImportEnvironicsDemographics.php
Created April 17, 2023 15:59
Laravel CLI command to import Environics demographics data per postal code into PostgreSQL
<?php
namespace App\Console\Commands;
use Illuminate\Support\Str;
use Illuminate\Console\Command;
class ImportEnvironicsDemographics extends Command
{
/**
curl -X POST https://api.golfcanada.ca/api/v1/members/webhook -H "Content-Type: application/json" --data '{"individualId":2837360,"userName":"sully@yllus.com","networkId":4474488,"localId":null,"golfCanadaCardId":"6106821450","firstName":"Sully","lastName":"Syed","gender":"M","birthDate":"1981-06-11T00:00:00","culture":"en-CA","imagePath":null,"friendCount":25,"handicap":27.8,"handicapSuffix":null,"displayHandicap":"27.8","handicapDate":"2023-08-10T00:00:00","lowHandicap":null,"displayLowHandicap":"NH","lowHandicapDate":null,"email":"sully@yllus.com","homePhone":null,"mobilePhone":"647-298-4401","line1":"425 Queen St. E","line2":"Apartment #A","city":"Toronto","region":"ON","postalCode":"M5A1T5","clubId":673,"sourceClubId":null,"clubName":"Golf House Golf Club","isActive":true,"isPrimary":true,"isArchived":false,"isClubManagingUpgrades":true,"managementGroup":"GolfCanada","expirationDate":"2023-12-31T00:00:00","clubMembershipLevel":"Gold","clubCategoryType":"Partner","clubMembershipType":"FullMembership","clu
<div id="mc_embed_shell">
<link href="//cdn-images.mailchimp.com/embedcode/classic-061523.css" rel="stylesheet" type="text/css">
<style type="text/css">
#mc_embed_signup{background:#fff; false;clear:left; font:14px Helvetica,Arial,sans-serif; width: 100%;}
/* Add your own Mailchimp form style overrides in your site stylesheet or in this style block.
We recommend moving this block and the preceding CSS link to the HEAD of your HTML file. */
#mc_embed_signup .button { background-color: #0078C1; }
#mc_embed_signup .mc-field-group.input-group label { float: none; }
</style>
<div id="mc_embed_signup">