Skip to content

Instantly share code, notes, and snippets.

Vinícius Garcia VinGarcia

  • Belo Horizonte - MG, Brazil
Block or report user

Report or block VinGarcia

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
VinGarcia / iterating-by-reference-example.cpp
Last active Nov 6, 2018
Medium Article: Making Iterators in C++
View iterating-by-reference-example.cpp
for (auto& i : myContainer) {
cout << "My item: " << i << endl;
View walksync.js
// List all files in a directory in Node.js recursively in a synchronous fashion
var walkSync = function(dir, filelist) {
if( dir[dir.length-1] != '/') dir=dir.concat('/')
var fs = fs || require('fs'),
files = fs.readdirSync(dir);
filelist = filelist || [];
files.forEach(function(file) {
if (fs.statSync(dir + file).isDirectory()) {
You can’t perform that action at this time.