Skip to content
28 Mar 2026

Nilambar Sharma

My personal ramblings

  • Home
  • About
  • Date Converter
  • Contact
  • Home
  • About
  • Date Converter
  • Contact

Tag: Programming

jQuery’s getJSON function to retrieve data in JSON format; Same domain or cross-domain request
Uncategorized

jQuery’s getJSON function to retrieve data in JSON format; Same domain or cross-domain request

Nilambar Sharmaby Nilambar Sharma25 Aug 201119 Dec 2019

Today I want to share the problems I faced and its solution about using JSON with jQuery. JSON is a lightweight text-based open standard designed for human-readable data interchange. It is being popular nowadays and …

Uncategorized

Empty directory recursively in PHP

Nilambar Sharmaby Nilambar Sharma24 Aug 201119 Dec 2019

Sometime we need to delete all contents in the directory whether it is any files or directory. At that time this function will be handy to fulfill our need. It empties the folder recursively, that …

Uncategorized

How to use javascript replace() method

Nilambar Sharmaby Nilambar Sharma24 Aug 201119 Dec 2019

In Javascript, there is a handy function replace() for String Object. We can easily replace the sub-string with new string and also regular expression in available. Replace may be case-sensitive or case insensitive. Also global …

Uncategorized

How to create custom selector in jQuery

Nilambar Sharmaby Nilambar Sharma22 Aug 201119 Dec 2019

We know jQuery has powerful collection on selectors. Even more jQuery allows us to extend selectors as per our requirement. In addition to the class and id selectors, there are many selection expressions that use the …

Uncategorized

How to send mail with attachments using PHPMailer

Nilambar Sharmaby Nilambar Sharma22 Aug 201119 Dec 2019

PHP has default mail() function for sending mail. We can easily send mail using this function passing few parameters. But there is one nice class named ‘PHPMailer’ extending that function with lots of attractive and useful features. This …

Posts navigation

Newer posts

Quick Search

GitHub Repos

  • wp-cli-tips — ★ 12
    WP-CLI tips and tricks
  • database-command — ★ 10
    WP CLI Tool to reset WordPress database. This reset WP database but retains given administrator user account.
  • wp-deployer — ★ 6
    Deploy WordPress plugin and theme to the wordpress.org plugin directory.
  • nepali-date — ★ 5
    Nepali Date Converter and Utilities.
  • acf-dimensions — ★ 4
    An ACF field for dimension.

NPM Packages

  • easy-replace-in-files (v2.0.0)
    CLI to find and replace in files via a JSON config. Supports globs, regex, and placeholders (e.g. $$package__version$$, $$ENV_VAR$$). Great for version bumps and build-time replacements.
  • @nilambar/slugmo (v1.0.1)
    Convert text to URL-safe slugs.
  • packtor (v1.0.4)
    Copy files and folders to a directory and create its zip.
  • toastle (v2.1.0)
    Lightweight vanilla JavaScript toast notifications — zero dependencies, ESM.
  • hashmo (v2.0.0)
    CLI to write a file with a timestamp-based hash (plaintext, PHP, or JSON).

Recent Posts

  • Niya – Minimal WordPress FSE Theme
  • 5 Best WordPress Coming Soon Page & Maintenance Mode Plugins
  • 5 Best WordPress Google reCAPTCHA plugins
  • Nepali Date: PHP Composer Package for Nepali Date Converter and Utilities
  • ACF Dimensions: An Advanced Custom Fields addon for Dimensions Field
  • Obulma: Free WordPress Theme
  • How to setup and use Gist in Visual Studio Code
  • WooCommerce Product Tabs WordPress Plugin
  • Top 5 job searching sites in Nepal
  • Basic terms you need to know in Stock Market
Copyright © 2026 Nilambar Sharma. Powered by WordPress.