Skip to content

Instantly share code, notes, and snippets.

View iankit3's full-sized avatar
💭
:-:

Ankit Kumar iankit3

💭
:-:
View GitHub Profile
npm install --save react@0.14.7
npm install --save react-dom@0.14.7
npm install --save-dev webpack@1.12.12
npm install webpack-dev-server@1.12.1 -g
npm install --save-dev babel-loader@6.2.1
npm install --save-dev babel-core@6.4.5
@iankit3
iankit3 / socket.c
Created February 18, 2017 10:38 — forked from nolim1t/socket.c
HTTP Request in C using low level write to socket functionality
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <netinet/tcp.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
@iankit3
iankit3 / index.html
Created March 13, 2019 10:13
JS Bin WebComponents Example // source https://jsbin.com/royufaquka
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="WebComponents Example">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<my-component></my-component>
@iankit3
iankit3 / index.html
Last active March 17, 2019 12:28
Snake Game in Javascrip JS Bin// source https://jsbin.com/vihegiw
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Snake Game in Javascript">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
#canvas{
border : 2px solid green;
@iankit3
iankit3 / index.html
Created June 26, 2019 09:16
JS Bin Snake Game in Javascript // source https://jsbin.com/vihegiw
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Snake Game in Javascript">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
#canvas{
border : 2px solid green;
@iankit3
iankit3 / getElementsByClassName.js
Last active March 8, 2020 17:00
document.getElementsByClassName
// Just to test, Run it on https://www.hackerearth.com/practice/data-structures/hash-tables/basics-of-hash-tables/tutorial/
var root = document.getRootNode();
var count = 0;
var list = [];
function search(head) {
if (head.classList && head.classList.contains("light")) {
count++;
list.push(head);
(function(){
var r = document.getRootNode();
var stack = [], list = [];
stack.push(r);
while(stack.length > 0){
var top = stack.pop();
if(top.childNodes.length > 0){
@iankit3
iankit3 / index.html
Created March 2, 2020 14:56
Medium Clap Like feature // source https://jsbin.com/zujavim
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Medium Clap Like feature</title>
<style id="jsbin-css">
button.clap{
width: 30px;
height: 30px;
@iankit3
iankit3 / index.html
Last active March 2, 2020 15:42
Autocomple using Debounce or Throttle - JS Bin// source https://jsbin.com/fajikaj
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script src="https://unpkg.com/@reactivex/rxjs@5.0.3/dist/global/Rx.js"></script>