Skip to content

Instantly share code, notes, and snippets.

View kel's full-sized avatar
🚩
My red flag is that I don't code enough

Kelly Karnetsky kel

🚩
My red flag is that I don't code enough
  • Colorado Springs, CO
View GitHub Profile
@kel
kel / Readme
Created March 23, 2018 21:30
Monitis Smart Agent service
Create smartagent.service in /lib/systemd/system/ and run systemctl daemon-reload.
@kel
kel / iframe-lazyload.js
Created October 12, 2017 18:57
Simple way to lazyload iframes.
/**
* Simple way to lazyload iframes.
*
* Add class of 'lazyload' to iframe and change
* the 'src' attribute to 'data-src'
*/
jQuery(function($) {
function isVisible(element) {
var element = element.getBoundingClientRect()
@kel
kel / readme.md
Created June 26, 2017 20:06 — forked from nasrulhazim/readme.md
Using Middleware to Check Account Activation and Resend Activation E-mail
@kel
kel / readme.md
Created June 26, 2017 20:06 — forked from nasrulhazim/readme.md
Enable Account Activation in Order to Login to the System.
@kel
kel / readme.md
Created June 26, 2017 20:06 — forked from nasrulhazim/readme.md
Send Welcome Email Notification with Event and Listener

Send Welcome Email Notification with Event and Listener

Step 1

Create SendWelcomeEmailNotification notification

php artisan make:notification SendWelcomeEmailNotification
/**
* Change the URL for static files to use the CDN
*/
if (FIT_USE_CDN)
{
add_filter('theme_root_uri', 'fit_cdn_rewrite', 99, 1);
add_filter('wp_get_attachment_image_src', 'fit_cdn_image_rewrite', 99, 1);
add_filter('the_content', 'fit_cdn_content_rewrite', 99, 1);
}
<?php
/**
* Adds active to the class if current path
* equals passed path. Allows custom
* classes as well.
*
* @param $paths
* @param null $classes
* @return string

Keybase proof

I hereby claim:

  • I am kel on github.
  • I am kel (https://keybase.io/kel) on keybase.
  • I have a public key whose fingerprint is ADF4 F24E CD8D BAB6 0489 8D25 8122 B076 76F0 F86D

To claim this, I am signing this object: