Skip to content

Instantly share code, notes, and snippets.

View razinbunsu's full-sized avatar

razin.bunsu razinbunsu

View GitHub Profile
@razinbunsu
razinbunsu / scroll into.js
Created December 11, 2023 06:53 — forked from giventofly/scroll into.js
scroll to element vanilla js
//from https://css-tricks.com/snippets/jquery/smooth-scrolling/
// Scroll to specific values
// scrollTo is the same
window.scroll({
top: 2500,
left: 0,
behavior: 'smooth'
});

Why read books when you can learn things the hard way? Because good books are written by people with experience, people who learnt from their mistakes. No point in comitting the same mistakes and learning from them, when you can read a book and do better. Be better informed so that you make mistakes that very few have yet to come across.

HTML, CSS & JavaScript

Learn

Starting with the best introductory books to HTML, CSS & JS by Jon Duckett, just so that I am not caught unaware by any unexpected JS in the other books. Then moving on to the high quality publishers of content on Web Design, because as a beginner I should be learning from the best. Then everything else, keeping in mind that even if I learn just one thing that's extremely useful or thoughtful from an entire book, that's still great.

  1. HTML and CSS: Design and Build Websites by Jon Duckett (Official Site)
  2. JavaScript and JQuery: Interactive Front-End Web Development by Jon Duckett ([Official Site]
@razinbunsu
razinbunsu / nvmCommands.js
Created August 15, 2022 03:59 — forked from chranderson/nvmCommands.js
Useful NVM commands
// check version
node -v || node --version
// list installed versions of node (via nvm)
nvm ls
// install specific version of node
nvm install 6.9.2
// set default version of node
@razinbunsu
razinbunsu / wp-query-ref.php
Created May 27, 2018 11:09 — forked from luetkemj/wp-query-ref.php
WP: Query $args
// This gist is now maintained on github at https://github.com/luetkemj/wp-query-ref
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.github.io
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters
* Source: https://core.trac.wordpress.org/browser/tags/4.9.4/src/wp-includes/query.php
*/
@razinbunsu
razinbunsu / custom-post-taxonomy-permalinks.php
Created May 22, 2018 09:43 — forked from kasparsd/custom-post-taxonomy-permalinks.php
Create permalink structure URLs for custom post types that include all parent terms from a custom taxonomy
<?php
/*
Term Archive Pages:
- http://example.com/recipes/dinner/
- http://example.com/recipes/breakfast,brunch/
Single Recipe Pages:
- http://example.com/recipes/dinner/soup-title/