Skip to content

Instantly share code, notes, and snippets.

(function(window, document, undefined) {
var interval = 800;
var closeDelay = 200;
var index = 0;
var couponLinks;
var getCoupon = function() {
if (index >= couponLinks.length) {
console.log("领取完毕");
return;
}
@j-iNFINITE
j-iNFINITE / 百度云盘批量转存用户分享
Created February 29, 2016 06:00
百度云盘批量转存用户分享
/**
* 贪灵Gollum for Baiduyun, Ver.3.4.4
* 立即执行函数:百度云盘批量转存用户分享。
*
* 【特点】
* - 可保持或无视原分享者的目录结构。
* - 支持差分转存。
* - 自动分解转存,可突破单次转存总文件数5000的限制。
* - 可在分享主页下,进入某文件夹来转存其下级子文件夹。
* - 支持专辑转存。
@j-iNFINITE
j-iNFINITE / Django 相关代码段
Last active August 28, 2016 07:44
Django 相关
#初始工程
django-admin.py startproject tango_with_django_project
manage.py startapp rango
#启动测试服务器
manage.py runserver
#获取IP
if request.META.has_key('HTTP_X_FORWARDED_FOR'):
You can try this direct VBA approach which doesn't require HEX editing. It will work for any files (*.xls, *.xlsm, *.xlam ...).
Tested and works on
Excel 2007
Excel 2010
Excel 2013 - 32 bit version.
Excel 2016 - 32 bit version.
Looking for 64 bit version? See http://stackoverflow.com/a/31005696/4342479
@j-iNFINITE
j-iNFINITE / py2exe setup
Created January 5, 2016 08:51
简单的py2exe打包setup
# -*- coding: cp936 -*-
from distutils.core import setup
import py2exe
options = {"py2exe":
{"compressed": 1, #压缩
"bundle_files": 1 #所有文件打包成一个exe文件
}}
setup(