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
| // Generated by CoffeeScript 1.3.3 | |
| /** | |
| * CSS | |
| #zoom-box { | |
| background: white; | |
| border-radius: 10px; | |
| box-shadow: 0px 0px 10px rgba(50, 50, 50, 0.75); | |
| padding: 10px; | |
| z-index: 1000; |
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
| $(document).ready(function() { | |
| $('.goto-top').click(function(event) { | |
| event.preventDefault(); | |
| move(documentScrollTop()); | |
| //window.scrollTo(0, 0); | |
| }); | |
| }); | |
| //获取或设置文档对象的scrollTop | |
| //function([val]) |
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
| Bespoke.js | |
| To create a Bespoke.js presentation, follow these 3 simple steps: | |
| Create a page with required slide markup and resources | |
| Activate your deck via the JavaScript API | |
| Create a custom style sheet using the Bespoke.js classes | |
| <link rel="stylesheet" href="theme.css"> | |
| <aritle> |
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 manifest="StickyNotes.manifest"> | |
| <head> | |
| <title>WebKit HTML 5 SQL Storage Notes Demo</title> | |
| <style> | |
| body { | |
| font-family: 'Lucida Grande', 'Helvetica', sans-serif; | |
| } |
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 pubsub = function(l, u, r, i) { // cool! 闭包并且初始化vars | |
| return function(n, f) { | |
| r = l[n] = l[n] || [], i = -1; | |
| if (f && f.call) r.push(f); | |
| else while (r[++i]) r[i].apply(u, arguments); | |
| } | |
| }({}); | |
| // subscribe to event | |
| pubsub("eat_cookie", function() { |
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
| function(b) { | |
| // extra functions, test, variables here | |
| // it's a closure ! | |
| function c() { // k=[]会被滤掉, onload后再次仔细c(), e.shift(); | |
| if (d = e.shift()) a = b.body.appendChild(b.createElement("SCRIPT")), a.onload = c, a.src = d | |
| } | |
| var K = [], | |
| e = K.concat( |
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
| ############################################################################################ | |
| ### ### | |
| ### PyGame with a SnowPea shoot bullet for defensing the zombie army coming ### | |
| ### ### | |
| ### Author: Junjie Shi ### | |
| ### Email : [email protected] ### | |
| ### ### | |
| ### Do Enjoy the game! ### | |
| ### You need to have Python and PyGame installed to run it. ### | |
| ### Run it by typing "python zombie.py" in the terminal ### |
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 http = require('http'), | |
| url = require('url'); | |
| var todos = [{ | |
| id: 1, | |
| title: 'aa', | |
| done: false | |
| }, { | |
| id: 2, | |
| title: 'bb', | |
| done: true |
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
| import HTMLParser | |
| import httplib | |
| from datetime import datetime | |
| import time | |
| import urllib | |
| #import urllib2,cookielib | |
| def postData(name, password): | |
| user = "username" | |
| pwd = "password" |
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
| <div id="aperture-wrap" style="width:1160px;height:1px;pointer-events: none;"> | |
| <div style="position: fixed; width: 100%; height: 100%; z-index: 99998; top: 0px; left: 0px; background-color: black; opacity: 0.8; display: none;"></div> | |
| <div style="position: absolute; background-image: url(http://a.xnimg.cn/imgpro/onehour2/where.png); width: 434px; height: 215px; z-index: 99999; zoom: 1; left: 477px; top: 219.5px; display: none; background-position: initial initial; background-repeat: initial initial;"></div> | |
| <div id="aperture-track" style="position: absolute; z-index: 99999; top: -183px; left: -249px; display: none;"> | |
| <div style="position: absolute; background-image: url(http://a.xnimg.cn/imgpro/onehour2/aperture-top.png); width: 548px; height: 269px; background-position: initial initial; background-repeat: initial initial;"></div> | |
| <div style="position: absolute; background-image: url(http://a.xnimg.cn/imgpro/onehour2/aperture-left.png); top: 269px; width: 264px; height: 20px; backgr |