(检查 rss 中的特殊字符) http://www.pengzao.com/article/html-entity.html
http://zh.wikipedia.org/wiki/%E6%8E%A7%E5%88%B6%E5%AD%97%E7%AC%A6
function HtmltoEntity(str){
var match = [
'<',
| _bottomHeader(); | |
| $(window).on('scroll', function() { | |
| if ($(this).scrollTop() <= obj.sliderHeight) { | |
| _bottomHeader(); | |
| } else { | |
| _topHeader(); | |
| } | |
| }); |
(检查 rss 中的特殊字符) http://www.pengzao.com/article/html-entity.html
http://zh.wikipedia.org/wiki/%E6%8E%A7%E5%88%B6%E5%AD%97%E7%AC%A6
function HtmltoEntity(str){
var match = [
'<',
| # Install tmux on Centos release 6.5 | |
| # install deps | |
| yum install gcc kernel-devel make ncurses-devel | |
| # DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL | |
| curl -OL https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz | |
| tar -xvzf libevent-2.0.21-stable.tar.gz | |
| cd libevent-2.0.21-stable | |
| ./configure --prefix=/usr/local |
| #!/bin/bash | |
| # Install build dependencies | |
| yum install -y gcc libpng libjpeg libpng-devel libjpeg-devel ghostscript libtiff libtiff-devel freetype freetype-devel | |
| # Get GraphicsMagick source | |
| wget ftp://ftp.graphicsmagick.org/pub/GraphicsMagick/1.3/GraphicsMagick-1.3.9.tar.gz | |
| tar zxvf GraphicsMagick-1.3.9.tar.gz | |
| # Configure and compile |
| var Sequelize = require('sequelize') | |
| var sequelize = new Sequelize('sequelize_test', 'root') | |
| //Note that the model definition does not have "fullName" | |
| var User = sequelize.define('User', { | |
| email: Sequelize.STRING, | |
| firstName: Sequelize.STRING, | |
| lastName: Sequelize.STRING, | |
| }, | |
| { |
| 根据Unicode5.0整理如下: | |
| 1)标准CJK文字 | |
| http://www.unicode.org/Public/UNIDATA/Unihan.html | |
| 2)全角ASCII、全角中英文标点、半宽片假名、半宽平假名、半宽韩文字母:FF00-FFEF | |
| http://www.unicode.org/charts/PDF/UFF00.pdf | |
| 3)CJK部首补充:2E80-2EFF | |
| http://www.unicode.org/charts/PDF/U2E80.pdf |
| | 名称 | Unicode | 符号 | | |
| | ---- | ------- | ---- | | |
| | 间隔号 | 00B7\U+FF0E | ·\. | | |
| | 连接号 | 2013 | – | | |
| | 破折号 | 2014 | —— | | |
| | 引号 | 2018\2019 | ‘’ | | |
| | 引号 | 201C\201D | “” | | |
| | 省略号 | 2026 | …… | | |
| | 顿号 | 3001 | 、 | | |
| | 句号 | 3002 | 。 | |
| Here is a list of scopes to use in Sublime Text 2 snippets - | |
| ActionScript: source.actionscript.2 | |
| AppleScript: source.applescript | |
| ASP: source.asp | |
| Batch FIle: source.dosbatch | |
| C#: source.cs | |
| C++: source.c++ | |
| Clojure: source.clojure | |
| CoffeeScript: source.coffee |
| // ids is array | |
| var idsCopy = clone(ids); | |
| idsCopy.unshift('FIELD', Sequelize.col('id')); | |
| db.table.findAll({ | |
| where: { id: ids }, | |
| order: [[Sequelize.fn.apply(this, idsCopy) ]] | |
| }).then(function(users) { | |
| }) |