+------------+---------------------------------+
| videojs | http://videojs.com |
+------------+---------------------------------+
| projekktor | http://www.projekktor.com |
+------------+---------------------------------+
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 moveCursorTo(el) { | |
let selection = getSelection() | |
, range = document.createRange(); | |
range.setStart(el.childNodes[0], 0); | |
range.collapse(true); | |
selection.removeAllRanges(); | |
selection.addRange(range); | |
} |
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
# | |
# Example configuration file. | |
# | |
# See unbound.conf(5) man page, version 1.4.22. | |
# | |
# this is a comment. | |
#Use this to include other text into the file. | |
#include: "otherfile.conf" |
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
set -g prefix C-q | |
unbind C-b | |
bind-key q send-prefix | |
bind-key z last-window | |
bind-key r source-file ~/.tmux.conf | |
set -g status-left-length 32 | |
set -g status-right-length 150 | |
# ------------- |
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
//==== Displayer ==== | |
var Displayer = function() { | |
this.$el = jQuery("body").prepend( | |
"<div class=\"hotqs-list\">" + | |
"<div class=\"head\">" + | |
"<div>关注</div>" + | |
"<div>回答</div>" + | |
"</div>" + | |
"<div class=\"loading\">开始抓取问题</div>" + |
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
#!/usr/bin/env python | |
import xml.etree.ElementTree as ET | |
import os | |
import time | |
def main(): | |
generate_migration() | |
# manipulate manifest.xml |
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
module Translator | |
class NoPatternError < Exception | |
end | |
class BufferEmptyError < Exception | |
end | |
class IllegalTokenError < Exception | |
end |
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
guid = -> | |
'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace /[xy]/g, (c)-> | |
r = Math.random()*16|0 | |
v = if c == 'x' then r else (r&0x3|0x8) | |
v.toString(16) | |
is_dom = (v)-> | |
typeof jQuery != "undefined" && | |
v instanceof jQuery || | |
v instanceof Node |
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
boot { | |
generate grub | |
default "Funtoo ZFS" | |
timeout 4 | |
} | |
"Funtoo Linux" { | |
kernel bzImage[-v] | |
} |
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 base = 'http://dev.kaid.me/c'; | |
var ids = [1, 2, 3, 41, 42, 43, 51, 52, 53]; | |
ids.forEach(function(id) { | |
var page = require('webpage').create(), | |
url = base + id, | |
output = 'c' + id + '.png'; | |
page.clipRect = {top:122, left:65, width:360, height:600}; |