Skip to content

Instantly share code, notes, and snippets.

@lijiancheng0614
lijiancheng0614 / marked.js
Created April 17, 2016 06:52
DIY marked.js.
/**
* marked - a markdown parser
* Copyright (c) 2011-2014, Christopher Jeffrey. (MIT Licensed)
* https://github.com/chjj/marked
*/
;(function() {
/**
* Block-Level Grammar
@lijiancheng0614
lijiancheng0614 / jwgl.js
Last active August 10, 2016 05:31
教务系统课程评价自动填写 http://202.112.132.147:7001/ieas2
var doc = document.getElementById("mainFrame").contentWindow.document;
var ss = doc.getElementsByTagName("select");
var ids = doc.getElementsByName("ids");
for (var i = 0; i < ss.length; ++i) {
txt = ids[i].value.replace(/\\/, "") + '"}';
var obj = eval("(" + txt + ")");
if (Math.random() > 0.5) {
ss[i].selectedIndex = 2;
obj.zbfz = "02";
}