This file contains hidden or 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 <GL/glew.h> | |
| #include <GLFW/glfw3.h> | |
| #include <iostream> | |
| #include <string> | |
| void PrintOpenGLErrors(char const * const Function, char const * const File, int const Line) | |
| { |
This file contains hidden or 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
| -- | |
| -- DeSmuME and NDS Local WiFi Dissector script | |
| -- | |
| -- * Last Modified: 2014-06-06 | |
| -- * Author: Alvin Wong (alvinhochun, alvinhochun-at-gmail-com) | |
| -- | |
| -- This LUA script is designed to be used with Wireshark to inspect the detail | |
| -- of the NDS WiFi local multiplayer protocol. | |
| -- | |
| -- This script contains of three parts: |
This file contains hidden or 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
| # extracted from http//www.naturalearthdata.com/download/110m/cultural/ne_110m_admin_0_countries.zip | |
| # under public domain terms | |
| country_bounding_boxes = { | |
| 'AF': ('Afghanistan', (60.5284298033, 29.318572496, 75.1580277851, 38.4862816432)), | |
| 'AO': ('Angola', (11.6400960629, -17.9306364885, 24.0799052263, -4.43802336998)), | |
| 'AL': ('Albania', (19.3044861183, 39.624997667, 21.0200403175, 42.6882473822)), | |
| 'AE': ('United Arab Emirates', (51.5795186705, 22.4969475367, 56.3968473651, 26.055464179)), | |
| 'AR': ('Argentina', (-73.4154357571, -55.25, -53.628348965, -21.8323104794)), | |
| 'AM': ('Armenia', (43.5827458026, 38.7412014837, 46.5057198423, 41.2481285671)), |
This file contains hidden or 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 sys | |
| import numpy | |
| import cv2 | |
| def comic(img): | |
| # do edge detection on a grayscale image | |
| gray = cv2.cvtColor(img, cv2.COLOR_BGRA2GRAY) | |
| edges = cv2.blur(gray, (3, 3)) # this blur gets rid of some noise |
This file contains hidden or 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
| # Thanks to @danger89 and @Ilothar for updating the gist. | |
| # Set the name and the supported language of the project | |
| project(hello-world C CXX) | |
| # Set the minimum version of cmake required to build this project | |
| cmake_minimum_required(VERSION 3.10) | |
| # Use the package PkgConfig to detect GTK+ headers/library files | |
| find_package(PkgConfig REQUIRED) | |
| pkg_check_modules(GTK REQUIRED gtkmm-3.0) |
This file contains hidden or 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
| typedef struct FontHeader { | |
| int32_t fVersion; | |
| uint16_t fNumTables; | |
| uint16_t fSearchRange; | |
| uint16_t fEntrySelector; | |
| uint16_t fRangeShift; | |
| }FontHeader; | |
| typedef struct TableEntry { | |
| uint32_t fTag; |
This file contains hidden or 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 <iostream> | |
| #include <signal.h> | |
| #include <ncurses.h> | |
| #include <menu.h> | |
| #include <string> | |
| #include <unistd.h> | |
| using namespace std; | |
| #define SCREEN_MAIN 0 |
NewerOlder