Skip to content

Instantly share code, notes, and snippets.

View thisisabhinay's full-sized avatar
💻
Coding and learning

Abhinay thisisabhinay

💻
Coding and learning
View GitHub Profile
@thisisabhinay
thisisabhinay / game-demo.js
Created March 9, 2024 19:41
Very basic concept for a turn-based combat
/**
* Very basic combat with the following rules:
* 1. Monster will always make 5 moves in N,S,E,W directions
* 2. Player need to predict these moves and set traps to kill the Monster
* 3. Player will have 5 traps to set
* 4. If the Monster steps on the trap, the Monster will lose HP as per damage power of trap
* 5. Monster steps on the trap when player accurately predicts the Monster's move
* 6. If player fails to kill the Monster, player loses the game
*/
@thisisabhinay
thisisabhinay / friendlyCourseFilter.js
Created February 12, 2024 17:39
JavaScript code to sort search result on O'Reilly Learning platform
/*
* O'Reilly Learning platform in their "individual" plan doesn't provide Beginner to advanced level
* course filter - a very fundamental and basic feature.
*
* Run this code in console to sort those search result and leave a message for them.
* Disclaimer: Not a perfect solution
*
* Author: @thisisabhinay
*/
@thisisabhinay
thisisabhinay / index.html
Created March 16, 2022 08:19
Typography - Content Studio (Version 1.0)
<div class="wrapper">
<h1>Heading 1</h1>
<div class="h1">Heading 1</div>
</div>
<div class="wrapper">
<h2>Heading 2</h2>
<div class="h2">Heading 2</div>
</div>
@thisisabhinay
thisisabhinay / index.html
Created March 16, 2022 07:24
Static Pages - Colors
<div class="wrapper">
<div class="d d-1"></div>
<div class="d d-2"></div>
<div class="d d-3"></div>
<div class="d d-4"></div>
<div class="d d-5"></div>
<div class="d d-6"></div>
<div class="d d-7"></div>
</div>
@thisisabhinay
thisisabhinay / index.html
Last active March 16, 2022 07:22
Typography - Attryb Marketing (Version 1.1)
<div class="wrapper">
<h1>Heading 1</h1>
<div class="h1">Heading 1</div>
</div>
<div class="wrapper">
<h2>Heading 2</h2>
<div class="h2">Heading 2</div>
</div>
@thisisabhinay
thisisabhinay / index.html
Created March 16, 2022 07:21
Typography - Attryb Marketing (Version 1.0)
<div class="wrapper">
<h1>Heading 1</h1>
<div class="h1">Heading 1</div>
</div>
<div class="wrapper">
<h2>Heading 2</h2>
<div class="h2">Heading 2</div>
</div>
@thisisabhinay
thisisabhinay / autoscroll.js
Last active March 8, 2021 07:31
Autoscroll. JS
function scrollpage() {
function f()
{
window.scrollTo(0,i);
if(status==0) {
i=i+1;
if(i>=Height){ status=1; }
} else {
i=i-1;
if(i<=1){ status=0; } // if you don't want continue scroll then remove this line
@thisisabhinay
thisisabhinay / frontendDevlopmentBookmarks.md
Created October 20, 2020 18:42 — forked from dypsilon/frontendDevlopmentBookmarks.md
A badass list of frontend development resources I collected over time.