Skip to content

Instantly share code, notes, and snippets.

View hbrls's full-sized avatar
🎯
Focusing

Albert 理斯特 hbrls

🎯
Focusing
View GitHub Profile
@hbrls
hbrls / Robot.md
Last active October 12, 2021 07:27
the list is far beyond just a board
@hbrls
hbrls / openerp.md
Last active December 4, 2015 03:18

openerp-server 的启动过程

./openerp-server -c /etc/openerp-server.conf

  1. ~/cli/server.py, ln 320, main(args)

  2. ~/cli/server.py, ln 366, openerp.service.start_services_workers()openerp.service.start_services()

@hbrls
hbrls / freemarker-howto.md
Last active May 24, 2016 12:07
There should be one-- and preferably only one --obvious way to do it.
${.version}  当前 freemarker 的版本
${.locale?lower_case?replace("_", "-")}  当前 Locale,例 en-us

${userName!"John"}  为空的时候不报错,给一个默认值
@hbrls
hbrls / moment-zh-cn.js
Created June 14, 2016 05:59 — forked from chrishan17/moment-zh-cn.js
moment.js chinese configuration
// moment.js locale configuration
// locale : chinese (zh-cn)
// author : suupic : https://github.com/suupic
// author : Zeno Zeng : https://github.com/zenozeng
(function (factory) {
if (typeof define === 'function' && define.amd) {
define(['moment'], factory); // AMD
} else if (typeof exports === 'object') {
module.exports = factory(require('../moment')); // Node