• Repeating text within a document in MS WORD

    Repeating text within a document in MS WORD

    Repeating text within a document in MS WORD If you have some text in a Word document that you’d like to repeat a document and don’t want to write it again, and you’d rather not copy/paste it from the other location as that means that you’ll have to remember to maintain it in both places… Read more

  • header file in C++

    header file in C++

    <bits/stdc++.h> header file in C++ It is basically a header file that includes every standard library. In programming, people focus more on finding algorithm to solve a problem than on software engineering. From, software engineering perspective, it is a good idea to minimize the include. It actually includes a lot of files, which your program may… Read more

  • Jquery panel slide down

    Jquery panel slide down

    Jquery panel slide down Jquery makes this work easy by using just one word that is slideToggle. HTML: <body> Click to slide the panel down or up Hello world! </body> Read more

  • MAKING FOLLOW-MAPPING ON RAILS

    MAKING FOLLOW-MAPPING ON RAILS

    MAKING FOLLOW-MAPPING ON RAILS   STEP-1:  On terminal $rails g model FollowMapping follower_id:integer followee_id:integer $rake db:migrate STEP-2: home_controller def users @users = User.all  end Read more

  • Fixing a header after scrolling to a certain point

    Fixing a header after scrolling to a certain point

    Fixing a header after scrolling to a certain point For this we have to use javascript for fixing header at a certain point. $(document).scroll(function() { var y = $(document).scrollTop(); header = $(“#menu”); if (y >= 200) { header.css({ position: “fixed”, “top”: “0”, “left”: “0” }); } else { header.css(“position”, “relative”); } }); So here #menu… Read more

  • Parallax Scrolling Effect

    Parallax Scrolling Effect

      Parallax Scrolling Effect This is purely based on html and css. Parallax is an effect where the position of an object seems to be different when viewed from different positions. Parallax motion, or in our case, parallax scrolling, then gives us the illusion that two objects in the same line of sight, but with… Read more

Advertisements