为什么当我使用console.log的evaluate,它的工作原理:
casper.then(function() {
this.evaluate( function() {
console.log('hello');
});
});
Run Code Online (Sandbox Code Playgroud)
但这不起作用:
casper.then(function() {
this.evaluate( function() {
setTimeout( function() {console.log('hello');}, 1000);
});
});
Run Code Online (Sandbox Code Playgroud) 我安装了Phabricator来处理Python项目.一切都很好,但文件视图以纯文本形式呈现它们.我想要一些由Pygmentize实用程序提供的突出显示.
我已经安装了Pygments
sudo pip install Pygments
Run Code Online (Sandbox Code Playgroud)
从所有用户检查,pygmentize脚本可用,位于/ usr/local/bin.我变了
'pygments.enabled' => true,
Run Code Online (Sandbox Code Playgroud)
phabricator的myconfig.conf.php文件中的设置.但它不起作用?!我找不到任何日志崩溃或其他东西.你知道为什么会这样吗?
我正在尝试基于EMACS + CIDER设置我的环境以进行clojure开发,顺便说一句,我在6:20-6:25的时间点看到了这个视频中看到的热重载功能.http://www.parens-of-the-dead.com/e1.html
实际上,作者没有使用像RING/wrap-reload这样的功能,但是在emacs中保存每个缓冲区后,他的代码会在REPL中重新加载.我想我在本地机器上有相同的库(cider,cider-nrepl,clj-refactor,clojure-mode),但是我的本地安装没有显示,它需要每次在REPL中调用(重置)函数.
PS我可以通过EMACS中的代码粗略地获得相同的行为,但我不想使用这样的黑客:
(defun my-clojure-reset ()
"Reload clojure once file were saved."
(when
(s-ends-with? "clj" (buffer-file-name))
(cider-interactive-eval "(do (ns user) (reset))")))
(add-hook 'after-save-hook 'my-clojure-reset)
Run Code Online (Sandbox Code Playgroud)
有关如何在EMACS + CIDER中实现文件保存事件的代码重新加载的任何建议吗?