Solution written by Andy Pan Problems copyrighted by TAs
Mathematics Software 2015 Spring, NTU Written with StackEdit, where you can view the full-rendered version.
[TOC]
/* ======================================================================== | |
* Bootstrap: dropdown.js v3.2.0 | |
* http://getbootstrap.com/javascript/#dropdowns | |
* ======================================================================== | |
* Copyright 2011-2014 Twitter, Inc. | |
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) | |
* ======================================================================== */ | |
+function ($) { |
var StorageBase=Backbone.Model.extend({ | |
constructor: function(){ | |
Backbone.Model.apply(this,arguments); | |
//check if the storage can be used | |
this.supportLocalStorage=!!localStorage; | |
this.prefix="lm.v2."; | |
var self=this; | |
var addPrefix=function(k){ |
var root=this; | |
function getIsolationScript(){ | |
//getting key of global attrs | |
var buffer=""; | |
for(var x in root)buffer+="try{var "+x+"=void 0}catch(e){}"; | |
//the name of the top-level variable | |
// should be manually set. | |
buffer+="var window={}"; | |
return buffer; |
/** | |
* Written by Andy Pan | |
* Language: C | |
* Algorithm: Gram-Schmidt Method | |
* Creation Date: 2014/12/6 | |
* Last Modified: 2014/12/7 | |
**/ | |
#include<stdio.h> | |
#include<math.h> |
#include<stdio.h> | |
#include<time.h> | |
void roll(int a[],int l,int r){ | |
//roll [l,r) leftward | |
int tmp=a[l],i; | |
for(i=l;i<r-1;i++) | |
a[i]=a[i+1]; | |
a[r-1]=tmp; | |
} |
```flow | |
st=>start | |
e=>end | |
op0=>operation: 辨識畫布 | |
op1=>operation: 辨識/猜測座標軸 | |
cond1=>condition: 是否為函數圖形? | |
op2cd1=>operation: 函數辨識模型 | |
op3=>operation: 嘗試各類函數 | |
op4=>operation: 嘗試組合各類函數 | |
op2cd2=>operation: 曲線辨識模型 |
Solution written by Andy Pan Problems copyrighted by TAs
Mathematics Software 2015 Spring, NTU Written with StackEdit, where you can view the full-rendered version.
[TOC]
// ==UserScript== | |
// @name WW Convert to Trad. Chinese | |
// @namespace andypan.wikiwand.tradc | |
// @include http://www.wikiwand.com/zh/* | |
// @version 1 | |
// @grant none | |
// @@run-at document-start | |
// ==/UserScript== | |
// Use it with GreaseMonkey (for Firefox) or Tampermonkey (for Chrome)! |
#!python3 | |
import requests | |
import datetime | |
import json | |
URL = "http://www.hs.ntnu.edu.tw/hsnuwp/wp-admin/admin-ajax.php?date=%s&action=hsnu_cal_get_events" | |
session = requests.Session() | |
def fetchEvents(dateStr): | |
return session.get(URL % dateStr).json() |