Skip to content

Instantly share code, notes, and snippets.

View AmanRaj1608's full-sized avatar
🍀
Get Schwifty!

Aman Raj AmanRaj1608

🍀
Get Schwifty!
View GitHub Profile
@AmanRaj1608
AmanRaj1608 / InputNode.js
Last active March 9, 2019 17:36
Taking Input in Node.js for competitive
// Get process.stdin as the standard input object.
var standard_input = process.stdin;
// Set input character encoding.
// Although not mendatory
standard_input.setEncoding('utf-8');
// Prompt user to input data in console.
console.log("Enter your name");
@AmanRaj1608
AmanRaj1608 / tech-sheet.md
Created June 21, 2019 19:33 — forked from tamtamchik/tech-sheet.md
IT Tech-sheet

IT Tech-sheet

  1. Google
  2. HTTP / HTTPS
  3. MVC / MVVM
  4. LAMP
  5. AJAX
  6. Comet / WebSockets / Pooling
  7. git / Mercurial / SVN
  8. BASH
@AmanRaj1608
AmanRaj1608 / After_React.md
Last active December 26, 2019 14:29
To Do after Learning React

Already know in React

  • React Basics
  • Props , States , Component Lifecycle
  • React Hooks
  • Http requests
  • Routing
  • Redux

To Do after Learning React

Projects

@AmanRaj1608
AmanRaj1608 / code-jam-qualification-round-2020.cpp
Created April 5, 2020 08:15
code jam Qualification Round 2020 my codes
// AmanRaj1608
#include<bits/stdc++.h>
using namespace std;
#define ll long long int
#define vi vector<ll>
#define pb push_back
#define rep(i,a,b) for(ll i = a; i<b; ++i)
#define f(a) for(ll i = 0; i<a; ++i)
#define p(a) cout << a << "\n";
#define p2(a,b) cout << a << " " << b << "\n";
@AmanRaj1608
AmanRaj1608 / settings.json
Created June 17, 2020 21:22 — forked from thomasmaurer/settings.json
My Windows Terminal Settings settings.json June 2020
// This file was initially generated by Windows Terminal 0.11.1121.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
@AmanRaj1608
AmanRaj1608 / git.md
Last active November 6, 2020 08:36
git: Go back to last commits

To change history commits

Rollback to some last hash then change everything then ammend changes to that commit

git reset --hard 7ab8bc40eef3c8a95271152dc1cfb63a0e4318a9
#add files
git add .
@AmanRaj1608
AmanRaj1608 / Component.jsx
Created January 5, 2021 11:09 — forked from krambertech/Component.jsx
ReactJS: Input fire onChange when user stopped typing (or pressed Enter key)
import React, { Component } from 'react';
import TextField from 'components/base/TextField';
const WAIT_INTERVAL = 1000;
const ENTER_KEY = 13;
export default class TextSearch extends Component {
constructor(props) {
super();
Feature_1 Feature_2 Feature_3 Feature_4 Class
3.6216 8.6661 -2.8073 -0.44699 0
4.5459 8.1674 -2.4586 -1.4621 0
3.866 -2.6383 1.9242 0.10645 0
3.4566 9.5228 -4.0112 -3.5944 0
0.32924 -4.4552 4.5718 -0.9888 0
4.3684 9.6718 -3.9606 -3.1625 0
3.5912 3.0129 0.72888 0.56421 0
2.0922 -6.81 8.4636 -0.60216 0
3.2032 5.7588 -0.75345 -0.61251 0
@AmanRaj1608
AmanRaj1608 / installing-node-with-nvm.md
Created March 20, 2021 14:24 — forked from d2s/installing-node-with-nvm.md
Installing Node.js to Linux & macOS & WSL with nvm

Installing Node.js with nvm to Linux & macOS & WSL

A quick guide on how to setup Node.js development environment.

Install nvm for managing Node.js versions

nvm allows installing several versions of Node.js to the same system. Sometimes applications require a certain versions of Node.js to work. Having the flexibility of using specific versions can help.

  1. Open new Terminal window.