Skip to content

Instantly share code, notes, and snippets.

// e.g. console.save({hello: 'world'})
(function(console){
console.save = function(data, filename){
if(!data) {
console.error('Console.save: No data')
return;
}
if(!filename) filename = 'console.json'
if(typeof data === "object"){
data = JSON.stringify(data, undefined, 4)
@edwinork
edwinork / .gitignore
Created May 8, 2020 21:41
Includes IntelliJ, Gradle, Java, Java-Web, Web
# Created by https://www.gitignore.io/api/web,java,gradle,java-web,intellij
# Edit at https://www.gitignore.io/?templates=web,java,gradle,java-web,intellij
### Intellij ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
# User-specific stuff
.idea/**/workspace.xml