I hereby claim:
- I am estebanz01 on github.
- I am estebanz01 (https://keybase.io/estebanz01) on keybase.
- I have a public key ASBd7idQRbpevu7U2Qy50R8IEZPCf9scloEWWPAoy-bLFwo
To claim this, I am signing this object:
| require 'benchmark' | |
| arr = 1_000.times.map { (1..100).to_a } | |
| Benchmark.bm 10 do |x| | |
| x.report('#concat') { arr.each_with_object([]) { |x, memo| memo.concat([1001]) } } | |
| x.report('#flat_map') { arr.flat_map { |x| x << [1001] } } | |
| end | |
| splitdf <- function(dataframe, seed=NULL) { | |
| if (!is.null(seed)) set.seed(seed) | |
| index <- 1:nrow(dataframe) | |
| trainindex <- sample(index, trunc(length(index)/2)) | |
| trainset <- dataframe[trainindex, ] | |
| testset <- dataframe[-trainindex, ] | |
| list(trainset=trainset,testset=testset) | |
| } | |
| #Source of this function: http://www.gettinggeneticsdone.com/2011/02/split-data-frame-into-testing-and.html |
| // Example program | |
| #include <iostream> | |
| #include <vector> | |
| #include <string> | |
| using namespace std; | |
| class Node { | |
| public: | |
| int data; |
| // Example program | |
| #include <iostream> | |
| #include <vector> | |
| #include <string> | |
| using namespace std; | |
| class Node { | |
| public: | |
| int data; |
| // Example program | |
| #include <iostream> | |
| #include <string> | |
| using namespace std; | |
| class Elemento { | |
| public: | |
| int dato; | |
| Elemento* siguiente; |
| // Example program | |
| #include <iostream> | |
| #include <string> | |
| using namespace std; | |
| class Elemento { | |
| public: | |
| int dato; | |
| Elemento* siguiente; |
| // Example program | |
| #include <iostream> | |
| #include <string> | |
| using namespace std; | |
| class Leave { | |
| public: | |
| int data; | |
| Leave* left; |
| #include <iostream> | |
| #include <string> | |
| #include <iomanip> | |
| using namespace std; | |
| class Leave { | |
| public: | |
| int idNumber; | |
| string name; |
| This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account. | |
| Token for proof: | |
| [Verifying my OpenPGP key: openpgp4fpr:d97d4f52f25a2a8d5e8874a061dea3a7bf851a0f] |
I hereby claim:
To claim this, I am signing this object: