Skip to content

Instantly share code, notes, and snippets.

View VijayaSankarN's full-sized avatar

Vijaya Sankar N VijayaSankarN

View GitHub Profile
@VijayaSankarN
VijayaSankarN / Config.php
Created July 11, 2017 13:00
PHP INI parser with environment based reading
<?php
class Config
{
private static $environments = ['dev', 'qa', 'prod'];
private static $filenames = ['assets', 'libraries'];
private static $filepath = "/";
private static $environment = NULL;
private static $file_data = NULL;
@VijayaSankarN
VijayaSankarN / str_ireplace_n.php
Last active March 14, 2020 16:08
String replace nth occurrence - case-insensitive using PHP
<?php
/**
* String replace nth occurrence - case-insensitive
*
* @param type $search Search string
* @param type $replace Replace string
* @param type $subject Source string
* @param type $occurrence Nth occurrence
* @return type Replaced string
*/
@VijayaSankarN
VijayaSankarN / str_replace_n.php
Last active June 18, 2023 14:43
String replace nth occurrence using PHP
<?php
/**
* String replace nth occurrence
*
* @param type $search Search string
* @param type $replace Replace string
* @param type $subject Source string
* @param type $occurrence Nth occurrence
* @return type Replaced string
*/
@VijayaSankarN
VijayaSankarN / AWS Solution Architect Associate.md
Last active April 20, 2017 02:37
AWS Solution Architect Associate - Exam Preparation

My Notes for AWS Solution Architect Associate

@VijayaSankarN
VijayaSankarN / My Sublime Plugins List.md
Last active August 1, 2017 12:29
My Sublime Plugins List

My Sublime Plugins

  1. DocBlocker : Block comments / Documentation
  2. Emmet : Auto fill HTML Eg: ul>li*5
  3. Gist : Creating new gists from Sublime
  4. Package Control
  5. Select Quoted : Select texts inside quotes
  6. MarkdownEditing : Edit md files
  7. SideBarEnhancements
  8. SublimeCodeIntel : Sublime autocomplete