Skip to content

Instantly share code, notes, and snippets.

View hiteshsahu's full-sized avatar
📈
Trying to make a difference

Hitesh Sahu hiteshsahu

📈
Trying to make a difference
View GitHub Profile
'use strict';
process.stdin.resume();
process.stdin.setEncoding('utf-8');
let inputString = '';
let currentLine = 0;
process.stdin.on('data', function(inputStdin) {
inputString += inputStdin;
@hiteshsahu
hiteshsahu / GirlImages.json
Last active January 8, 2024 18:39
Sample json data with Girl Images of different image sizes and some Text for testing
{
"GirlImages": [{
"description": "Lady with a Teddy",
"image-url": "https://images.pexels.com/photos/3348748/pexels-photo-3348748.jpeg"
},
{
"description": "Girl with camera",
"image-url": "https://images.pexels.com/photos/3812944/pexels-photo-3812944.jpeg"
},
{
@hiteshsahu
hiteshsahu / ExpressServer.js
Created October 20, 2020 09:26
Using ES6 in Node JS
import express from "express"
const bodyParser = require('body-parser');
/**
* Example of using ES6 syntectic sugar to create Express JS server
*/
class ExpressServer {
constructor(hostname =process.env.LOCAL_HOST, port= process.env.DEFAULT_PORT) {
this.serverName = 'Express Server';
this.hostname = hostname;
@hiteshsahu
hiteshsahu / angular-material-grid-of-card-responsive-2.markdown
Created September 17, 2017 06:52
Angular Material - Grid of card Responsive 2
@hiteshsahu
hiteshsahu / README.md
Created April 4, 2017 09:43 — forked from agnoster/README.md
My ZSH Theme

agnoster.zsh-theme

A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)

For Mac users, I highly recommend iTerm 2 + Solarized Dark

@hiteshsahu
hiteshsahu / LiveGraph.html
Created March 29, 2017 09:53
Real Time Graph with KendoUI
<html>
<head>
<base href="http://demos.telerik.com/kendo-ui/radar-charts/radar-area">
<style>html { font-size: 14px; font-family: Arial, Helvetica, sans-serif; }</style>
<title></title>
<link rel="stylesheet" href="https://kendo.cdn.telerik.com/2017.1.223/styles/kendo.common-material.min.css" />
<link rel="stylesheet" href="https://kendo.cdn.telerik.com/2017.1.223/styles/kendo.material.min.css" />
<link rel="stylesheet" href="https://kendo.cdn.telerik.com/2017.1.223/styles/kendo.material.mobile.min.css" />
<script src="https://kendo.cdn.telerik.com/2017.1.223/js/jquery.min.js"></script>
@hiteshsahu
hiteshsahu / Scrolling controls for HTML5 video.markdown
Last active August 29, 2015 14:25
Scrolling controls for HTML5 video
## How to Prepare
You need to follow a very organized and disciplined approach If you are preparing for the Software Engineering Job at Facebook/ Google/ Amazon/Microsoft etc.
(Example: You may use following approach, for a two months plan - around 250 hours)
Actually all these companies e.g. MS, Google, Amazon, Facebook, Apple follow an approach on which that measure the thought process of a candidate.