Skip to content

Instantly share code, notes, and snippets.

View brunoventura's full-sized avatar
✈️
Travel and code

Bruno Ventura brunoventura

✈️
Travel and code
  • Kovi
  • Florianópolis
View GitHub Profile
{
"env": {
"mocha": true
},
"parserOptions": {
"sourceType": "script"
},
"globals": {
"chubaca": true,
"expect": true,
@brunoventura
brunoventura / csv_import_magic.js
Last active January 11, 2017 21:45 — forked from ianlewis/csv_import_magic.js
A Google Apps Script for importing CSV data into a Google Spreadsheet.
// vim: ft=javascript:
/*jslint sloppy: true, vars: true, white: true, nomen: true, browser: true */
/*global SpreadsheetApp, UiApp, UrlFetchApp, Utilities */
/*
* A script to automate requesting data from an external url that outputs CSV data.
*
* Adapted from the Google Analytics Report Automation (magic) script.
* @author [email protected] (Nick Mihailovski)
* @author [email protected] (Ian Lewis)
*/
'use strict';
const obj = {};
const map = new Map;
const total = 99999999;
for (var i = 0; i < 100000; i++) {
obj['_'+i] = true;
map.set('_'+i, true);
}
@brunoventura
brunoventura / gulpfile.js
Last active March 10, 2016 17:43
Gulp + Browserify + Babel + Error Handler = ❤️
const gulp = require('gulp');
const browserify = require('browserify');
const babelify = require('babelify');
const source = require('vinyl-source-stream');
const connect = require( 'gulp-connect' );
const path = {
files: './static/**/*',
entryFile: './static/lib/app.js',
build: './build/',