Skip to content

Instantly share code, notes, and snippets.

View vherasme's full-sized avatar

Victor M vherasme

  • Dow Jones
  • Barcelona
  • 15:36 (UTC +02:00)
View GitHub Profile
@vherasme
vherasme / downloadString.js
Created December 28, 2019 13:30 — forked from danallison/downloadString.js
download string as text file
function downloadString(text, fileType, fileName) {
var blob = new Blob([text], { type: fileType });
var a = document.createElement('a');
a.download = fileName;
a.href = URL.createObjectURL(blob);
a.dataset.downloadurl = [fileType, a.download, a.href].join(':');
a.style.display = "none";
document.body.appendChild(a);
a.click();
@vherasme
vherasme / index.js
Created November 1, 2019 09:41
Generated Koa / Nuxt project
const Koa = require('koa')
const consola = require('consola')
const { Nuxt, Builder } = require('nuxt')
const router = require("./routes");
const app = new Koa()
// Import and Set Nuxt.js options
const config = require('../nuxt.config.js')
config.dev = app.env !== 'production'
@vherasme
vherasme / index.html
Created October 8, 2019 20:29
Vuetify Template
<div id="app">
<v-app>
<v-content>
<v-container>
<v-form >
<v-container @click="showDetails()">
<v-row class="some-class">
<v-col cols="3" sm="3" v-for="p in placeholders" :key="p">
<v-text-field :placeholder="p" single-line outlined >
</v-text-field>
@vherasme
vherasme / Groovy.sublime-build
Last active May 22, 2019 11:08
Setup a build system for Groovy in Sublime Text 3 for Linux
{
"cmd": ["/path/to/your/groovy/executable $file_name"],
"selector": "source.groovy",
"file_regex": "[ ]*at .+[(](.+):([0-9]+)[)]",
"shell": true,
"env": {
"JAVA_HOME": "/path/to/your/java/home"
}
}