Skip to content

Instantly share code, notes, and snippets.

@quietlynn
quietlynn / js_index.md
Last active October 17, 2017 08:15
JavaScript交流记录索引
@quietlynn
quietlynn / js07.md
Created August 12, 2014 11:14
JavaScript 第七次记录整理

任务的各种模式

同步模式

  • 简介:控制流停留在某个函数调用内,任务完成后返回
  • 结果:通过函数返回值传递任务的执行结果
  • 错误:通过抛出异常或者特殊返回值来表明任务失败

例子:

@quietlynn
quietlynn / mc_chat.sh
Created July 6, 2014 15:50
Inputting chat message in Minecraft (probably with IM)
#!/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:
@quietlynn
quietlynn / config.yml
Last active August 29, 2015 14:02 — forked from phoenixlzx/config.yml
# 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
@quietlynn
quietlynn / js01.md
Last active October 17, 2017 08:20 — forked from eccstartup/js01.md
@quietlynn
quietlynn / GClef_Tanabata.svg
Created August 11, 2013 14:42
For my Google+ profile photo. Based on Debian SpaceFun Theme (Copyright GPLv2 by Valessio S Brito, https://wiki.debian.org/DebianArt/Themes/SpaceFun ) Licensed under GPLv2.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@quietlynn
quietlynn / gplus.keyboard.user.js
Created August 14, 2012 14:54
Google+ Keyboard Shortcuts
/*
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
@quietlynn
quietlynn / gplus.quick_mention.user.js
Created July 1, 2012 13:10
Google+ Quick Mention => Mention G+ users quickly.
/*
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
@quietlynn
quietlynn / gplus_max_stream_w_right.user.css
Created May 29, 2012 11:03
Maximized Stream Style with Right Column for Google+
/*
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;
@quietlynn
quietlynn / gplus_wide_stream_w_right.user.css
Created May 13, 2012 07:28
Wide Stream Style with Right Column for Google+
/*
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;