Skip to content

Instantly share code, notes, and snippets.


Zhuang Ma mzlogin

Block or report user

Report or block mzlogin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
mzlogin /
Last active Jul 18, 2016
Get image size without load image to memory in Android.
BitmapFactory.Options opt = new BitmapFactory.Options();
opt.inJustDecodeBounds = true;
BitmapFactory.decodeResource(context.getResources(), R.drawable.demo_img, opt);
int width = opt.outWidth;
int height = opt.outHeight;
mzlogin / eclipse_prederences.epf
Last active Aug 29, 2015
Eclipse preferences for android developing
View eclipse_prederences.epf
#Wed Jan 07 10:16:38 GMT+08:00 2015
/instance/org.eclipse.ui.workbench/org.eclipse.ui.commands=<?xml version\="1.0" encoding\="UTF-8"?>\r\n<org.eclipse.ui.commands>\r\n<keyBinding commandId\="org.eclipse.ui.edit.text.goto.columnPrevious" contextId\="org.eclipse.ui.contexts.window" keyConfigurationId\="org.eclipse.ui.defaultAcceleratorConfiguration" keySequence\="ALT+H"/>\r\n<keyBinding commandId\="org.eclipse.ui.edit.text.goto.columnNext" contextId\="org.eclipse.ui.contexts.window" keyConfigurationId\="org.eclipse.ui.defaultAcceleratorConfiguration" keySequence\="ALT+L"/>\r\n<keyBinding commandId\="org.eclipse.ui.edit.text.goto.lineDown" contextId\="org.eclipse.ui.contexts.window" keyConfigurationId\="org.eclipse.ui.defaultAcceleratorConfiguration" keySequence\="ALT+J"/>\r\n<keyBinding commandId\="org.eclipse.ui.edit.text.goto.lineUp" contextId\="org.eclipse.ui.contexts.window" keyConfigurationId\="org.eclipse.ui.defaultAcceleratorConf
mzlogin /
Last active Aug 2, 2016
# File :
# Author : Zhuang Ma
# E-mail : chumpma(at)
# Website:
# Date : 2016-07-26
import requests
from BeautifulSoup import BeautifulSoup
import getpass
import time
import random
mzlogin / CustomRules.js
Last active Aug 29, 2015
Fiddler Custom Rules With Some Addition Feature
View CustomRules.js
import System;
import System.Windows.Forms;
import Fiddler;
// This is the FiddlerScript Rules file, which creates some of the menu commands and
// other features of Fiddler. You can edit this file to modify or add new commands.
// The original version of this file is named SampleRules.js and it is in the
// \Program Files\Fiddler\ folder. When Fiddler first starts, it creates a copy named
if __name__ == '__main__':
print 'Hello, World!'
You can’t perform that action at this time.