<h1 class="entry-title">Join the Community</h1> <h2 class="entry-subtitle">LEARN, DISCUSS, SHARE, CONTRIBUTE</h2> <p>Join our <a href="http://socketio.slack.com" target="_blank">Slack</a> server to discuss the project in realtime.</p> <ul> <li><b>Talk</b> to the core devs and the Socket.IO community.</li> <li><b>Learn</b> from others and ask questions.</li> <li><b>Share</b> your work and demos.</li> </ul> <p>Enter your email to join the Socket.IO community Slack <a href="http://socketio.slack.com" target="_blank">server</a>:</p> <form action=""> <p><input type="text" placeholder="*****@*****.**" /></p> </form> <p id="join-footer">At this time <b class="slack-users-count"><?php echo $redis->get('slack_users_count'); ?> </b> people are active out of <b class="slack-users-count-total"><?php echo $redis->get('slack_users_count_total'); ?> </b> registered users.</p> <p>Please be nice, respectful and inclusive of others!</p> </main> </div> <style> #primary form p input[type="text"] { width: 100%; } h2.entry-subtitle {
<?php require_once dirname(__FILE__) . '/TinyRedisClient.class.php'; $client = new TinyRedisClient($argv[1]); /* start */ $client->del('test:key'); /* strings */ assert($client->set('test:key', 'value') === 'OK'); assert($client->get('test:key') === 'value'); assert($client->del('test:key') === '1'); assert($client->get('test:key') === null); /* exceptions */ try { $client->sadd('test:key', 'item1', 'item2'); assert(false); } catch (Exception $ex) { } /* sets */ assert($client->sadd('test:key', 'item1') === '1'); assert($client->sadd('test:key', 'item2') === '1'); assert($client->smembers('test:key') === array('item1', 'item2')); assert($client->scard('test:key') === '2'); assert($client->del('test:key') === '1'); assert($client->scard('test:key') === '0'); assert($client->smembers('test:key') === array()); /* multi */ assert($client->sadd('test:key', 'item1') === '1'); assert($client->sadd('test:key', 'item2') === '1'); assert($client->multi() === 'OK'); assert($client->smembers('test:key') === 'QUEUED'); assert($client->smembers('test:key') === 'QUEUED');
wp_footer(); ?> <?php $redis = new TinyRedisClient('localhost:6379'); ?> <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> <script src="http://cdn.socket.io/socket.io-1.3.0.js"></script> <!-- Twitter script --> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script> <script> (function() { var slack_users_count = <?php echo $redis->get('slackin_active'); ?> ; var count = $('<span id="slack-count">').text(slack_users_count); var socket = io('http://slack.socket.io'); $('#menu-item-972 a').append(count); socket.on('active', function(val, total){ var old = Number(count.text()); count.text(val); li.find('a').attr('title', val + ' users of online of ' + total); if (val > old) { count.removeClass().addClass('animated bounce').one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', function(){ $(this).removeClass(); });
wp_footer(); ?> <?php $redis = new TinyRedisClient('localhost:6379'); ?> <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> <script src="http://cdn.socket.io/socket.io-1.3.0.js"></script> <!-- Twitter script --> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script> <script> (function() { var slack_users_count = <?php echo $redis->get('slack_users_count'); ?> ; var li = $('<li class="menu-item"><a href="/slack">Slack</a></li>') var count = $('<span id="slack-count">').text(slack_users_count); var socket = io('http://slack.socket.io'); li.find('a').append(count); $('#menu-item-43').before(li); socket.on('slack users count', function(val, total){ var old = Number(count.text()); count.text(val); li.find('a').attr('title', val + ' users of online of ' + total); if (val > old) {