Skip to content

Instantly share code, notes, and snippets.

View vharsh's full-sized avatar
🔵
playing with Bluetooth

Harsh Vardhan vharsh

🔵
playing with Bluetooth
View GitHub Profile
@vharsh
vharsh / reverse.c
Created July 28, 2016 06:30
Reversing things :)
#include <stdio.h>
void pong(int);
int main(void) {
int val;
if (scanf("%i", &val) == 1)
pong(val);
return 0;
}
void pong(int n) {
int N;
@vharsh
vharsh / starUML
Created December 5, 2016 06:45
StarUML working on Fedora25
[harsh@localhost StarUML-for-Fedora]$ ls -la
total 28
drwxrwxr-x. 3 harsh harsh 4096 Dec 5 12:11 .
drwxrwxr-x. 3 harsh harsh 4096 Dec 5 12:11 ..
drwxrwxr-x. 8 harsh harsh 4096 Dec 5 12:11 .git
-rwxrwxr-x. 1 harsh harsh 1724 Dec 5 12:11 installation.sh
-rw-rw-r--. 1 harsh harsh 965 Dec 5 12:11 README.md
-rw-rw-r--. 1 harsh harsh 203 Dec 5 12:11 staruml.desktop
-rwxrwxr-x. 1 harsh harsh 747 Dec 5 12:11 uninstall.sh
[harsh@localhost StarUML-for-Fedora]$ ./installation.sh
@vharsh
vharsh / error.log
Created June 14, 2017 05:10
Scanf problems
harsh@genesis:~/code/small/go$ go run sscanf.go
github.com/vharsh/cat-no-cat
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x485851]
goroutine 1 [running]:
fmt.errorHandler(0xc420041e38)
/usr/lib/go-1.8/src/fmt/scan.go:1039 +0x160
panic(0x49c3e0, 0x50a8f0)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.