Skip to content

Instantly share code, notes, and snippets.

View sampathg9's full-sized avatar

Sampath Kumar G sampathg9

  • Hyderabad
View GitHub Profile
@sampathg9
sampathg9 / resume.json
Last active October 8, 2023 09:45
Resume
{
"meta": {
"theme": "elegant"
},
"basics": {
"name": "Sampath Kumar Gembali",
"label": "Senior Software Engineer - III (SDE-3) at Transactive Group",
"image": "",
"email": "sampathkumar0019@gmail.com",
"phone": "9966004353",
@sampathg9
sampathg9 / indian.districts.geocoded.pincode.json
Created November 27, 2018 10:25 — forked from prashnts/indian.districts.geocoded.pincode.json
Indian District's GeoCoded Pin Code Data
{
"_description: Name of City, or Town": {
"State": "The Indian State under which this City/Town exists.",
"GeoCode": [
"Latitude",
"Longitude"
],
"PinCodes": [
"All",
"The",
<?php
$cron = "*/5 * * * * *";
$result = preg_match(
"/(\*|[0-5]?[0-9]|\*\/[0-9]+)\s+"
."(\*|1?[0-9]|2[0-3]|\*\/[0-9]+)\s+"
."(\*|[1-2]?[0-9]|3[0-1]|\*\/[0-9]+)\s+"
."(\*|[0-9]|1[0-2]|\*\/[0-9]+|jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)\s+"
."(\*\/[0-9]+|\*|[0-7]|sun|mon|tue|wed|thu|fri|sat)\s*"
."(\*\/[0-9]+|\*|[0-9]+)?/i", $cron, $matches);
@sampathg9
sampathg9 / media-queries.scss
Created January 4, 2017 07:24 — forked from chrisjlee/media-queries.scss
All Media Queries breakpoints
@media (min-width:320px) { /* smartphones, portrait iPhone, portrait 480x320 phones (Android) */ }
@media (min-width:480px) { /* smartphones, Android phones, landscape iPhone */ }
@media (min-width:600px) { /* portrait tablets, portrait iPad, e-readers (Nook/Kindle), landscape 800x480 phones (Android) */ }
@media (min-width:801px) { /* tablet, landscape iPad, lo-res laptops ands desktops */ }
@media (min-width:1025px) { /* big landscape tablets, laptops, and desktops */ }
@media (min-width:1281px) { /* hi-res laptops and desktops */ }
@sampathg9
sampathg9 / prevent_enter.js
Created November 23, 2016 06:22
Java Script function to prevent submit on click of Enter(Using JQuery Library)
function preventEnterSubmit($form) {
$form.keypress(function(e) {
if (e.which == 13) {
var $targ = jQuery(e.target);
if (!$targ.is("textarea") && !$targ.is(":button,:submit")) {
var focusNext = false;
jQuery(this).find(":input:visible:not([disabled],[readonly]), a").each(function(){
if (this === e.target) {
focusNext = true;
@sampathg9
sampathg9 / media_queries_tpl.css
Last active June 15, 2017 10:58
CSS3 Media Queries Template
/* Smartphones (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
/* Styles */
}
/* Smartphones (landscape) ----------- */
@media only screen
@sampathg9
sampathg9 / install_mysql.sh
Created November 23, 2016 06:09 — forked from rrosiek/install_mysql.sh
Vagrant provision script for php, Apache, MySQL, phpMyAdmin, Laravel, and javascript helpers. Tested with Ubuntu 16.04.
#! /usr/bin/env bash
###
#
# install_mysql.sh
#
# This script assumes your Vagrantfile has been configured to map the root of
# your application to /vagrant and that your web root is the "public" folder
# (Laravel standard). Standard and error output is sent to
# /vagrant/vm_build.log during provisioning.

Basics

Creating a new PHPExcel Object.

    $this->PHPExcel = new PHPExcel();

Working with sheets

Creating a new sheet:

@sampathg9
sampathg9 / GIT issues solving procedure.md
Last active June 8, 2024 10:35
Procedure to solve an issue on GIT repositories:

Procedure to solve an issue on GIT repositories:

  1. Firstly, we must update the code in our local system.

  2. Review the issues on GIT.

  3. When we click on issue, that issue will expand, after reading the issue put the status to this issue as ”S2 – In analysis”.

  4. Assign that issue to yourself on git.