NOTE: this is NOT commented
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
; | |
(function() { | |
/** | |
* 动态加载js文件 | |
* @param {string} url js文件的url地址 | |
* @param {Function} callback 加载完成后的回调函数 | |
*/ | |
var _getScript = function(url, callback) { | |
var head = document.getElementsByTagName('head')[0], | |
js = document.createElement('script'); |
This file has been truncated, but you can view the full file.
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
package { | |
import cmodule.Decryptor.*; | |
import flash.utils.*; | |
public class ResourceDecrypt { | |
public static function Decryption(data:ByteArray, localVersion:int, needDecryptSanGuoShaTag:Boolean=false):Object{ | |
var modidate:Number; | |
var cLibInit:CLibInit; | |
var encryptorLib:Object; |
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
// get a query object from query string | |
function getQuery(str) { | |
var q = {}; if (str == '') { return q }; try { str.substr(1).split("&").forEach(function(item) { q[item.split("=")[0]] = item.split("=")[1]}); } catch (err) { } finally { return q }; | |
} | |
// get a query string from a query object | |
function setQuery(obj) { | |
var s = ''; for (k in obj) { s += '&'+ k + '=' + obj[k] }; return s ; | |
} |
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
if (window.history) { | |
window.history.replaceState(null, null, (location.origin + location.pathname + location.search + '&refresh').replace(/[&?]{1,2}/,'?')) | |
} |
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
" | |
" __ _(_)_ __ ___ _ __ ___ | |
" \ \ / / | '_ ` _ \| '__/ __| | |
" \ V /| | | | | | | | | (__ | |
" (_)_/ |_|_| |_| |_|_| \___| | |
" | |
" Author: joe di castro <[email protected]> | |
" Source: http://github.com/joedicastro/dotfiles/tree/master/vim | |
" | |
" This file is under a lot of stress, it changes frequently, so it's better if |
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
" www.11.cc [email protected] http://www.163.com www.123.com mailto:[email protected] | |
" [email protected] [email protected] www.143.com etee.vim [email protected] | |
" www.163.com jfeoijf | |
let g:clickable_browser = 'firefox' | |
let config = clickable#config#init() | |
for C in config.All | |
let c = C.new() |
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
#Web role handlers | |
- name: start nginx | |
service: state=started name=nginx | |
- name: restart nginx | |
service: state=restarted name=nginx | |
- name: check webapp | |
wait_for_cmd: shell='curl -s -o /dev/null -k -w "%{http_code}" {{local_webapp_url}} | grep 401' delay=15 timeout=60 repeat_delay=3 |
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
{'view_args': {}, 'files': ImmutableMultiDict([]), 'cookies': {}, 'form': ImmutableMultiDict([('form', u'data'), ('file', u'-')]), 'stream': <werkzeug.wsgi.LimitedStream object at 0x7fb1ecfb4c10>, '_parsed_content_type': ('multipart/form-data', {'boundary': '------------------------334fb58c550d3aab'}), 'shallow': False, 'url_rule': <Rule '/' (PUT, HEAD, POST, OPTIONS, GET) -> index>, '_cached_data': '', 'environ': {'wsgi.multiprocess': False, 'SERVER_SOFTWARE': 'Werkzeug/0.9.6', 'SCRIPT_NAME': '', 'REQUEST_METHOD': 'POST', 'PATH_INFO': '/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'werkzeug.server.shutdown': <function shutdown_server at 0x7fb1ecfbcaa0>, 'CONTENT_LENGTH': '237', 'HTTP_USER_AGENT': 'curl/7.35.0', 'SERVER_NAME': '127.0.0.1', 'REMOTE_PORT': 59806, 'wsgi.url_scheme': 'http', 'SERVER_PORT': '5000', 'werkzeug.request': <Request 'http://localhost:5000/' [POST]>, 'wsgi.input': <socket._fileobject object at 0x7fb1ecfb61d0>, 'HTTP_HOST': 'localhost:5000', 'wsgi.multithread': False, 'HTTP_EXPEC |