The document discusses the functions provided by the Underscore.js library. It covers basic functions like filter, map, and reduce. It also covers more advanced functions like zip, union, and difference. Finally, it provides examples of chaining functions together and using Underscore in live examples like calculating averages and modeling the birthday paradox problem.
Sexy JavaScript with lodash and ES6
Declarative programing is all about intent. It's about writing code that focuses on what we want to do, not how we do it. Declarative code is elegant and easy to change and maintain. Functional programing is a paradigm that helps writing such code, and libraries such as underscore.js and lodash are a huge help. This talk is about sprinkling ES6 syntax on top of lodash in order to write sexy, compact and declarative code.
Sexy JavaScript with lodash and ES6
Declarative programing is all about intent. It's about writing code that focuses on what we want to do, not how we do it. Declarative code is elegant and easy to change and maintain. Functional programing is a paradigm that helps writing such code, and libraries such as underscore.js and lodash are a huge help. This talk is about sprinkling ES6 syntax on top of lodash in order to write sexy, compact and declarative code.
Rapid and Scalable Development with MongoDB, PyMongo, and MingRick Copeland
This intermediate-level talk will teach you techniques using the popular NoSQL database MongoDB and the Python library Ming to write maintainable, high-performance, and scalable applications. We will cover everything you need to become an effective Ming/MongoDB developer from basic PyMongo queries to high-level object-document mapping setups in Ming.
MongoDB supports replication for failover and redundancy. In this session we will introduce the basic concepts around replica sets, which provide automated failover and recovery of nodes. We'll cover how to set up, configure, and initiate a replica set; methods for using replication to scale reads; and proper architecture for durability.
Rapid and Scalable Development with MongoDB, PyMongo, and MingRick Copeland
This intermediate-level talk will teach you techniques using the popular NoSQL database MongoDB and the Python library Ming to write maintainable, high-performance, and scalable applications. We will cover everything you need to become an effective Ming/MongoDB developer from basic PyMongo queries to high-level object-document mapping setups in Ming.
MongoDB supports replication for failover and redundancy. In this session we will introduce the basic concepts around replica sets, which provide automated failover and recovery of nodes. We'll cover how to set up, configure, and initiate a replica set; methods for using replication to scale reads; and proper architecture for durability.
Python là ngôn ngữ lập trình đơn giản và đang càng này càng trở lên phổ biến. Bài giảng này cung cấp cách tiếp cận đơn giản dễ hiểu với python một cách dễ dàng nhất
Very quick introduction to the language R. It talks about basic data structures, data manipulation steps, plots, control structures etc. Enough material to get you started in R.
A slightly-modified version of my IPRUG talk, this time for the BT DevCon5 developer conference at Adastral Park on 25 May 2012.
The main changes are the addition of the Ruby section and the increased number of HHGTTG references in honour of towel day.
Simply Business is starting to look into new tools to improve some of our mission-critical systems. There is one application, which would hugely benefit from the concurrency and fault tolerance model offered by languages like Elixir.
To increase awareness and gauge interest in the technology, we will have a bootcamp dedicated to giving us more insights into how to build and architect applications using Elixir and OTP.
It is meant to aim for slightly more advanced concepts, so in order to prepare rest of the team to be able to read the code and have some basic understanding of constructs and tooling - we have organised a LevelUP session, to talk exactly about that...
11. // Medieval is Evil!
var invert = function(columns) {
var res = [];
Live for(var i = 0; i< columns.length; i++) {
var row = columns[i];
Chaining for (var j = 0; j < row.length; j++) {
if(! res[j])
Sudoku res[j] = [];
Column-row invert
res[j][i] = row[j];
Birthday paradox }
}
return res;
};
// Just zip-it
_.zip(['moe', 'larry', 'curly'],
[30, 40, 50],
[true, false, false]);
-> [moe,30,true],
[larry,40,false],
[curly,50,false]
12. var min = 1, // 1th January
max = 365; // 31 December
Live
// produce birthdays
var getNextBirthday = function() {
Chaining return _.random(min, max);
Sudoku };
Column-row invert // check for double dates
Birthday paradox var isMatchFound = function(lst) {
return lst.length > _.uniq(lst).length;
};
// Birthday paradox (BP) - probability theorie // loop until first hit
// Some have the same brithday: var getFirstHit = function() {
// 100% - 366 people needed. -> 365 in 'normal' var loop = function(lst) {
year lst.push(getNextBirthday());
// BP -> 99% 57 people if (IsMatchFound(lst)) {
return lst.length; // attempts
// BP -> 50% 23 people
}
else { return loop(lst); }
};
return loop([]); // start
};