This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# Colorize string | |
class String | |
def colorize(color_code) | |
"\e[#{color_code}m#{self}\e[0m" | |
end | |
end | |
class Colors |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2018-04-26 11:55:49,663 [ 360612] INFO - ails.preload.spring.SpringUtil - Moving Spring to /private/var/folders/qn/b7nzb2nx0rlckq0pwym5cbw80000gp/T/RMSpring | |
2018-04-26 11:55:49,663 [ 360612] INFO - .ruby.ruby.run.RubyCommandLine - Executing [/Users/sandro/.rbenv/versions/2.4.2/bin/ruby /Users/sandro/.rbenv/versions/2.4.2/bin/rubocop --format json --force-exclusion --stdin app/services/admin/discounts/gift_card.rb], working dir =[/Users/sandro/projects/valedesconto] | |
2018-04-26 11:56:30,481 [ 401430] INFO - ution.rmi.RemoteProcessSupport - /Applications/RubyMine.app/Contents/jdk/Contents/Home/jre/bin/java -Djava.net.preferIPv4Stack=true -Duser.timezone=UTC -Dfile.encoding=UTF-8 -classpath "/Applications/RubyMine.app/Contents/lib/util.jar:/Applications/RubyMine.app/Contents/lib/trove4j.jar:/Applications/RubyMine.app/Contents/lib/groovy-all-2.4.12.jar:/Applications/RubyMine.app/Contents/plugins/DatabaseTools/lib/jdbc-console.jar:/Applications/RubyMine.app/Contents/plugins/DatabaseTools/lib/dekaf-single-2.0.0.34 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// Use IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "chrome", | |
"request": "launch", | |
"name": "Launch Chrome", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Link { | |
url: String! | |
description: String! | |
id: ID! @isUnique | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package br.com.exemplo; | |
import org.ghost4j.Ghostscript; | |
import org.ghost4j.GhostscriptException; | |
public class ComprimePdf { | |
public static void main(String[] args) { | |
Ghostscript gs = Ghostscript.getInstance(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#require 'pry' | |
def quantidade_bits_verificacao (m) | |
k = 0 | |
while (2 ** k) - 1 < m + k | |
k += 1 | |
end | |
k | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6003 verbose afterAdd /Users/sandro/.npm/array-uniq/1.0.2/package/package.json not in flight; writing | |
6004 verbose correctMkdir /Users/sandro/.npm correctMkdir not in flight; initializing | |
6005 silly cache afterAdd beeper@1.0.0 | |
6006 verbose afterAdd /Users/sandro/.npm/beeper/1.0.0/package/package.json not in flight; writing | |
6007 verbose correctMkdir /Users/sandro/.npm correctMkdir not in flight; initializing | |
6008 silly fetchAndShaCheck shasum 930c88e99098d6220834c356cbd9a770522d90d7 | |
6009 verbose addTmpTarball /var/folders/6y/dxngwnfj56350j2sqclgqs5r0000gn/T/npm-6443-d8884e01/registry.npmjs.org/utile/-/utile-0.2.1.tgz not in flight; adding | |
6010 verbose correctMkdir /Users/sandro/.npm correctMkdir not in flight; initializing | |
6011 verbose addTmpTarball validating metadata from /var/folders/6y/dxngwnfj56350j2sqclgqs5r0000gn/T/npm-6443-d8884e01/registry.npmjs.org/utile/-/utile-0.2.1.tgz | |
6012 verbose tar unpack /var/folders/6y/dxngwnfj56350j2sqclgqs5r0000gn/T/npm-6443-d8884e01/registry.npmjs.org/utile/-/utile-0.2.1. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private LazyDataModel<Cidade> cidadesLazy; | |
@SuppressWarnings("serial") | |
public LazyDataModel<Cidade> getCidadesLazy() { | |
if (cidadesLazy == null) { | |
cidadesLazy = new LazyDataModel<Cidade>() { | |
@Override | |
public List<Cidade> load(int primeiroRegistro, int totalRegistros, String campoOrdenacao, SortOrder tipoOrdenacao, Map<String, Object> filtros) { | |
List<Cidade> lista = repository.buscaPaginada(primeiroRegistro, totalRegistros, campoOrdenacao, tipoOrdenacao, filtros); | |
int totalRegistrosFiltrados = repository.quantidadeRegistros(filtros); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pg_restore --verbose --clean --no-acl --no-owner -h localhost -U postgres -d nome_do_banco arquivo.dump |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem install nokogiri -- --with-xml2-include=/usr/local/opt/libxml2/include/libxml2 \ | |
--with-xml2-lib=/usr/local/opt/libxml2/lib \ | |
--with-xslt-dir=/usr/local/opt/libxslt \ | |
--with-iconv-include=/usr/local/opt/libiconv/include \ | |
--with-iconv-lib=/usr/local/opt/libiconv/lib |
NewerOlder