This file contains 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> | |
<title></title> | |
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script> | |
<script> | |
function noop(e){ | |
//e.stopPropagation();//取消drag預設動作 |
This file contains 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
#define MAX 1000000 | |
#define MULTI 1000 | |
#include<cstdio> | |
#include<iostream> | |
#include<deque> | |
using namespace std; | |
typedef long long ll; | |
typedef pair<ll,ll> point; | |
int n,f; | |
ll sum[MAX+1]; |
This file contains 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 | |
//Comment for easier reading | |
// Override default SQLite constructor to | |
// open the file at first. | |
class MyDB extends SQLite3{ | |
function __construct(){ | |
$this->open('dbstore/gb.sqlite'); | |
} | |
} |
This file contains 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> | |
<title>Guestbook Test</title> | |
<script src="res/js/jquery-1.10.2.min.js"></script> | |
<script> | |
$(function(){ | |
$("#gb_form").submit(function(){ | |
$("#gb_submit").attr("disabled","disabled"); | |
sendForm(); |
This file contains 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
/* ======================================================================== | |
* 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 ($) { |
This file contains 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 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){ |
This file contains 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 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; |
This file contains 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
/** | |
* 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> |
OlderNewer