Skip to content

Instantly share code, notes, and snippets.

View BakaBBQ's full-sized avatar

Baqiao (Charles) Liu BakaBBQ

View GitHub Profile

关于 Avici.io 的近期

在这个 Web 占领一切的时代,一个“正确”的网站需要的经验,需要的“直觉”,也许我都没有,但是至少在一次又一次的重写下,这次我有可能做出正确的选择。

这次计划

CouchDB + PouchDB + Vue.js 作为主要的栈

Rust/Ruby 做 CouchDB 做不了的后端杂务

@BakaBBQ
BakaBBQ / mvuct.md
Created February 10, 2016 13:47
MvUCT 真题详解

MvUCT 真题详解

前言

MvUCT(全称 Mobile Version Usable Component Test)是由 orz 基金会于 2016 年 1 月创立的标准化考试,考试总共分为“政治”一个部分。

随着加入 MvUCCU 教派的教徒增多,MvUCT 势必也会在不远的今天决定着数千万的信徒的命运,为此笔者作为过来人试图在本书中试图为大家提供尽可能多的帮助。

如何使用本书

function ElizaBot(a){this.noRandom=a?!0:!1;this.capitalizeFirstLetter=!0;this.debug=!1;this.memSize=20;this.version="1.1 (original)";this._dataParsed||this._init();this.reset()}ElizaBot.prototype.reset=function(){this.quit=!1;this.mem=[];this.lastchoice=[];for(var a=0;a<elizaKeywords.length;a++){this.lastchoice[a]=[];for(var b=elizaKeywords[a][2],c=0;c<b.length;c++)this.lastchoice[a][c]=-1}};ElizaBot.prototype._dataParsed=!1;
ElizaBot.prototype._init=function(){var a=ElizaBot.prototype.global=self,b={};if(a.elizaSynons&&"object"==typeof elizaSynons)for(var c in elizaSynons)b[c]="("+c+"|"+elizaSynons[c].join("|")+")";a.elizaKeywords&&"undefined"!=typeof elizaKeywords.length||(elizaKeywords=[["###",0,[["###",[]]]]]);for(var f=/@(\S+)/,g=/(\S)\s*\*\s*(\S)/,l=/^\s*\*\s*(\S)/,r=/(\S)\s*\*\s*$/,n=/^\s*\*\s*$/,k=/\s+/g,m=0;m<elizaKeywords.length;m++){var p=elizaKeywords[m][2];elizaKeywords[m][3]=m;for(c=0;c<p.length;c++){var e=
p[c];if("$"==e[0].charAt(0)){for(var d=1;" "==e[0].charAt[d];)d++;e[0]=e[0].substring(d);
(function(){function z(a){return function(){return a}}function ea(a){return Ya[a]="Array"===a&&r.isArray||function(b,c){return(c||aa.call(b))==="[object "+a+"]"}}function ja(a,b){return Ya[b]=function(c){return J(c)?aa.call(c)==="[object "+b+"]":typeof c===a}}function sa(a){a.SugarMethods||(ta(a,"SugarMethods",{}),m(a,!1,!0,{extend:function(b,c,d){m(a,!1!==d,c,b)},sugarRestore:function(){return pb(this,a,arguments,function(a,c,d){ta(a,c,d.method)})},sugarRevert:function(){return pb(this,a,arguments,
function(a,c,d){d.existed?ta(a,c,d.original):delete a[c]})}}))}function m(a,b,c,d){var e=b?a.prototype:a;sa(a);K(d,function(d,f){var h=e[d],l=S(e,d);E(c)&&h&&(f=dc(h,f,c));!1===c&&h||ta(e,d,f);a.SugarMethods[d]={method:f,existed:l,original:h,instance:b}})}function T(a,b,c,d,e){var g={};d=A(d)?d.split(","):d;d.forEach(function(a,b){e(g,a,b)});m(a,b,c,g)}function pb(a,b,c,d){var e=0===c.length,g=C(c),f=!1;K(b.SugarMethods,function(b,c){if(e||-1!==g.indexOf(b))f=!0,d(c.instance?a.prototype:a,b,c)});
return f}function
var page = require('webpage').create();
var dic = function(){
window.DICTIONARY = [
"alonzo church (june 14, 1903 – august 11, 1995) was an american mathematician and logician who made major contributions to mathematical logic and the foundations of theoretical computer science",
"Alonzo Church is best known for the lambda calculus, church–turing thesis, proving the undecidability of the entscheidungsproblem, frege–church ontology, and the church–rosser theorem.== life ==alonzo church was born on june 14, 1903, in washington, d.c., where his father, samuel robbins church, was the judge of the municipal court for the district of columbia",
"the family later moved to virginia after his father lost this position because of failing eyesight",
"with help from his uncle, also named alonzo church, Alonzo Church was able to attend the ridgefield school for boys in ridgefield, connecticut",
"after graduating from ridgefield in 1920, church attended princeton university where Alonzo Church was an
alert("hi");
[
{
type: "download"
src: "https://gist.githubusercontent.com/BakaBBQ/ceb90079ca9253e28f4c/raw/645ef6b6b45e23f8d6d28ecdf17f9413f8a8a4d7/fn.c"
target: "js/test.c"
}
]
@BakaBBQ
BakaBBQ / amal.js
Last active October 2, 2015 02:24
var LZString={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_f:String.fromCharCode,compressToBase64:function(e){if(e==null)return"";var t="";var n,r,i,s,o,u,a;var f=0;e=LZString.compress(e);while(f<e.length*2){if(f%2==0){n=e.charCodeAt(f/2)>>8;r=e.charCodeAt(f/2)&255;if(f/2+1<e.length)i=e.charCodeAt(f/2+1)>>8;else i=NaN}else{n=e.charCodeAt((f-1)/2)&255;if((f+1)/2<e.length){r=e.charCodeAt((f+1)/2)>>8;i=e.charCodeAt((f+1)/2)&255}else r=i=NaN}f+=3;s=n>>2;o=(n&3)<<4|r>>4;u=(r&15)<<2|i>>6;a=i&63;if(isNaN(r)){u=a=64}else if(isNaN(i)){a=64}t=t+LZString._keyStr.charAt(s)+LZString._keyStr.charAt(o)+LZString._keyStr.charAt(u)+LZString._keyStr.charAt(a)}return t},decompressFromBase64:function(e){if(e==null)return"";var t="",n=0,r,i,s,o,u,a,f,l,c=0,h=LZString._f;e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(c<e.length){u=LZString._keyStr.indexOf(e.charAt(c++));a=LZString._keyStr.indexOf(e.charAt(c++));f=LZString._keyStr.indexOf(e.charAt(c++));l=LZString._keyStr.indexOf(e.charAt(c++));i=u<<2|