Command Line
pry -r ./config/app_init_file.rb
- load your app into a pry session (look at the file loaded by config.ru)pry -r ./config/environment.rb
- load your rails into a pry session
Debugger
include CapybaraAccessories | |
# This step occurs after an item was added to the cart through XHR | |
# It must wait for the call to return and for the UI to update. | |
# A badge must become visible and contain the number of items in cart. | |
# Without this kind of wait code Capybara's waiting features (2.2.1) | |
# still miss the update and fail the test. | |
Then(/^I see a caddie badge with (\d+) item\(s\)$/) do |count| | |
wait_for{page.find('#count')}.should have_content(count) |
Command Line
pry -r ./config/app_init_file.rb
- load your app into a pry session (look at the file loaded by config.ru)pry -r ./config/environment.rb
- load your rails into a pry sessionDebugger
require 'prawn' | |
require 'prawn/measurements' | |
# I have a small collection of links to the resources I used to figure all | |
# this out: http://pinboard.in/u:fidothe/t:pdfx | |
module PDFX | |
class PageBox | |
include Prawn::Measurements | |
attr_reader :bleed_mm |
Resident data ends at 36c4, program starts at 36c4, file ends at 1dd10 | |
Starting analysis pass at address 36c2 | |
End of analysis pass, low address = 36c4, high address = dffc | |
[Start of code] | |
Main routine R0001, 0 locals |
sudo pacman -S libmagick6 | |
PKG_CONFIG_PATH=/usr/lib/imagemagick6/pkgconfig gem install rmagick | |
# or with bundler: | |
PKG_CONFIG_PATH=/usr/lib/imagemagick6/pkgconfig bundle install |
use <hull.scad> | |
w = 66.35; | |
l = 79; | |
pin_locations = [ [-w/2, -l/2, 0], [-w/2, l/2, 0], | |
[ w/2, -l/2, 0], [ w/2, l/2, 0] ]; | |
thickness = 1; | |
$fn = 24; |
// CNC-v3.2.scad - Open source CNC machine | |
// Project page: www.HomoFaciens.de | |
// Date: 2016-10-11 | |
// Author: Norbert Heinz | |
// Modified by Unrud <[email protected]> (2018-10-08) | |
// Display Settings | |
SHOW_DRILLHOLES = false; | |
SHOW_BALL_BEARINGS = true; |
convert -background none -fill black -font font.ttf -pointsize 140 label:'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789`~!@#$\%^&*()-_+={}[]|\\,.<>?/:;“"‘'"'" font_texture.png |
# MIT License | |
# Copyright (c) 2020 Ross Becker | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: | |
# |