Skip to content

Instantly share code, notes, and snippets.

View timproctor's full-sized avatar
💭
Learning

Timothy Proctor timproctor

💭
Learning
  • Glastonbury, CT
View GitHub Profile
@timproctor
timproctor / gist:36950a6751afb8847a20
Last active August 29, 2015 14:06
lightning_talk_elixer

Elixir Outline

Intro ((30) min)

Follow these instructions:

THINK: Why is Ruby Amazing?

Text an answer to this:

Why is Ruby amazing to you?

@timproctor
timproctor / gist:7c6f14db65d543e1ae30
Last active August 29, 2015 14:06
Storing State in Sessions

What does it mean for an application to be multi-tenant?

That the application can keep secure the data from many users of the application.

Why would you want to build an application to be multi-tenant?

If you were an on-line store, like Amazon, you would want as many customers as possible using your application.

How do you implement multi-tenancy at the data / database level?

=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
-------------------------------
The code for the contact form
-------------------------------
<div id='contact-box' class="group">
<div class="span6 clear">
<form action="/" method="post" class="well">
<label for="name">Your Name:</label>
<input type="text" name="name" class="span4" placeholder="John Smith...">
<label for="email">Your email address:</label>
@timproctor
timproctor / sms_integration_questions.md
Last active August 29, 2015 14:04
How do I integrate SMS into my IdeaBox

IdeaBox is an app that allows User to create a title and description of their idea. They can also edit, delete, and/or like! an idea.

Now I want to add the ability for user to text in their Idea. So far, I have created an account on Twilio and I know that what I want to do is possible. I'm looking at puzzle pieces with no idea how to put them together (frustrating).

My idea is that I need to modify my Ruby code (idea.rb and idea_store.rb):

blog_posts.csv
blog_posts.csv
class Garden
attr_reader :layout, :row_0, :row_1
def initialize(layout, two=nil)
@row_0, @row_1 = layout.split("\n")
@layout = layout.gsub("\n", "")
end
def alice
guard :minitest do
watch(/test\/.+_test\.rb/)
watch(/lib\/(.+)\.rb/) do |data|
"test/#{data[1]}_test.rb"
end
end