View IPAddress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
response = requests.get("https://httpbin.org/ip") | |
print(response.json()['origin']) |
View panel_browse.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <curses.h> | |
#include <panel.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#define NLINES 10 | |
#define NCOLS 40 | |
#define COUNT 3 | |
#define TEELINE 2 |
View cool_window.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <curses.h> | |
#include <panel.h> | |
#include <menu.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <assert.h> | |
char *itemsstr[][2] = { | |
{"Resume", "Continue where you left"}, |