Skip to content

Instantly share code, notes, and snippets.

View andru1989's full-sized avatar

Andres Vizcaino andru1989

View GitHub Profile
Incident Identifier: 08FCC671-F6F8-4FF0-8019-52BABDF348AF
CrashReporter Key: fd0d46294d914af58bc6ecd2d28465a89249a936
Hardware Model: iPhone8,1
Process: app [1270]
Path: /private/var/containers/Bundle/Application/F56E569A-1C58-45F8-9363-178E8A41083B/app.app/app
Identifier: com.ayendaapp
Version: 1 (1.0)
AppStoreTools: 11C29
Code Type: ARM-64 (Native)
Role: Non UI
[2017-11-15T04:25:16.756537 #29429] INFO -- : [977ff0f7-51e4-47d6-9f38-148c6a7b9967] ***************WICKED***************
I, [2017-11-15T04:25:16.757151 #29429] INFO -- : [977ff0f7-51e4-47d6-9f38-148c6a7b9967] Rendering estimates/show.pdf.haml within layouts/layout_pdf.pdf.haml
I, [2017-11-15T04:25:16.759594 #29429] INFO -- : [977ff0f7-51e4-47d6-9f38-148c6a7b9967] Rendered estimates/show.pdf.haml within layouts/layout_pdf.pdf.haml (2.3ms)
I, [2017-11-15T04:25:17.917982 #29429] INFO -- : [977ff0f7-51e4-47d6-9f38-148c6a7b9967] Completed 500 Internal Server Error in 1186ms (ActiveRecord: 2.8ms)
F, [2017-11-15T04:25:17.920044 #29429] FATAL -- : [977ff0f7-51e4-47d6-9f38-148c6a7b9967]
F, [2017-11-15T04:25:17.920160 #29429] FATAL -- : [977ff0f7-51e4-47d6-9f38-148c6a7b9967] RuntimeError (Failed to execute:
["/usr/bin/wkhtmltopdf", "-q", "--orientation", "Portrait", "--page-size", "A4", "--margin-top", "0", "--margin-bottom", "0", "--margin-left", "0", "--margin-right", "0", "--footer-center", "Wed, 15 Nov 201
import axios from 'axios';
export const FETCH_POSTS = 'FETCH_POSTS';
export const CREATE_POST = 'CREATE_POST';
export const FETCH_POST = 'FETCH_POST';
const ROOT_URL = 'http://reduxblog.herokuapp.com/api';
const API_KEY = '?key=andru1989';
export function fetchPosts() {
@andru1989
andru1989 / fullCalendarDisablePrevNext.js
Created November 18, 2015 02:37 — forked from juanbrujo/fullCalendarDisablePrevNext.js
jQuery FullCalendar.js: disable prev/next button for past/future dates
$('#calendar').fullCalendar({
viewRender: function(currentView){
var minDate = moment(),
maxDate = moment().add(2,'weeks');
// Past
if (minDate >= currentView.start && minDate <= currentView.end) {
$(".fc-prev-button").prop('disabled', true);
$(".fc-prev-button").addClass('fc-state-disabled');
}
else {
@andru1989
andru1989 / rspec_model_testing_template.rb
Created September 29, 2015 18:03 — forked from SabretWoW/rspec_model_testing_template.rb
Rails Rspec model testing skeleton & cheat sheet using rspec-rails, shoulda-matchers, shoulda-callbacks, and factory_girl_rails. Pretty much a brain dump of examples of what you can (should?) test in a model. Pick & choose what you like, and please let me know if there are any errors or new/changed features out there. Reddit comment thread: http…
# This is a skeleton for testing models including examples of validations, callbacks,
# scopes, instance & class methods, associations, and more.
# Pick and choose what you want, as all models don't NEED to be tested at this depth.
#
# I'm always eager to hear new tips & suggestions as I'm still new to testing,
# so if you have any, please share!
#
# @kyletcarlson
#
# This skeleton also assumes you're using the following gems: