Skip to content

Instantly share code, notes, and snippets.

Ujjwal Kumar Ujjwal0501

  • Surat, Gujarat, India
View GitHub Profile
View adb-in ubuntu.txt
install adb and adb-fastboot in ubuntu
`sudo apt install android-tools-adb android-tools-fastboot`
Enable USB Debugging on Your Android Device
If you get the following error, `???????????? no permissions`
Then all you need to do is restart adb daemon, run
`sudo adb kill-server` and `sudo adb start-server`
reboot device command : `adb reboot`
View js-SessionStorage
# sessionStorage
store a value `sessionStorage["key"] = "value";`
## Store multiple values
- to store values "one", "two", "three"
store as follows : `sessionStorage['key"] = ["one", "two", "three"];`
- to retrieve multiple values stored use as follows
`var array = sessionStorage["key"].toString().split(",");`
View online-radio-channels (radio)
Ujjwal0501 / escape1.cpp
Created Oct 19, 2018
scan integer in identifier of type double using cin
View escape1.cpp
#include <iostream>
#include <iomanip>
using namespace std;
int main(void) {
double x, va, vb;
cin >> x >> va >> vb;
// scanf("%lf %lf %lf", &x, &va, &vb);
// following line of code prints integers
cout<< x << " " << va << " " << vb << "\n";
View mindsum.cpp
#include <iostream>
using namespace std;
int level = 0;
int digitsum(long long int n) {
int result = 0;
while (n) {
result += n%10;
n /= 10;
You can’t perform that action at this time.