Skip to content

Instantly share code, notes, and snippets.

View kavinrajsi's full-sized avatar
🐌

Kavinraj Santhi Ilangovan kavinrajsi

🐌
View GitHub Profile
@kavinrajsi
kavinrajsi / gist:d2428451fe74109354e1f32af8e803ea
Created August 27, 2021 08:01
calendly 30 min iframe for test
<!-- Calendly inline widget begin -->
<div class="calendly-inline-widget" data-url="https://calendly.com/sundarisilks/30min" style="min-width:320px;height:630px;"></div>
<script type="text/javascript" src="https://assets.calendly.com/assets/external/widget.js" async></script>
<!-- Calendly inline widget end -->
@kavinrajsi
kavinrajsi / learn json#001
Created May 22, 2020 06:26
Convert specifications given below in image to Javascript Object; https://www.mohanbn.com/wp-content/uploads/2008/11/a-star-tech-specs.jpg
const demoCar = [{
"dimensions": [{
"overall length (mm)": "3,500",
"overall width (mm)": "1,600",
"overall height (mm)": "1,490",
"wheelbase (mm)": "2,360",
"track width": [{
"front (mm)": "1,405",
"rear (mm)": "1,400"
}],
Key Sublime Text 3.2.1 Build 3207
----- BEGIN LICENSE -----
Member J2TeaM
Single User License
EA7E-1011316
D7DA350E 1B8B0760 972F8B60 F3E64036
B9B4E234 F356F38F 0AD1E3B7 0E9C5FAD
FA0A2ABE 25F65BD8 D51458E5 3923CE80
87428428 79079A01 AA69F319 A1AF29A4
A684C2DC 0B1583D4 19CBD290 217618CD
@kavinrajsi
kavinrajsi / gulpfile.js
Created March 4, 2019 14:21 — forked from vol4ikman/gulpfile.js
Install wordpress + theme with gulp.js
// npm install gulp@3.9.1 gulp-decompress gulp-download vinyl-ftp del gulp-open gulp-run
/****************************
FTP Server connection
****************************/
var ftp_host = 'devurl.net',
ftp_user = 'user',
ftp_pass = 'pass',
//theme_name = 'gulp-starter',
theme_path = './wp-content/themes/';
@kavinrajsi
kavinrajsi / capture.js
Created August 17, 2018 06:14
phantomjs-headless browser
/*
requires: phantomjs, async
usage: phantomjs capture.js
*/
var async = require('async'),
sizes = [
[320, 480],
[320, 568],
[600, 1024],
[1024, 768],
@kavinrajsi
kavinrajsi / gulp-file-jekyll.js
Last active August 16, 2018 10:43
Example Gulp file from a Jekyll site
'use strict';
var gulp = require('gulp');
var sass = require('gulp-sass');
var uglify = require('gulp-uglify');
var rename = require('gulp-rename');
var browserSync = require('browser-sync');
var cp = require('child_process');
var prefix = require('gulp-autoprefixer');
@kavinrajsi
kavinrajsi / materialDesignShadowHelper.less
Created March 13, 2018 01:42 — forked from gefangenimnetz/materialDesignShadowHelper.less
Less css box-shadow helper for cards & modals according to Googles Material Design spec.
/**
* A mixin which helps you to add depth to elements according to the Google Material Design spec:
* http://www.google.com/design/spec/layout/layout-principles.html#layout-principles-dimensionality
*
* Please note that the values given in the specification cannot be used as is. To create the same visual experience
* the blur parameter has to be doubled.
*
* Author: Florian Kutschera (@gefangenimnetz), Conceptboard GmbH (@conceptboardapp)
*
* Example usage:
{
"bootstrapped": true,
"in_process_packages":
[
],
"installed_packages":
[
"Alignment",
"AutoFileName",
"Color Highlighter",
@kavinrajsi
kavinrajsi / functions.php
Last active July 14, 2019 00:41
Wordpress Optimization
remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
remove_action( 'wp_print_styles', 'print_emoji_styles' );
function _remove_script_version( $src ){
$parts = explode( '?ver', $src );
return $parts[0];
}
add_filter( 'script_loader_src', '_remove_script_version', 15, 1 );
add_filter( 'style_loader_src', '_remove_script_version', 15, 1 );
/*
@kavinrajsi
kavinrajsi / gulpfile.js
Last active August 16, 2018 10:48
gulpfile for development
var gulp = require('gulp'), // init
uglify = require('gulp-uglify'), // min - js
scss = require('gulp-scss'), // compail scss
uglifycss = require('gulp-uglifycss'), // min - css
plumber = require('gulp-plumber'), // plumber - error log
concat = require('gulp-concat'), // concat - connect all file into one - node 6
sourcemaps = require('gulp-sourcemaps'), // sourcemaps generater
autoprefixer = require('gulp-autoprefixer'), // add pre-fix for all browser
imagemin = require('gulp-imagemin'), // image min
htmlmin = require('gulp-htmlmin'), // image min