上线时跟源码目录没多大关系了,具体配置是相对于产出目录的;fis-plus产出目录如下
.
├── config
├── plugin
├── static
└── template
isNumeric: function( obj ) { | |
// parseFloat NaNs numeric-cast false positives (null|true|false|"") | |
// ...but misinterprets leading-number strings, particularly hex literals ("0x...") | |
// subtraction forces infinities to NaN | |
return !jQuery.isArray( obj ) && obj - parseFloat( obj ) >= 0; | |
} |
mac下安装php-cgi有多种方法,这里只介绍比较简单的两个方法;
如果安装了xcode,那么推荐使用brew来安装php。详细使用方法见官网,这里只说明如何装php-cgi;
function getOffset( el ) { | |
var _x = 0; | |
var _y = 0; | |
while( el && !isNaN( el.offsetLeft ) && !isNaN( el.offsetTop ) ) { | |
_x += el.offsetLeft - el.scrollLeft; | |
_y += el.offsetTop - el.scrollTop; | |
el = el.offsetParent; | |
} | |
return { top: _y, left: _x }; | |
} |
var queue = function(funcs, scope) { | |
(function next() { | |
if(funcs.length > 0) { | |
funcs.shift().apply(scope || {}, [next].concat(Array.prototype.slice.call(arguments, 0))); | |
} | |
})(); | |
}; | |
var obj = { | |
value: null |
- (NSString *) rgbToHex: (NSColor*) color { | |
NSString *hexColor = [NSString stringWithFormat:@"#%02X%02X%02X", | |
(int) ([color redComponent] * 0xFF), | |
(int) ([color greenComponent] * 0xFF), | |
(int) ([color blueComponent] * 0xFF) | |
]; | |
return hexColor; | |
} |
#!/usr/bin/env python | |
''' | |
fis collect resource algorithm | |
''' | |
# | |
# static resoruce | |
# | |
collection = {} | |
if !exists("g:gofmt_command") | |
let g:gofmt_command = "gofmt -tabs=false -tabwidth=4" | |
endif |
// | |
// virtual.cpp | |
// | |
#include "virtual.h" | |
Base::~Base() { | |
} |
#ifndef __cpp01__virtual__ | |
#define __cpp01__virtual__ | |
#include <iostream> | |
class Base { | |
public: | |
virtual int print(const char *) = 0; | |
~Base(); |