How to set up a Headless Selenium Testing environment for CentOS 6.3.
Follow these steps to set up a CentOS 6.3 host to run headless Selenium tests with Firefox.
macro $do { | |
case { $y:expr } => { | |
$y | |
} | |
case { $x:ident <- $y:expr $rest ... } => { | |
λ['>=']($y, function($x) { | |
return $do { $rest ... } | |
}); | |
} | |
} |
macro sexp { | |
case () => { | |
; | |
} | |
case ($p) => { | |
$p | |
} | |
case ($x $y) => { | |
$x($y); | |
} |
(function(global) { | |
var types = function(obj) { | |
throw new TypeError("fmap called on unregistered type: " + obj); | |
}; | |
// inefficient as hell, but as long as there aren't too many types.... | |
global.Functor = function(type, defs) { | |
var oldTypes = types; | |
types = function(obj) { | |
if (type.prototype.isPrototypeOf(obj)) { |
ss=%w{JP OYJC欧阳继超 FJ冯佳 SC孙晨}.sort | |
pairs=[] | |
ss.each do |e1| | |
ss.each do |e2| | |
if e1 != e2 | |
pairs<<[e1,e2].sort unless pairs.include?([e1,e2].sort) | |
end | |
end | |
end |
TRAVIS_TEST_RESULT=0 | |
TRAVIS_COMMIT=e7090ffc4ef844d1a066a34037c913b429d7dc2a | |
TRAVIS_OS_NAME=linux | |
TRAVIS_LANGUAGE=node_js | |
TRAVIS=true |
;;; runs eslint --fix on the current file after save | |
;;; alpha quality -- use at your own risk | |
(defun eslint-fix-file () | |
(interactive) | |
(message "eslint --fixing the file" (buffer-file-name)) | |
(shell-command (concat "eslint --fix " (buffer-file-name)))) | |
(defun eslint-fix-file-and-revert () | |
(interactive) |
require "httparty" | |
require 'json' | |
url = "https://hypothes.is/api/search?wildcard_uri=https://blog.oyanglul.us/*&sort=created" | |
HEADER = <<-EOXML | |
<?xml version="1.0"?> | |
<rss version="2.0" | |
xmlns:atom="http://www.w3.org/2005/Atom" | |
xmlns:dc="http://purl.org/dc/elements/1.1/"> | |
<channel> |