Skip to content

Instantly share code, notes, and snippets.

Gilberto Diaz diazgilberto

Block or report user

Report or block diazgilberto

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
View repoFactory.js
const repoFactory = function() {
let repos = this;
let repoList = [
{name: 'task', source: './taskRepo'},
{name: 'user', source: './userRepo'},
{name: 'project', source: './projectRepo'}
];
repoList.forEach((repo) => repos[repo.name] = require(repo.source)())
}
@diazgilberto
diazgilberto / .babelrc
Last active Mar 1, 2019
Jest Initial Setup With Babel
View .babelrc
{
"presets": ["@babel/env"]
}
@diazgilberto
diazgilberto / .eslintrc.json
Last active Dec 19, 2018
ESLint configuration file
View .eslintrc.json
{
"env": {
"browser": true,
"es6": true,
"node": true,
"jest": true
},
"extends": [
"eslint:recommended",
"plugin:vue/recommended"
@diazgilberto
diazgilberto / .editorconfig
Last active Jul 28, 2017
VSCODE: Editor configuration for multiple languages
View .editorconfig
# top-most EditorConfig file
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
View iTerm.sh: Open iTerm from Sublime
#!/bin/bash
CD_CMD="cd "\\\"$(pwd)\\\"" && clear"
if echo "$SHELL" | grep -E "/fish$" &> /dev/null; then
CD_CMD="cd "\\\"$(pwd)\\\""; and clear"
fi
VERSION=$(sw_vers -productVersion)
OPEN_IN_TAB=0
while [ "$1" != "" ]; do
You can’t perform that action at this time.