Skip to content

Instantly share code, notes, and snippets.

{
"meta":{
"theme":"stackoverflow"
},
"basics":{
"name":"Ajit Singh Kamal",
"label":"Frontend Engineer",
"summary":"A fullstack web developer with a sweet spot for UI/UX development and over 6 years of experience in building elegant and performant web apps. A very product focused developer who prioritizes user feedback first and foremost. Highly skilled with popular front-end frameworks like React, and Vue.js with extensive knowledge of JavaScript and Browser APIs.",
"website":"https://ajitsk.xyz",
"email":"[email protected]",

Keybase proof

I hereby claim:

  • I am ajitsinghkamal on github.
  • I am ginger_chai (https://keybase.io/ginger_chai) on keybase.
  • I have a public key ASByZ_GFKPXSOw3Gttm3q-RGiD0sMZ0bXocmXotS1P2ZPgo

To claim this, I am signing this object:

@ajitsinghkamal
ajitsinghkamal / copyToClipboard.js
Created March 19, 2019 12:57
Copy content to clipboard
/**
* copy content of an element or data from a list to clipboard
*
* @param valueList {Array} list of object or plain list
*
* @param key {String} used to identify the object key whose value
* should be copied in case the provided valueList parameter is a list of object
*
* @param selector {String} query selector string - if provided, copies the content
* of a DOM element if query is successful
@ajitsinghkamal
ajitsinghkamal / gist:e6b596549c7e3f463c26b12008007b1a
Created January 31, 2018 13:55
establish websocket connection over websocket protocol
// use a websocket object
// uses websocket API
const socket = new WebSocket('ws url', [supported protocols])
//set up an event listener for incoming messages
socket.onmessage = (event) => {
//do something
console.log(event.data);