(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.
The prep-script.sh
will setup the latest Node and install the latest perf version on your Linux box.
When you want to generate the flame graph, run the following (folder locations taken from install script):
sudo sysctl kernel.kptr_restrict=0
# May also have to do the following:
# (additional reading http://unix.stackexchange.com/questions/14227/do-i-need-root-admin-permissions-to-run-userspace-perf-tool-perf-events-ar )
sudo sysctl kernel.perf_event_paranoid=0
السلام عليكم ، هذا كود ريجيكس بسيط للتحقق من صحة أرقام الجوالات السعودية ، يقوم الريجيكس بالتحقق من مفتاح الدولة ، مفتاح شركة الإتصالات لضمان صحة النص المدخل .
Hello, this is a simple regex to validate saudi mobile numbers, the code will validate country code, telecome company code and make sure the tested sting is correct .
/^(009665|9665|\+9665|05|5)(5|0|3|6|4|9|1|8|7)([0-9]{7})$/
Complete installation process: | |
sudo apt-get update | |
sudo apt-get upgrade | |
sudo apt-get install -y python-software-properties python make build-essential g++ curl libssl-dev apache2-utils git libxml2-dev | |
sudo apt-get update | |
sudo apt-get upgrade | |
cd ~ | |
mkdir git | |
cd ~/git |
Backbone.View.extend({ | |
constructor: function (options) { | |
// Do stuff before the View has been setup | |
Backbone.View.apply(this, arguments); | |
// Do stuff after the View has been setup, | |
// particularly after `initialize()` has been called | |
return this; |
render: -> | |
@el.innerHTML = document.querySelector( if @id then '#'+@id else '.'+@className ).innerHTML | |
weld( @el, @model.attributes ) | |
@ |
var _deref = function (doc, field, col) { | |
var oid = ObjectId(doc[field]); | |
delete doc[field]; | |
doc[field] = db[col].findOne({_id:oid}); | |
return doc; | |
} | |
var deref = function(field, collection){ | |
// C-C-C-Closure!! | |
return function(doc){ |