Skip to content

Instantly share code, notes, and snippets.

View sarathlal-old's full-sized avatar
🎯
Focusing

Sarathlal N sarathlal-old

🎯
Focusing
View GitHub Profile
@sarathlal-old
sarathlal-old / DNS prefetching
Created August 25, 2016 04:56
Common Prefetch Links
<!-- Amazon S3 -->
<link rel="dns-prefetch" href="//s3.amazonaws.com">
<!-- Google CDN -->
<link rel="dns-prefetch" href="//ajax.googleapis.com">
<!-- Microsoft CDN -->
<link rel="dns-prefetch" href="//ajax.microsoft.com">
<link rel="dns-prefetch" href="//ajax.aspnetcdn.com">
<?php
/*
Plugin Name: Custom User Registration Notification
Description: Customized User registration notification
Version: 1.0
Author: Sarathlal N
Author URI: http://sarathlal.com
*/
// Redefine user notification function
@sarathlal-old
sarathlal-old / wrap-paragraphs.js
Created July 31, 2019 06:57 — forked from kavanagh/wrap-paragraphs.js
Wrap an array of strings with p tags
var paragraphs = ['paragraph 1', 'paragraph 1'];
var html = '<p>' + paragraphs.join('</p><p>') + '</p>';