我正在使用Matrix colorscheme和CSApprox作为我的终端vim.
我似乎无法将背景设置为透明.我已经尝试过编辑matrix.vim文件,但它并没有让它变得更好.
这里是 matrix.vim
" vim:set ts=8 sts=2 sw=2 tw=0:
"
" matrix.vim - MATRIX like colorscheme.
"
" Maintainer: MURAOKA Taro <koron@tka.att.ne.jp>
" Last Change: 10-Jun-2003.
set background=dark
hi clear
if exists("syntax_on")
syntax reset
endif
let g:colors_name = 'matrix'
hi Comment guifg=#226622
hi Constant guifg=#55ff55
hi Special guifg=#44cc44
hi Identifier guifg=#55ff55
hi Statement guifg=#55ff55 gui=bold
hi PreProc guifg=#339933
hi Type guifg=#55ff55 gui=bold
hi Underlined guifg=#55ff55 gui=underline
hi Error guifg=#55ff55
hi Todo guifg=#113311 gui=none
hi Cursor guifg=#226622
hi lCursor …Run Code Online (Sandbox Code Playgroud) 我试图了解php构造函数和析构函数的行为.一切都按照构造函数的预期进行,但是我无法隐式地触发析构函数.我已经完成了php.net和相关网站上的所有阅读,但我无法找到这个问题的答案.
如果我有一个简单的类,例如:
class test{
public function __construct(){
print "contructing<br>";
}
public function __destruct(){
print "destroying<br>";
}
}
Run Code Online (Sandbox Code Playgroud)
我称之为:
$t = new test;
Run Code Online (Sandbox Code Playgroud)
它打印构造函数消息.但是,我希望当脚本结束并呈现页面时,析构函数应该触发.当然不是.
如果我打电话未设置($ t); 当脚本结束时,析构函数当然会触发,但有没有办法让它隐式触发?
谢谢你的任何提示
我正在尝试添加一个git预提交钩子,它将检查所有已更改的文件和新文件TODO:.
我试过了
#!/bin/sh
. git-sh-setup # for die
git-diff-index -p -M --cached HEAD -- | grep '^+' |
grep TODO: && die Blocking commit because string TODO: detected in patch
:
Run Code Online (Sandbox Code Playgroud)
我在类似的问题中看到了,但没有运气.
因此,如果用户提交带有空文本字段的表单,我想提醒用户
HTML:
<form id="orderform">
<input type="text" name="initials" id="initials" maxlength="3">
<p class="center">
<input type="image" src="#" id="submitbutton" name="submit" value="Place Order">
</p>
</form>
Run Code Online (Sandbox Code Playgroud)
使用Javascript:
$('#orderform').submit(function() {
if($('#initials').length == 0){
alert('Please fill out your initials.');
}
});
Run Code Online (Sandbox Code Playgroud) 我需要重定向到index.php请求的任何目录.
所以我需要:
http://www.site.com/folder/files/hello.php
Run Code Online (Sandbox Code Playgroud)
重定向到:
http://www.site.com/folder/files/index.php
Run Code Online (Sandbox Code Playgroud)
对于任何子文件夹也是如此:
http://www.site.com/folder/files/pages/other/hello.php
Run Code Online (Sandbox Code Playgroud)
重定向到:
http://www.site.com/folder/files/pages/other/index.php
Run Code Online (Sandbox Code Playgroud) 什么是在HTML中建立链接的最佳方式我主要使用html4但我试图实现html5
所以我的问题基本上应该是包装标签,p还是?
这个:
<p class="center">
<a href="#">
<img src="addToCart.png">
</a>
</p>
Run Code Online (Sandbox Code Playgroud)
或这个:
<a href="#">
<p class="center">
<img src="addToCart.png">
</p>
</a>
Run Code Online (Sandbox Code Playgroud)
谢谢.
函数的名称存储在另一个函数的值中,我需要使用另一个函数调用该函数.
我需要调用popup()函数
random() = 'popup()'
if ($.cookie('optin-page')) {
}
Run Code Online (Sandbox Code Playgroud)
我试过了
if ($.cookie('optin-page')) {
window[random()];
}
Run Code Online (Sandbox Code Playgroud) taking_damage在此代码示例中,方法之前的感叹号的目的是什么?
if warrior.health < 20 && !taking_damage?(warrior)
warrior.rest!
end
Run Code Online (Sandbox Code Playgroud) html ×3
javascript ×2
jquery ×2
php ×2
terminal ×2
.htaccess ×1
apache ×1
color-scheme ×1
css ×1
destructor ×1
git ×1
grep ×1
matrix ×1
oop ×1
redirect ×1
ruby ×1
vim ×1
vim-plugin ×1