Skip to content

Instantly share code, notes, and snippets.

@seven332
seven332 / cctuku.py
Last active January 2, 2016 03:49
Download archives from http://www.tuku.cc/
# coding=utf-8
import os
import re
import sys
import zipfile
import requests
# Your cookie
headers = {'Cookie': 'your cookie'}
# coding=utf-8
import os
import time
import requests
def ensure_dir(f):
d = os.path.join(os.getcwd(), f)
if not os.path.exists(d):
# coding=utf-8
"""
Copyright © 2016 Hippo Seven
This work is free. You can redistribute it and/or modify it under the
terms of the Do What The Fuck You Want To Public License, Version 2,
as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.
"""
import os
@seven332
seven332 / ikanman.py
Last active March 9, 2017 10:27
Download manga from http://tw.ikanman.com/
import os
import re
import zipfile
import sys
import colorama
from subprocess import call
from selenium import webdriver
from termcolor import colored, cprint
# Include
find_path(SDL2_INCLUDE_DIR SDL2/SDL.h)
if(SDL2_INCLUDE_DIR)
set(SDL2_INCLUDE_DIR2 ${SDL2_INCLUDE_DIR}/SDL2)
endif(SDL2_INCLUDE_DIR)
# Lib
find_library(SDL2_MAIN_LIBRARY NAMES SDL2main)
find_library(SDL2_LIBRARY NAMES SDL2)
@seven332
seven332 / CMakeLists.txt
Last active June 14, 2016 12:12
Some CMakeLists.txt
dump
@seven332
seven332 / SDL2-Android-Assets.patch
Last active June 21, 2016 09:10
Base on SDL release-2.0.4
Index: include/SDL_rwops.h
===================================================================
--- include/SDL_rwops.h (revision 8be6e5ca9041dfcf8b20c85e43eb3beaa6efdd2b)
+++ include/SDL_rwops.h (revision )
@@ -96,15 +96,7 @@
#if defined(__ANDROID__)
struct
{
- void *fileNameRef;
- void *inputStreamRef;