Skip to content

Instantly share code, notes, and snippets.

View mikhy888's full-sized avatar
💭
I may be slow to respond.

Mikhil Jose mikhy888

💭
I may be slow to respond.
  • Bangalore, India
View GitHub Profile
@mikhy888
mikhy888 / svg.js
Created September 12, 2018 06:51 — forked from schmidt1024/svg.js
Replace all SVG images with inline SVG using jQuery
/*
* Replace all SVG images with inline SVG
*/
jQuery('img.svg').each(function(){
var $img = jQuery(this);
var imgID = $img.attr('id');
var imgClass = $img.attr('class');
var imgURL = $img.attr('src');
jQuery.get(imgURL, function(data) {
@mikhy888
mikhy888 / sendgrid.php
Created June 12, 2018 06:27 — forked from keithweaver/sendgrid.php
Send an email with PHP using Sendgrid (Mail Server)
<?php
// You need to install the sendgrid client library so run: composer require sendgrid/sendgrid
require '/vendor/autoload.php';
// contains a variable called: $API_KEY that is the API Key.
// You need this API_KEY created on the Sendgrid website.
include_once('./credentials.php');
$FROM_EMAIL = 'YOUR_EMAIL';
// they dont like when it comes from @gmail, prefers business emails