+------------+---------------------------------+
| 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
| class Bla | |
| def a | |
| "a" | |
| end | |
| def b | |
| self.a | |
| end | |
| def c |
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
| require 'nokogiri' | |
| require 'open-uri' | |
| base = 'http://www.yhachina.com/3g/' | |
| def nopen(page) | |
| Nokogiri::HTML(open(page)) | |
| end | |
| doc = nopen(base + 'allthehostel.html') |
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 exec = require('child_process').exec; | |
| var capture_stdout = function(cmd, callback) { | |
| exec(cmd, function(err, stdout, stderr) { | |
| callback(err, stdout, stderr); | |
| }); | |
| } | |
| module.exports = capture_stdout; |
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}; |
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
| 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
| 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
| #!/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
| //==== 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>" + |
OlderNewer