Skip to content

Instantly share code, notes, and snippets.

View amantheroot's full-sized avatar
🖥️
Doing Stuff

Aman Kumar amantheroot

🖥️
Doing Stuff
  • Hyderabad, India
View GitHub Profile
<h1>Hello World!</h1>
@amantheroot
amantheroot / bck.20180624233711.navigator.settings.json
Last active September 3, 2021 15:35
Visual Studio Code Settings Sync Gist
{
"explorer.confirmDelete": false,
"git.ignoreLegacyWarning": true
}
@amantheroot
amantheroot / ecmatut.js
Created February 1, 2019 23:57
ES6 cheat sheet by Derek Banas
// ---------- LET ----------
if(true){
// If you use var then the variable is available
// globally versus let which makes the variable
// available only in the block
// let x = 10;
var x = 10;
document.write("x = " + x + "<br />");
}
@amantheroot
amantheroot / index.html
Created February 1, 2019 22:15
Fetch API by Traversy Media
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Fetch API Sandbox</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous">
</head>
@amantheroot
amantheroot / ajax1.html
Created February 1, 2019 21:33
JavaScript AJAX cheat sheet by Traversy Media
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Ajax 1 - Text File</title>
</head>
<body>
<button id="button">Get Text File</button>
@amantheroot
amantheroot / dom.js
Created February 1, 2019 19:19
JavaScript DOM Manipulation cheat sheet by Traversy Media
// EXAMINE THE DOCUMENT OBJECT //
// console.dir(document);
// console.log(document.domain);
// console.log(document.URL);
// console.log(document.title);
// //document.title = 123;
// console.log(document.doctype);
// console.log(document.head);
// console.log(document.body);
@amantheroot
amantheroot / jstut.html
Created February 1, 2019 16:38
Javascript cheat sheet by Derek Banas
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<script src="jstut.js"></script>
<style type="text/css">
body {font-size: 1.6em;}
.hidden {display:none;}
.show {display:inline !important;}
@amantheroot
amantheroot / index.html
Created February 1, 2019 03:40
CSS Grid by Traversy Media
<!DOCTYPE html>
<html>
<head>
<title>CSS Grids</title>
<style>
.wrapper{
display:grid;
grid-template-columns: 70% 30%;
/*
grid-column-gap:1em;
@amantheroot
amantheroot / index.html
Created February 1, 2019 03:38
CSS FlexBox by Traversy Media
<div class="container-1">
<div class="box-1">
<h3>Box One</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
</div>
<div class="box-2">
<h3>Box Two</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
</div>
<div class="box-3">
@amantheroot
amantheroot / csstut1.html
Created February 1, 2019 03:31
CSS 3 cheat sheet by Derek Banas
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>CSS Tutorial</title>
<!-- Links to an external Style Sheet -->
<link rel="stylesheet" type="text/css" href="mainstyle.css">
</head>