Skip to content

Instantly share code, notes, and snippets.

View joaquim-oliveira-neto's full-sized avatar

Joaquim De Oliveira Neto joaquim-oliveira-neto

View GitHub Profile
@joaquim-oliveira-neto
joaquim-oliveira-neto / signDocument.js
Created April 8, 2019 19:40
ClickSign - question regarding event 'signed'
function Clicksign(o) {
"use strict";
var r, u, t = window.location.protocol + "//" + window.location.host,
e = {},
n = function (t) {
(e[t] || []).forEach(function (t) {
t()
})
},
c = function (t) {
@joaquim-oliveira-neto
joaquim-oliveira-neto / gist:435c6a6b28f20e80acd0b7cff312e699
Created March 7, 2018 20:01
Problem with running rake on production [Solution]
#-----lib/tasks/import.rake------#
require File.expand_path(File.dirname(__FILE__) + '../../../config/environment.rb')
namespace :import do
desc "Given the path of a excel spreadsheet exported from Smart it will import paid invoices "
task :paid_invoices, [:path] => :environment do |t, args|
path = args.path
LegacyImportation.new.paid_invoices_importation(path)
end
@joaquim-oliveira-neto
joaquim-oliveira-neto / gist:d31895bc402bf1a631eecfed17f35b31
Created March 7, 2018 00:17
Problem with running rake on production
#-----lib/tasks/import.rake------#
# require File.expand_path(File.dirname(__FILE__) + '../../../app/models/application_record.rb')
# require File.expand_path(File.dirname(__FILE__) + '../../../app/models/invoice.rb')
# require File.expand_path(File.dirname(__FILE__) + '../../../app/models/installment.rb')
# require File.expand_path(File.dirname(__FILE__) + '../../../app/models/seller.rb')
# require File.expand_path(File.dirname(__FILE__) + '../../../app/models/payer.rb')
# require File.expand_path(File.dirname(__FILE__) + '../../../app/models/operation.rb')
# require File.expand_path(File.dirname(__FILE__) + '../../../app/services/legacy_importation.rb')
@joaquim-oliveira-neto
joaquim-oliveira-neto / gist:1e76a21f6041b39a21d4c73fc7af4d2d
Last active March 2, 2018 14:54
Copy of the terminal after git push heroku master
➜ lead_advalori git:(master) git push heroku master [2.3.5]
Counting objects: 3, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 380 bytes | 0 bytes/s, done.
Total 3 (delta 2), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Deleting 0 files matching .slugignore patterns.