Skip to content

Instantly share code, notes, and snippets.

ruby version -> ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin17]
# Sequential processing
require 'benchmark'
require 'open-uri'
require 'json'
Benchmark.bm do |x|
x.report('without parallel processing - ') do
Ingredients -
1. Onion (2)
2. Tomato (2)
3. Ginger Garlic paste
4. Zeera
5. Green chilli (4)
6. Curd (3 spoons)
7. Haldi powder
8. Dhaniya powder
Ingredients (for 2) -
1. Onion [2]
2. Tomato [2 small]
3. Capsicum [2 small]
4. Gream peas/Carrot
5. Mushrooms [6-7 pieces]
6. Eggs [4]
7. Green chilli [4]
8. Haldi powder
@utkarshrai003
utkarshrai003 / Palak Paneer Recepie
Last active September 8, 2017 17:39
Recepie for making Palak Paneer !!
Ingredients(for 2) :
* 2 lumps of palak leaves.
* 1 big onion or 2 small onions
* 1 big or 2 small tomato
* 4 green chilli
* ginger garlic paste / gingers and garlic
* zeera
* haldi powder
* dhaniya powder
// statusCode could be
// 200 - successfull
// 201 - successfully created
// data - could be array, object, string anything
// meta - any extra information that needs to be appended
// self - path for current api call
var success_response = (statusCode, data, meta = {}, self, res) => {
let resBody = {
status: statusCode,
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCkWhWV+2+gy3JbqMfhabXdfuGXk/jR5XOU+Cx/WGo2f+/Mf0xi/mLJimgDivlqV99SYkAJjmln4Yf/d3zTLLsEGROgxUEEyJJnncje+XHvHXpvq/+3cLnYoGGnzdTvBiBd2F1OEHcRLtw7mxNJURHtRJtNRITeTWdu3VjC1YAB5mVYN5Z4Sfo8YCji81ds9k4Cilqa+JIdU5QpErhBzlrcL2QkFumTqozrA+f0ljqdJg2t9b4l/PolpXJkeAsLvQJ6nTkCn22IhBDetIi9WwCpiPWOWueHgTfu4NtH5mEM/sAAjAZ70ipKyd8PYkBCjlcqUksaV7EdxbgYZBqcNJxd codebrahma@codebrahama
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDFAMHzuHrk3iu6+paUssFDwUWUGFYy36m/odPIYs/Y6fmdOcQkRhrF2vI9/+nRlqhSYxXJgkiQZ7iknYaNNdPkbbYiu0mOO+F5ht+DJT+xxVB6zlS7P22GyaVwoukfI7t6dGuiuCLT1X6nMSV7bLZ1szj9bU+teGJpUTDUHAwxIrbbgKEJoFc88AsedqSvDueVMNGaN8H+H97X2xvTd4DFeeOR8zVcCUL6dQ+tkE5NNRCLMJekXgE3wbae9zO8GJXVtPjptMiI9EIhtnWs3Hdff+jZXw4jqpaMhtb0tuz6wPNxA0DxszRL9vdvydC1AAxYmPgh+zvrRFb9gKiBzZkf codebrahma@codebrahama