This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'active_support/all' | |
restaurants = [ "name 1", | |
"Karachi's", | |
"Kai D", | |
"Kaar- on ()", | |
"KaracDarbar", | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var _ = require('lodash'); | |
results_2009 = [ | |
{ ap:42, inc:33, bjp:0, trs:2, tdp:6, others:1 }, | |
{ ar:2, inc:2, bjp:0, others:0 }, | |
{ as:14, inc:7, bjp:4, others:3 } | |
]; | |
var result_1 = _.map( results_2009 , function (result) { return _.values(result); }); | |
var result_2 = _.flatten(_.map( results_2009 , function (result) { return _.values(result); })); | |
console.log("result_1",'\n', result_1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dir.glob(“#{dir_path}/*").map{|x| File.basename(x, '.xlsx') } |
NewerOlder