JavaScript 基础
第一次
- 讨论:变量、值和类型(环聊)
- 讨论整理: https://gist.github.com/quietlynn/0492ac8e71089709d1d3
- 作业: https://gist.github.com/quietlynn/0492ac8e71089709d1d3#%E4%BD%9C%E4%B8%9A
#!/bin/bash | |
# Dependencies: | |
# * xdotool | |
# * xclip | |
# * kdialog or zenity | |
# * perl (only if "sleep 0.3" (float) is not accepted) | |
# Usage: | |
# Bind this script to a keyboard shortcut and then press it in Minecraft. | |
# Configuration: |
# If you need help with this config, view the SignShop Quick Reference PDF located in the SignShop folder | |
# You can also visit our Bukkit page at tiny.cc/SignShop | |
# There are a few basic options to modify how SignShop acts globally | |
# You can edit anything in this config and use "/signshop reload" to reload the config while the server is running | |
##Javascript
###预习
关于 JS 环境的配置请参考 https://plus.google.com/117239089659078825668/posts/jDkwn5mWdWJ
需要一个可以执行JS的环境(REPL)才能继续下面的学习。
###Hello, world
/* | |
Google+ Keyboard Shortcuts | |
Copyright (C) 2012 Jingqin Lynn | |
Includes jQuery | |
Copyright 2011, John Resig | |
Dual licensed under the MIT or GPL Version 2 licenses. | |
http://jquery.org/license | |
Includes Sizzle.js |
/* | |
Google+ Quick Mention => Mention G+ users quickly. | |
Copyright (C) 2012 Jingqin Lynn | |
Includes jQuery | |
Copyright 2011, John Resig | |
Dual licensed under the MIT or GPL Version 2 licenses. | |
http://jquery.org/license | |
Includes Sizzle.js |
/* | |
To the extent possible under law, 林静琴 <https://github.com/quietlynn> has waived all copyright and related or neighboring rights to Maximized Stream Style with Right Column for Google+. This work is published from: United States. | |
http://creativecommons.org/publicdomain/zero/1.0/ | |
*/ | |
/* == 增大横向有效面积 == */ | |
/* 右侧边栏固定位置、固定宽度 */ | |
.hxa { | |
position: fixed !important; |
/* | |
To the extent possible under law, 林静琴 <https://github.com/quietlynn> has waived all copyright and related or neighboring rights to Wide Stream Style for Google+. This work is published from: United States. | |
http://creativecommons.org/publicdomain/zero/1.0/ | |
*/ | |
/* 右侧边栏固定位置、固定宽度 */ | |
.ksa { | |
position: fixed !important; | |
margin-left: -286px !important; | |
width: 266px !important; |