Skip to content

Instantly share code, notes, and snippets.

Igor de Lorenzi Andrade igordelorenzi

Block or report user

Report or block igordelorenzi

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
@igordelorenzi
igordelorenzi / setup.md
Last active Aug 29, 2015
Setup Sublime Text 3 - Linter e Snippets para JS
View setup.md

Instalação do SublimeLinter e SublimeLinter-jshint

TL;DR: Vá para a Instalação Rápida.

  1. Primeiramente, instale o Package Control. Link: https://sublime.wbond.net/installation
  • Obs: Para verificar se está instalado: cmd+shift+p, digite Package Control e observe se apareceu algum comando.
  1. Instale o plugin SublimeLinter. Acione ctrl+cmd+p, digite install e pressione Enter. Aguarde o Package Control carregar os repositórios. Na janela de comando, digite SublimeLinter e pressione Enter. Aguarde até a finalização do processo. O status pode ser observado na barra inferior do editor.
  2. Instale o plugin SublimeLinter-jshint. Repita o passo anterior com o nome SublimeLinter-jshint.
  3. Instale o binário do JSHint. No terminal, digite npm install jshint -g
  • Obs: Para quem não usa o nvm, será necessário executar o comando como super user: sudo npm install jshint -g
View Gruntfile.js
(function() {
"use strict";
var LIVERELOAD_PORT, lrSnippet, mountFolder;
LIVERELOAD_PORT = 35728;
lrSnippet = require("connect-livereload")({
port: LIVERELOAD_PORT
@igordelorenzi
igordelorenzi / GruntFixSourceMappingTask.js
Created Sep 4, 2014
Task for copying JavaScript Source Map files from vendor (and bower_components) to dist directory.
View GruntFixSourceMappingTask.js
grunt.registerTask('fixSourceMapping', function () {
var concat = grunt.config('concat'),
copy = grunt.config('copy'),
files = concat.generated.files,
i, src, sourceMapFiles = [];
for (i in files) {
if (files[i].dest === "dist/scripts/vendor.js") {
src = files[i].src;
break;
@igordelorenzi
igordelorenzi / backup.py
Last active Aug 29, 2015
Backup Script w/ Rotation Based on GFS
View backup.py
# -*- encoding: utf-8 -*-
import logging
import sh
import random
from bakthat.helper import BakHelper
# from datetime import datetime
logging.basicConfig(level=logging.INFO)
# CHECK WHAT WILL BE KEPT (BACKUP ROTATION)
You can’t perform that action at this time.