Skip to content

Instantly share code, notes, and snippets.

View RavisMsk's full-sized avatar
🗿

Nikita Anisimov RavisMsk

🗿
View GitHub Profile
@dr-dimitru
dr-dimitru / generateUsers.js
Last active August 29, 2015 14:09
Meteor Generate random users with names
var generateUsers = function(x){
var lastnames = ['Brown', 'Black', 'Green', 'Aaberg', 'Aagard', 'Abdella', 'Abebe', 'Caccamo', 'Caccavale', 'Caccese', 'Cacchione', 'Caccia', 'Cacciatore', 'Easley', 'Easlick', 'Easom', 'Eason', 'East', 'Eastburn', 'Ines', 'Infante', 'Infanti', 'Infantino', 'Infield','Infinger', 'Kaliszewski', 'Kalita', 'Kalivas', 'Kalivoda', 'Kalk', 'Kalka', 'Umpleby', 'Umscheid', 'Umstead', 'Umsted', 'Un', 'Unangst', 'Zediker', 'Zee', 'Zeeb', 'Zeedyk', 'Zeek', 'Zeeman'];
var firstnames = ['Mohamed', 'Youssef', 'Ahmed', 'Mahmoud', 'Mustafa', 'Yassin', 'Taha', 'Khaled', 'Hamza', 'Bilal', 'Ibrahim', 'Hassan', 'Hussein', 'Karim', 'Tareq', 'Abdel-Rahman', 'Ali', 'Omar', 'Halim', 'Murad', 'Selim', 'Abdallah', 'Alex', 'Alexander', 'Carter', 'Charlie', 'David', 'Jackson', 'James', 'Jase', 'Joseph', 'Wyatt', 'Charles', 'Clark', 'Cooper', 'Daniel', 'Drake', 'Dylan', 'Edward', 'Eli', 'Elijah', 'Emerson', 'Evan', 'Felix', 'Gabriel', 'Gavin', 'Gus', 'Isaac', 'Isaiah', 'Jacob', 'Jax', 'Kai', 'Kai
@dr-dimitru
dr-dimitru / Meteor_Boilerplate_Structure
Last active August 29, 2015 14:08
Meteor.js boilerplate files and folders structure
myAwesomeApp
|-client
| |-lib #Only Client libraries
| |-js
| |-templates
|-collections #Define, Publish & Subscribe collections
|-lib #Isomorphic (Client + Server) libraries
|-public (or static) #files & folders avaliable via http
| |-css
| |-other
@vojtajina
vojtajina / all-templates.html
Created August 15, 2012 00:00
AngularJS: load all templates in one file
<script type="text/ng-template" id="one.html">
<div>This is first template</div>
</script>
<script type="text/ng-template" id="two.html">
<div>This is second template</div>
</script>
@crtr0
crtr0 / client.js
Created June 8, 2012 17:02
A simple example of setting-up dynamic "rooms" for socket.io clients to join
// 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);
});