This file contains hidden or 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
| Intent intent = new Intent(Intent.ACTION_VIEW); | |
| ComponentName cn = new ComponentName("com.tencent.mm", "com.tencent.mm.plugin.base.stub.WXCustomSchemeEntryActivity"); | |
| intent.setData(Uri.parse("weixin://dl/moments")); | |
| intent.setFlags(Intent.FLAG_ACTIVITY_PREVIOUS_IS_TOP); | |
| intent.setComponent(cn); | |
| startActivity(intent); |
This file contains hidden or 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
| /** | |
| * Convert From/To Binary/Decimal/Hexadecimal in JavaScript | |
| * https://gist.github.com/faisalman | |
| * | |
| * Copyright 2012-2015, Faisalman <fyzlman@gmail.com> | |
| * Licensed under The MIT License | |
| * http://www.opensource.org/licenses/mit-license | |
| */ | |
| (function(){ |
This file contains hidden or 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
| <? | |
| class Lock { | |
| const TIMEOUT = 20; | |
| const SLEEP = 100000; | |
| /** | |
| * Stores the expire time of the currently held lock | |
| * @var int |
This file contains hidden or 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
| /* | |
| * RC4 symmetric cipher encryption/decryption | |
| * | |
| * @license Public Domain | |
| * @param string key - secret key for encryption/decryption | |
| * @param string str - string to be encrypted/decrypted | |
| * @return string | |
| */ | |
| function rc4(key, str) { | |
| var s = [], j = 0, x, res = ''; |
This file contains hidden or 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
| -- Lua 5.1+ base64 v3.0 (c) 2009 by Alex Kloss <alexthkloss@web.de> | |
| -- licensed under the terms of the LGPL2 | |
| -- character table string | |
| local b='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/' | |
| -- encoding | |
| function enc(data) | |
| return ((data:gsub('.', function(x) | |
| local r,b='',x:byte() |