Skip to content

Instantly share code, notes, and snippets.

View QasimTalkin's full-sized avatar
🎯
Focusing

Abul Qasim QasimTalkin

🎯
Focusing
View GitHub Profile
@QasimTalkin
QasimTalkin / Custom-Shell-Timer.md
Last active June 26, 2023 13:05
This is a Bash function called `timer` that starts a countdown timer with an optional duration

Shell Timer Function

This guide explains how to create a timer function in the shell/iterm/Terminal using Bash scripting. The function allows you to start a countdown timer with an optional duration. When the timer ends, it plays a sound and announces the end of the timer.

Installation

To use the timer function, follow these steps:

  1. Ensure you have Homebrew installed on your macOS.
  2. Open the terminal and run the following command to install the required tool:
@QasimTalkin
QasimTalkin / W3-School-Web-Dev-1.1.md
Last active June 20, 2023 21:32
📝 **Code Sharing and Management with GitHub**

📝 Code Sharing and Management with GitHub

🖥️ For Windows:

  1. Launch your preferred web browser.

  2. Visit GitHub.

  3. In this class, we will be sharing code using repositories on GitHub.

@QasimTalkin
QasimTalkin / CFML_30_Mins.md
Last active July 5, 2022 13:33
CFML in 30 mins : ColdFusion Quick Start

0.0.1 CFML in 30 mins

0.0.2. Two syntax

  • tag based <cfoutput> #somevar# </cfoutput>
  • script based <cfscript> writeoutput("sada") </cfscript>

0.0.3. Commentsstart

@QasimTalkin
QasimTalkin / JSON-HTML.md
Created June 5, 2022 13:51
Print Json In HTML With Colors

Colorful JSON in HTML

JSON can very easily be translated into JavaScript. JavaScript can be used to make HTML in your web pages.

HTML

<pre><code id=account></code></pre>
<pre><code id=planets></code></pre>
@QasimTalkin
QasimTalkin / Automatic access token in Postman.md
Last active November 19, 2021 13:50
Automatically generate and set up access token and host in postman

Get postman to automatically generate an access token and set up your host and make any request

Changes based on request and response

  • Change host to your 'host'
  • Your access token key in response maybe different could vary from being acessToken, token, access_token and so on, read accordingly and change the conde where ever access_toekn is being called
  • Same for expires in
pm.collectionVariables.set("host", "https://reqbin.com/echo/post/json");
const authTokenReq = {
  url: 'https://reqbin.com/echo/post/json',
@QasimTalkin
QasimTalkin / TowSumsRuby.md
Created September 29, 2021 14:42
Two Sums (Brute-force and optimized solution)

Two Sums

Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target.

You may assume that each input would have exactly one solution, and you may not use the same element twice.

You can return the answer in any order.

Example

@QasimTalkin
QasimTalkin / arrowFunction.md
Created September 23, 2021 13:02
Easy ES6 arrow function and 'this' keyword

ES6 Arrow function.

This in JS

  • much like objects functions have their own property, this being one of them
  • this always holds the reference to a single object, that defines the current line of code’s execution context.
  • functions in JS are invoked in following manner 1.Function invocation - THIS with function invocation. - calling the function --- something() - this inside the something() function has value of the global objects (window object in browser environment).
  • 'use strict' the default value of this, for any function object is set to undefined instead of the global object.
@QasimTalkin
QasimTalkin / sqlvsnosql.md
Created September 23, 2021 12:59
SQL vs NO SQL

SQL vs No SQL

SQL

  • Database (keywords like select and from, insert update delete)
  • store-> pre defined table values and column (table)
  • row or record
  • name column
  • relational database (user order related by id and product )
  • all record adhere to schema and need to be normalized
  • one to one, many to many