Is Coding for You?
Read over the MakerSquare Coding Challenge Prep then take their Coding Challenge. If you found this interesting then coding might be for you!
Single Best Place
class Tasks::ShowView < ApplicationView | |
attr_reader :task | |
delegate :taskable, :taskable_is_a_project?, :taskable_is_a_template?, to: :task | |
alias completeable? taskable_is_a_project? | |
alias assignable? taskable_is_a_project? | |
alias roleable? taskable_is_a_template? | |
#!/usr/bin/env ruby | |
#gem install rb-scpt (ruby < 2.5.0) | |
require 'rb-scpt' | |
APP = Appscript.app("Things3.app") | |
def inbox | |
APP.lists.get.detect{|l| l.name.get == 'Inbox'} | |
end |
class Teacher < ActiveRecord::Base | |
has_many :courses | |
has_many :lightbulbs, :through => "courses" | |
end | |
class Course < ActiveRecord::Base | |
has_many :lightbulbs | |
end | |
class Lightbulb < ActiveRecord::Base |
module Datastores | |
module Memoizable | |
extend ActiveSupport::Concern | |
include ThreadLocal | |
KEY_REGEX = /`([^']*)'/ | |
module ClassMethods | |
def memoize(key = nil, &block) |
Is Coding for You?
Read over the MakerSquare Coding Challenge Prep then take their Coding Challenge. If you found this interesting then coding might be for you!
Single Best Place
### Keybase proof | |
I hereby claim: | |
* I am ascruggs on github. | |
* I am techscruggs (https://keybase.io/techscruggs) on keybase. | |
* I have a public key whose fingerprint is E977 06A0 014F 2376 1553 CF09 8C66 263C FA75 28FD | |
To claim this, I am signing this object: |
{ | |
"binary_file_patterns": | |
[ | |
"*.jpg", | |
"*.jpeg", | |
"*.png", | |
"*.gif", | |
"*.ttf", | |
"*.tga", | |
"*.dds", |
class Destination | |
def name | |
"boom" | |
end | |
end | |
def destination | |
Destination.new |
desc 'add achievement to user' | |
params do | |
requires :id, type: String, desc: "Status ID." | |
requires :achievement_id, type: String, desc: "Achievement id you want to add" | |
end | |
put ':id' do | |
user = User.find params[:id] | |
achievement = Achievement.find params[:achievement_id] | |
user.achievements << achievement | |
end |
<!-- Mobile meta & links --> | |
<!-- Reference | |
Custom Icon and Image Creation Guidelines: | |
http://developer.apple.com/library/safari/#documentation/UserExperience/Conceptual/MobileHIG/IconsImages/IconsImages.html | |
Configuring Web Applications: | |
http://developer.apple.com/library/safari/#documentation/appleapplications/reference/safariwebcontent/configuringwebapplications/configuringwebapplications.html |