Skip to content

Instantly share code, notes, and snippets.

View harsh9539's full-sized avatar
🎯
Focusing

Harsh Goyal harsh9539

🎯
Focusing
View GitHub Profile
@harsh9539
harsh9539 / AdbCommands
Created July 10, 2024 07:11 — forked from Pulimet/AdbCommands
Adb useful commands list
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
var mediaJSON = { "categories" : [ { "name" : "Movies",
"videos" : [
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ],
"subtitle" : "By Blender Foundation",
"thumb" : "images/BigBuckBunny.jpg",
"title" : "Big Buck Bunny"
},
{ "description" : "The first Blender Open Movie from 2006",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ],
@harsh9539
harsh9539 / tasks.json
Created January 28, 2024 18:58
tasks.json for cpp input output file configure on windows
Note: It will not work if your default terminal is Powershell. Make it "cmd" then it will work.
To change default terminal : Hit clt+shift+p->write:default terminal->change it to cmd.
{
"version": "2.0.0",
"tasks": [
{
"label": "Compile and run",
"type": "shell",
"command": "",
@harsh9539
harsh9539 / tasks.json
Created January 28, 2024 18:56
tasks.json for cpp input output configure in mac
{
"version": "2.0.0",
"tasks": [
{
"label": "compile",
"type": "shell",
"command": "g++",
"args": [
"-std=c++17",
"-o",
@harsh9539
harsh9539 / stdc++.h
Created January 28, 2024 18:55
bits/stdc++.h
// C++ includes used for precompiling -*- C++ -*-
// Copyright (C) 2003-2015 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by the
// Free Software Foundation; either version 3, or (at your option)
// any later version.
@harsh9539
harsh9539 / .gitignore
Created January 28, 2024 18:55
.gitignore c++
# -------- MAC --------
# General
.DS_Store
.AppleDouble
.LSOverride
# Icon must end with two \r
Icon