This file contains hidden or 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
| %% If your shell is setup correctly then inputing unicode chars should work like this: | |
| 1> A = "žžžūvis". | |
| [382,382,382,363,118,105,115] | |
| %% Contains integers > 255, | |
| %% hence this is a list of codepoints, good! | |
| %% None of these will work: | |
| 17> <<"žžžūvis">>. | |
| ** exception error: bad argument | |
| 18> <<"žžžūvis"/utf8>>. |
This file contains hidden or 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
| """ Theano CRBM implementation. | |
| For details, see: | |
| Taylor GW, Hinton GE, Roweis ST. Modeling Human Motion Using Binary Latent Variables. | |
| In: Advances in Neural Information Processing Systems 19. MIT Press; 2007. pp. 1345–1352. | |
| Sample data: | |
| https://uoguelphca-my.sharepoint.com/:u:/g/personal/gwtaylor_uoguelph_ca/EfJARkZuiX1JmwMKQxQqKJMBaMBUNOcF83FW_n9gk7OIbg?e=fnCjet | |
| @author Graham Taylor""" | |
| import numpy |
This file contains hidden or 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
| XMPP = {}; | |
| // ............................................... | |
| // Models | |
| // | |
| XMPP.BOSHConnection = SC.Record.extend({ | |
| primaryKey: 'jid', | |
| jid: SC.Record.attr(String), | |
| password: SC.Record.attr(String), |
This file contains hidden or 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
| /** Class: Strophe.WebSocket | |
| * XMPP Connection manager. | |
| * | |
| * Thie class is the main part of Strophe. It manages a BOSH connection | |
| * to an XMPP server and dispatches events to the user callbacks as | |
| * data arrives. It supports SASL PLAIN, SASL DIGEST-MD5, and legacy | |
| * authentication. | |
| * | |
| * After creating a Strophe.Connection object, the user will typically | |
| * call connect() with a user supplied callback to handle connection level |
This file contains hidden or 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
| # How to echobot with XMPP, BOSH, and Strophe | |
| 1. Setup ejabberd(http://www.ejabberd.im/) server and setup account admin@localhost.local | |
| NOTE: localhost should be enough. If you setup something else, make sure you add it at /etc/hosts like this | |
| #/etc/hosts | |
| 127.0.0.1 localhost.local | |
| NOTE: Also download Psi(http://psi-im.org/), and make sure you can connect to your ejabberd server. | |
| 2. Download strophe(http://code.stanziq.com/strophe/) and place it (eg: /Users/makoto/work/sample/strophejs-1.0) |