Skip to content

Instantly share code, notes, and snippets.

View Lujango's full-sized avatar
💭
I may be slow to respond.

Lujango Lujango

💭
I may be slow to respond.
  • ai
  • Chengdu, Sichuan Sheng, China
View GitHub Profile
@wenLiangcan
wenLiangcan / M.bmp.py
Last active August 1, 2019 16:43
来自网络: 先将这个代码复制,粘帖为文本,然后改名字,文件后缀为 M.bmp 然后在终端执行$python M.bmp 不要关闭终端,他会根据你的机器配置在你的主文件夹里生成m.bmp(1500x1000)图片。
_ = (
255,
lambda
V ,B,c
:c and Y(V*V+B,B, c
-1)if(abs(V)<6)else
( 2+c-4*abs(V)**-0.4)/i
) ;v, x=1500,1000;C=range(v*x
);import struct;P=struct.pack;M,\
j ='<QIIHHHH',open('M.bmp','wb').write
@binjoo
binjoo / ShortUrl.java
Created November 16, 2012 04:51
JAVA:短地址压缩算法原理解析
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
/**
* 【转】URL短地址压缩算法 微博短地址原理解析
* http://www.cnblogs.com/jinzhao/archive/2012/04/08/2437188.html
*
*/
public class ShortUrl {
public static String[] generateCode(String url) {
@mrluanma
mrluanma / requirements.txt
Created September 4, 2012 14:40
Python 登录新浪微博(requests 真的比 urllib2 强了 2^^32 倍 pip install requests)
requests==2.4.3
rsa==3.1.4
@NARKOZ
NARKOZ / db_backup.sh
Created October 23, 2010 18:15
MySQL backup shell script
#!/bin/bash
# Shell script to backup MySQL database
# Set these variables
MyUSER="" # DB_USERNAME
MyPASS="" # DB_PASSWORD
MyHOST="" # DB_HOSTNAME
# Backup Dest directory
DEST="" # /home/username/backups/DB