Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Albert 理斯特 hbrls

🎯
Focusing
Block or report user

Report or block hbrls

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@hbrls
hbrls / moment-zh-cn.js
Created Jun 14, 2016 — forked from chrishan17/moment-zh-cn.js
moment.js chinese configuration
View moment-zh-cn.js
// 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
@hbrls
hbrls / freemarker-howto.md
Last active May 24, 2016
There should be one-- and preferably only one --obvious way to do it.
View freemarker-howto.md
${.version}  当前 freemarker 的版本
${.locale?lower_case?replace("_", "-")}  当前 Locale,例 en-us

${userName!"John"}  为空的时候不报错,给一个默认值

freemarker-debugger

View watching.md
    var data_using = [
    {
      title: 'Front',
      libs: [
        { name: 'Hammer.js', url: 'https://github.com/EightMedia/hammer.js' },
        { name: 'Swipe.js', url: 'https://github.com/bradbirdsall/Swipe' },
        { name: 'Snap.svg', url: 'https://github.com/adobe-webplatform/Snap.svg' },
        { name: 'Benchmark.js', url: 'http://benchmarkjs.com/' },
        { name: 'SB Admin', url: 'http://startbootstrap.com/sb-admin' },
        { name: 'PhantomJS', url: 'https://github.com/ariya/phantomjs' },
@hbrls
hbrls / SearchCriteria.java
Last active May 17, 2017
mybatis-pagination HOWTO
View SearchCriteria.java
package com.example.www.form;
import com.google.common.collect.Lists;
import org.crazycake.utils.CamelNameUtils;
import org.mybatis.pagination.dto.datatables.PagingCriteria;
import org.mybatis.pagination.dto.datatables.SearchField;
import org.mybatis.pagination.dto.datatables.SortField;
import java.util.List;
import java.util.Map;
View openerp.md

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 / http_headers_http_status.md
Last active Aug 29, 2015
HTTP 头部详细解释 HTTP状态码的详细解释
View http_headers_http_status.md

Accept:告诉WEB服务器自己接受什么介质类型,/ 表示任何类型,type/* 表示该类型下的所有子类型,type/sub-type。

Accept-Charset: 浏览器申明自己接收的字符集 Accept-Encoding: 浏览器申明自己接收的编码方法,通常指定压缩方法,是否支持压缩,支持什么压缩方法(gzip,deflate) Accept-Language:浏览器申明自己接收的语言。语言跟字符集的区别:中文是语言,中文有多种字符集,比如big5,gb2312,gbk等等。

Accept-Ranges:WEB服务器表明自己是否接受获取其某个实体的一部分(比如文件的一部分)的请求。 bytes:表示接受,none:表示不接受。

@hbrls
hbrls / Robot.md
Last active May 1, 2019
the list is far beyond just a board
You can’t perform that action at this time.