Skip to content

Instantly share code, notes, and snippets.

View amitmerchant1990's full-sized avatar

Amit Merchant amitmerchant1990

View GitHub Profile
@amitmerchant1990
amitmerchant1990 / brand_new_repo_git.md
Last active July 23, 2019 22:27
Setup a brand new repo on Git
1) Configure your user and email for Git via the following command.
  • configure the user which will be used by git

  • Of course you should use your name

    git config --global user.name "Example Surname"

  • Same for the email address

    git config --global user.email "[email protected]"

My arbitrary thoughts

  • There are only 0b10 kinds of people; those who understand binary and those who don’t.
  • There is a dream I'm living.. There is a life I'm dreaming of.
  • Keep a green tree in your heart, the bird will come automatically.
  • For too long, you and I've been quiet..RISE UP!
@amitmerchant1990
amitmerchant1990 / questions.md
Last active July 12, 2019 04:11
Questions
1) What is Asynchronous call?
  • A function that enables processing to continue without waiting for function to return the value.
2) What is Full-text search ?
  • In this we can match a word or phrase in multiple columns and fetch rows accordingly. The Full-text searches are supported for MyISAM tables only ex. : SELECT * FROM articles WHERE MATCH (title,body) AGAINST ('database');
@amitmerchant1990
amitmerchant1990 / keyboard_shortcut.js
Last active August 29, 2015 13:56
IMPLEMENT KEYBOARD SHORTCUTS FOR YOUR WEBSITE
$(document).ready(function() {
// I have used $(this) so it "listens" on any part of the webpage (document)
// Change this to a single or series of elements if required
$(this).live("keyup", function(e) {
if($("input, textarea").is(":focus")) {
// Do nothing because the user might be typing
return false;
} else {
switch(e.keyCode) {