Instantly share code, notes, and snippets.

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
http://wknc.sma.ncsu.edu:8000/wknchq.ogg.m3u (radio)
https://stream.wuvt.vt.edu/wuvt-hq.ogg
http://ubuntu.hbr1.com:19800/trance.ogg
http://ubuntu.hbr1.com:19800/ambient.ogg
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;