Posts

DsAlgo | Questions

1) What is "Stack" in Dsalgo 2) heap in dsalgo 3) malloc in c/c++  4) difference between .exe and .c file 5) big O and Time complexity Notes: 1.) In Heap we requests dynamic memory using pointers in the form of  array and after the use of that dynamic memory that array get removed/erased/released and we can call that array  again in heap any time during program execution. We don't use stack as a dynamic memory because that data will remain in stack unless program execution gets get finished and which makes the execution of program slower. 

Share button | Javascript

/*  Social Share Links: WhatsApp: https://wa.me/?text=[post-title] [post-url] Facebook: https://www.facebook.com/sharer.php?u=[post-url] Twitter: https://twitter.com/share?url=[post-url]&text=[post-title] Pinterest: https://pinterest.com/pin/create/bookmarklet/?media=[post-img]&url=[post-url]&is_video=[is_video]&description=[post-title] LinkedIn: https://www.linkedin.com/shareArticle?url=[post-url]&title=[post-title] */ const   facebookBtn   =   document . querySelector ( ".facebook-btn" ); const   twitterBtn   =   document . querySelector ( ".twitter-btn" ); const   pinterestBtn   =   document . querySelector ( ".pinterest-btn" ); const   linkedinBtn   =   document . querySelector ( ".linkedin-btn" ); const   whatsappBtn   =   document . querySelector ( ".whatsapp-btn" ); function   init () {    const   pinterestImg   =   document . query...

Background Image styling | CSS

#section{     background: center/cover no-repeat url("/static/bg.jpg");     }

Share button

Share Button source code link: https://github.com/Godsont/Social-Share-Buttons Use Addthis.com website:  1. click on tools  2. customize buttons  3. copy the script code and put it in your body tag of html/pug file  4. copy the class code and put where you want your share buttons 

What next

 Next Tasks: 1. Make website responsible for mobile phones. 2. Add some bootstrap designs. 3. Organize the code of website:      i) Make separate file for routes.     ii) Make separate layout for post in website so that we can inherit/use it for upcoming posts. 4. Do some change in UI  and make website more professional. 5. Fix the position of navbar. 6. Find some new features so that you can apply on it  and learn it. 7. Make share button or link share button.  8. Make modals.

Bootstrap Typography

< p class = " text-primary " > Primary: Please read the instructions carefully before proceeding. </ p > < p class = " text-secondary " > Secondary: This is featured has been removed from the latest version. </ p > < p class = " text-success " > Success: Your message has been sent successfully. </ p > < p class = " text-info " > Info: You must agree with the terms and conditions to complete the sign up process. </ p > < p class = " text-warning " > Warning: There was a problem with your network connection. </ p > < p class = " text-danger " > Danger: An error has been occurred while submitting your data. </ p > < p class = " text-muted " > Muted: This paragraph of text is grayed out. </ p > Blockquote- < blockquote class = " blockquote " > < p class = " mb-0 " > The world is a danger...

Banking Application | Mini Project | JAVA

package BankingApplication ; import java.sql.SQLOutput ; import java.util.Scanner ; public class StateBankOfIndia { public static void main (String []args) { // TODO BankAccount chandan= new BankAccount( "Chandan" , "20110212805" ) ; chandan.ShowMenu() ; } } class BankAccount { int Balance ; int PreviousTransaction ; String CustomerId ; String CustomerName ; public int Amount ; BankAccount (String name , String cid) { CustomerName =name ; CustomerId =cid ; } void deposit ( int Amount) { if (Amount != 0 ) { Balance = Balance + Amount ; PreviousTransaction = Amount ; } } void Withdraw ( int Amount) { if (Amount != 0 ) { Balance = Balance - Amount ; PreviousTransaction = -Amount ; } } void GetPreviousTransaction () { if ( PreviousTransaction > 0 ) { ...