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
| \033[0;33m============================================\033[0m | |
| \033[0;32m环评助手系统 - 后端服务启动脚本\033[0m | |
| \033[0;33m============================================\033[0m | |
| \033[0;32m[1/5]\033[0m 检查环境变量... | |
| PYTHON环境变量已设置: /usr/bin/python3 | |
| \033[0;33m未设置PYTHON_EXECUTABLE,已设置为默认值: python3\033[0m | |
| \033[0;33m未设置PYTHON_SCRIPT_DIR,已设置为默认值: ./python\033[0m | |
| \033[0;32m[2/5]\033[0m 检查Python sidecar... | |
| Python 3.11.2 | |
| python sidecar ok |
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
| var html = '<h1 class="nar">Narendra</div>'; | |
| var css = '.nar { color: red; background: url("http://google.com/images/google_favicon_128.png") repeat scroll 0 0 transparent;}'; | |
| var nodeWhereToAppend = document.body; | |
| //var nodeWhereToAppend = document.getElementById("container"); | |
| function CreateIframe(html, css, nodeWhereToAppend){ | |
| var fragment = document.createDocumentFragment(); | |
| var iframe = document.createElement('iframe'); | |
| iframe.onload = function(){ | |
| var doc = this.contentWindow.document; |
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
| <?php | |
| return [ | |
| 'unique' => ':attribute 已存在', | |
| 'accepted' => ':attribute 是被接受的', | |
| 'active_url' => ':attribute 必须是一个合法的 URL', | |
| 'after' => ':attribute 必须是 :date 之后的一个日期', | |
| 'alpha' => ':attribute 必须全部由字母字符构成。', | |
| 'alpha_dash' => ':attribute 必须全部由字母、数字、中划线或下划线字符构成', |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame | |
| Remove this if you use the .htaccess --> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
| <title>汉字简拼</title> |
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
| $("#wrap").bind("mouseenter,mouseleave", function() { | |
| var w = $(this).width(); | |
| var he = $(this).height(); | |
| var x = (e.pageX - this.offsetLeft - (w / 2)) * (w > h ? (h / w) : 1); | |
| var y = (e.pageY - this.offsetTop - (h / 2)) * (h > w ? (w / h) : 1); | |
| var direction = Math.round((((Math.atan2(y, x) * (180 / Math.PI)) + 180) / 90) + 3) % 4; // direction的值为"0,1,2,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
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta content="yes" name="apple-mobile-web-app-capable"> | |
| <title>iOS Web App</title> | |
| <!-- iPhone --> |
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
| var SHAKE_THRESHOLD = xxx; | |
| var last_update = 0; | |
| var x, y, z, last_x, last_y, last_z; | |
| function deviceMotionHandler(eventData) { | |
| var acceleration =eventData.accelerationIncludingGravity; | |
| var curTime = newDate().getTime(); | |
| if ((curTime - lastUpdate)> 100) { |