This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
### ejabberd configuration file | |
### | |
### | |
### The parameters used in this configuration file are explained in more detail | |
### in the ejabberd Installation and Operation Guide. | |
### Please consult the Guide in case of doubts, it is included with | |
### your copy of ejabberd, and is also available online at | |
### http://www.process-one.net/en/ejabberd/docs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> | |
<meta http-equiv="Content-Language" content="zh-CN"/> | |
<title>Strophe.js Basic Example</title> | |
<script src='jquery.min.js'></script> | |
<script src='../strophe.js'></script> | |
<script src='basic.js'></script> | |
<script src="basic_lab.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%% 参考资源 | |
%% https://www.ejabberd.im/node/4159?q=node/4159 | |
%% http://blog.zlxstar.me/blog/2013/07/21/dicorvery-user-muclist/ | |
-module(mod_muc_member_list). | |
-author('hezhiqiang'). | |
-behaviour(gen_mod). | |
-include("ejabberd.hrl"). | |
-include("jlib.hrl"). | |
-include("logger.hrl"). | |
-define(NS_MUC_MEMBER_LIST, <<"http://jabber.org/protocol/muc#member-list">>). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* global Application, ObjC, $ */ | |
/** | |
* repozish.js | |
* | |
* this is an example of using os x yosemite's "JavaScript for Automation": | |
* | |
* https://developer.apple.com/library/prerelease/mac/releasenotes/interapplicationcommunication/rn-javascriptforautomation/index.html | |
* | |
* it repositions some windows based on some position settings. you can run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* jQuery 1.2.6 - New Wave Javascript | |
* | |
* Copyright (c) 2008 John Resig (jquery.com) | |
* Dual licensed under the MIT (MIT-LICENSE.txt) | |
* and GPL (GPL-LICENSE.txt) licenses. | |
* | |
* $Date: 2008/05/26 $ | |
* $Rev: 5685 $ | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%%%---------------------------------------------------------------------- | |
%%% File : mod_onlineusers.erl | |
%%% Author : Michael Weibel <michael.weibel@amiadogroup.com> | |
%%% Purpose : Display number of online users | |
%%% Created : 2011-08-16 | |
%%%---------------------------------------------------------------------- | |
%%% https://github.com/candy-chat/mod_onlineusers | |
%%% http://blog.zlxstar.me/blog/2013/07/21/dicorvery-user-muclist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-module(mod_cputime). | |
-behaviour(gen_mod). | |
-export([ | |
start/2, | |
stop/1, | |
process_local_iq/3 | |
]). | |
-include("ejabberd.hrl"). | |
-include("jlib.hrl"). | |
-include("logger.hrl"). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-module(mod_logxml). | |
-author('badlop@ono.com'). | |
-behaviour(gen_mod). | |
-export([ | |
start/2, | |
init/7, | |
stop/1, | |
send_packet/3, | |
receive_packet/4 | |
]). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Load data tiles from an AJAX data source | |
L.TileLayer.Ajax = L.TileLayer.extend({ | |
_requests: [], | |
_addTile: function (tilePoint) { | |
var tile = { datum: null, processed: false }; | |
this._tiles[tilePoint.x + ':' + tilePoint.y] = tile; | |
this._loadTile(tile, tilePoint); | |
}, | |
// XMLHttpRequest handler; closure over the XHR object, the layer, and the tile | |
_xhrHandler: function (req, layer, tile, tilePoint) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule XmlParsingTest do | |
@moduledoc """ | |
从xmerl模块头文件中提取XML元素记录 | |
我们要提取的两个记录在xmerl.hrl中的定义分别为 | |
- xmlElement | |
``` | |
-record(xmlElement,{ | |
name, % atom() | |
expanded_name = [], % string() | {URI,Local} | {"xmlns",Local} | |
nsinfo = [], % {Prefix, Local} | [] |