Setting up Grbl on the Eleksmaker A3 Pro
ls /dev | grep usb
cu.usbserial-1410
tty.usbserial-1410
python stream.py square.ngc /dev/tty.usbserial-1410
Setting up Grbl on the Eleksmaker A3 Pro
ls /dev | grep usb
cu.usbserial-1410
tty.usbserial-1410
python stream.py square.ngc /dev/tty.usbserial-1410
class Verse | |
def initialize(count) | |
@count = count | |
end | |
def to_s | |
<<~EOS | |
#{@count} bottles of beer on the wall, #{@count} bottles of beer. | |
Take one down and pass it around, #{@count - 1} #{pluralize(@count - 1, 'bottle')} of beer on the wall. | |
EOS |
import Ember from 'ember'; | |
import EmberObject, { computed } from '@ember/object'; | |
import { task, timeout } from 'ember-concurrency'; | |
let CurrentUser = EmberObject.extend({ | |
user: computed('userData', function() { | |
return this.get('userData'); | |
}), |
class CommentsController < ApplicationController | |
rescue_from ActiveRecord::RecordNotFound, :with => :record_not_found | |
def index | |
@user = User.find(params[:user_id]) if params[:user_id] | |
@comments = @user ? @user.comments : Comment.scoped | |
end | |
private |