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
#!/usr/bin/env python | |
import opencc | |
import os | |
import sys | |
import glob | |
import zipfile | |
converter = opencc.OpenCC('s2hk.json') | |
def expand_wildcards(pattern): |
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
// gcc tgs2gif.c -o tgs2gif -lrlottie -O3 -lz `MagickWand-config --cppflags --cxxflags --ldflags --libs` | |
#include <rlottie_capi.h> | |
#include <MagickWand/MagickWand.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <zlib.h> | |
// Size of the block of memory to use for reading | |
#define LENGTH 0x1000 |
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
#!/usr/bin/env python3 | |
import json | |
import urllib | |
import urllib.request | |
import ipaddress | |
import socket | |
import dns.resolver | |
# pip install dnspython | |
url_data = urllib.request.urlopen('https://api.protonmail.ch/vpn/logicals') |
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 "sqlite3ext.h" | |
#include <stdlib.h> | |
#include <string.h> | |
#include <arpa/inet.h> | |
// gcc -fPIC -shared ipv6_sql.c -g -o libipv6.so | |
SQLITE_EXTENSION_INIT1 | |
static void andIPv6(struct in6_addr* ipv6, const struct in6_addr* mask) | |
{ |
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 <irrlicht.h> | |
#include <string> | |
#include <iostream> | |
#include "../lib/irrlicht/source/Irrlicht/COBJMeshWriter.h" | |
#include "spm/sp_mesh_loader.hpp" | |
int main(int argc, char* argv[]) | |
{ | |
if (argc != 2) | |
{ |
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
diff --git a/src/supertux/screen_manager.cpp b/src/supertux/screen_manager.cpp | |
index 3cf95d8..6ed59c7 100644 | |
--- a/src/supertux/screen_manager.cpp | |
+++ b/src/supertux/screen_manager.cpp | |
@@ -44,6 +44,8 @@ | |
#include <stdio.h> | |
+#include <openglrecorder.h> | |
+ |