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
2016-06-23 18:54:29,442 | INFO | MainThread:123145303375872 | __init__.py:1531 | conveyor.server.Server:usb_device_inserted | Device {u'iserial': '75334323935351B0B0C1', u'pid': 45079, u'port_type': 'UsbPort', u'vid': 9153} inserted | |
2016-06-23 18:54:29,466 | ERROR | MainThread:123145303375872 | EepromReader.py:47 | EepromReader:__init__ | Could not find /Library/MakerBot/python/makerbot_driver-0.1.1-py2.7.egg/makerbot_driver/EEPROM/eeprom_map_706_0x00.json | |
2016-06-23 18:54:29,536 | INFO | MainThread:123145303375872 | s3g.py:360 | conveyor.machine.s3g._S3gMachine:connect | Connecting {u'can_print': True, u'number_of_toolheads': 2, u'display_name': 'Replicator 2', u'name': {u'iserial': '75334323935351B0B0C1', u'pid': 45079, u'port_type': 'UsbPort', u'vid': 9153}, u'platform_temperature': 0, u'has_heated_platform': True, u'profile_name': u'Replicator2X', u'toolhead_target_temperature': [0], u'build_volume': [246, 152, 155], u'state': u'IDLE', u'driver_name': u's3g', u'printer_type': u'The Replicator 2X', u'firmw |
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
# Using an 'Incoming Webhook' url, the link_names directive works and #channel and @user are linked in payload text when displayed in Slack | |
curl -X POST --data-urlencode 'payload={"link_names": 1, "text": "This references the #general channel and the @hpoydar user using a webhook generated as an *Incoming Webhook* configuration", "attachments": [{"text": "Referencing the #general channel and the @hpoydar user in an attachment"}], "channel": "#demo", "username": "webhook-bot", "icon_emoji": ":large_blue_circle:"}' https://hooks.slack.com/services/INCOMING_WEBHOOK_URL | |
# Using a webhook url generated from the creation of a Slack Button, the link_names directive does not work and #channel and @user are not linked in payload text when displayed in Slack. Same goes for payloads returned in response to slash commands | |
curl -X POST --data-urlencode 'payload={"link_names": 1, "text": "This references the #general channel and the @hpoydar user using a webhook generated as from a *Slack Button* configuration", "attach |
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
module FeatureMacros | |
def fill_in_stripe_checkout_form(kind = 'Visa') | |
stripe_iframe = all('iframe[name=stripe_checkout_app]').last | |
within_frame stripe_iframe do | |
case kind | |
when 'MasterCard' | |
3.times {page.driver.browser.find_element(:id, 'card_number').send_keys('5555')} | |
1.times {page.driver.browser.find_element(:id, 'card_number').send_keys('4444')} | |
when 'Visa_declined' |
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
<!doctype html> | |
<html> | |
<head> | |
<!-- Run in full-screen mode. --> | |
<meta name="apple-mobile-web-app-capable" content="yes"> | |
<!-- Make the status bar black with white text. --> | |
<meta name="apple-mobile-web-app-status-bar-style" content="black"> |
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
class ArticlesController < ApplicationController | |
def index | |
render nothing: true | |
end | |
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
#!/bin/sh | |
# Some things taken from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' | |
green='\033[0;32m' |
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
ENV['RAILS_ENV'] ||= 'test' | |
require File.expand_path('../../config/environment', __FILE__) | |
require 'rails/test_help' | |
require 'minitest/reporters' | |
require 'minitest/metadata' | |
require 'capybara/rails' | |
reporter_options = { color: true } | |
Minitest::Reporters.use! [Minitest::Reporters::DefaultReporter.new(reporter_options)] |
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
RSpec.configure do |config| | |
config.before(:suite) do | |
DatabaseCleaner.clean_with(:truncation) | |
load "#{Rails.root}/db/seeds.rb" | |
end | |
config.before(:each) do | |
DatabaseCleaner.strategy = :transaction |
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
/*===== | |
HIDING | |
====== | |
/* Hide the Google+ buttons */ | |
/* | |
.gb_ea, | |
.gb_fa | |
{ display: none; } | |
*/ |
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
namespace :deploy do | |
desc "Tag a release and deploy the application to production" | |
task :production do | |
release_tag_name = "release-#{Time.now.utc.strftime('%Y%m%d.%H%M')}" | |
sh "git push origin integration" | |
sh "git checkout master" | |
sh "git merge integration" |