(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| # ignore everything in this directory | |
| /* | |
| # but not these | |
| !.gitignore | |
| !assets/ | |
| !core/ | |
| !_SASS/ | |
| !_JS/ |
| #!/bin/bash | |
| # TO CONFIGURE | |
| DRUSH='/usr/local/bin/drush' | |
| DUMP_SUBFOLDER='dumps' | |
| DUMP_NAME=$1 | |
| DRUPAL_ROOT=`$DRUSH st drupal_root --format=list` | |
| DRUPAL_CONFIG=`$DRUSH st active_config_directory_path --format=list` | |
| DUMP_DIR="$DRUPAL_ROOT/$DUMP_SUBFOLDER/$DUMP_NAME" |
| <?php | |
| drupal_add_library('system', 'ui.accordion'); | |
| drupal_add_js('jQuery(document).ready(function(){ | |
| jQuery("#wrapper").accordion({ | |
| header: ".header", | |
| autoHeight: false, | |
| clearStyle: true, | |
| collapsible: true | |
| }); |
| // set-up a connection between the client and the server | |
| var socket = io.connect(); | |
| // let's assume that the client page, once rendered, knows what room it wants to join | |
| var room = "abc123"; | |
| socket.on('connect', function() { | |
| // Connected, let's sign-up for to receive messages for this room | |
| socket.emit('room', room); | |
| }); |