<commit_before>```js

if (Meteor.isServer) {
  Meteor.publish('items', function() {
    var self = this;
    self.added('items', '1', { title: 'One' });

    setTimeout(function() {
      self.changed('items', '1', { title: 'Changed One' });
    }, 3000);

    setTimeout(function() {
      self.removed('items', '1');
      self.ready();
    }, 6000);
  });
}

if (Meteor.isClient) {
  var itemsDep = new Deps.Dependency();
  var items[] = [];
  Meteor.connection.registerStore('items', {
    beginUpdate: function(batchSize, reset) {
     
    },

    update: function(msg) {

      items.push(msg.fields);
      itemsDep.changed();


    },

    endUpdate: function() {

    }
  });
  
    Meteor.subscribe('items');


  Template["itemsList"].helpers({
    items: function() {
      itemsDep.depend();
      return items;
    },
    length: function() {
      itemsDep.depend();
      return items.length;
    }
  });
}

```<commit_msg>Update readme for meteor example- just the code<commit_after>```js

/// <reference path="definitions/all-definitions.d.ts" />
declare var Deps;
declare var Users: Mongo.Collection<any>;

if (Meteor.isClient) {

  Users = new Mongo.Collection<any>("usersCollection");

  Meteor.subscribe("allUsers");

  Template["usersList"].helpers({
    users: function() {
      return Users.find().fetch().reverse();
    }
    ,
    length: function() {
      return Users.find().count();
    }
  });
}


if (Meteor.isServer) {
  var mysqlWrapper = Meteor["npmRequire"]("node-mysql-wrapper");

  var db: NodeMysqlWrapper.Database = mysqlWrapper.connect("mysql://kataras:pass@127.0.0.1/taglub?debug=false&charset=utf8");
  console.log('MYSQL IS READY');

  var usersTable = db.meteorTable("users");
  //var criteria = usersTable.criteria.where("yearsOld", 22).build(); //this is the criteria and you pass it as second parameter in usersTable.meteorCollection, default is ' {} means select *all '
  Users = usersTable.collection("usersCollection");//or "usersCollection",criteria) //Returns the 'mongo' collection, which you can find,count and all that except insert,remove,update (which you do from usersTable)

  console.log(Users.find().count() + " rows found! ");
  Meteor.publish("allUsers", function() {
    return Users.find();
  });

  setTimeout(Meteor["bindEnvironment"](function() {
    //insert something
    console.log('TEST INSERT ( this will update your database and your collection on server and client immediately! )');
    var newUser = { username: 'a new username', password: '<PASSWORD>', mail: ' new mail for new user', yearsOld: 22 };

    usersTable.insert(newUser);
  }), 10000);


}

```
{'fraction_non_alphanumeric': 0.1664770572620402, 'fraction_numerical': 0.010238907849829351, 'mean_word_length': 3.5326460481099655, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4724396', 'n_tokens_mistral': 863, 'n_tokens_neox': 806, 'n_words': 187}