Skip to content

Instantly share code, notes, and snippets.

Detailed Rubric

Subjective evaluation will be made on your work/process according to the following criteria:

1. Satisfactory Progress

  • 4: Developer completes iterations 1 through 6 as well as an additional supporting feature
  • 3: Developer completes iterations 1 through 6 (this includes one supporting feature) with few bugs and no missing functionality.
  • 2: Developer completes iterations 1 through 5 with some bugs or missing functionality.
  • 1: Developer fails to complete iterations 1 through 4, or there are significant issues with delivered functionality.
[Story](https://www.pivotaltracker.com/...)
<description of work>
### Dependencies
- [ ] <other PR and tasks>
### Reviews
- [ ] @<users you think should review this PR>
@adammiribyan
adammiribyan / callback.erb
Created November 5, 2012 08:38 — forked from amfeng/callback.erb
Stripe OAuth Example -- Ruby
<!doctype html>
<head>
<title>Stripe OAuth Example</title>
</head>
<body>
<%= @access_token %>
</body>
</html>
# These are my notes from the PragProg book on CoffeeScript of things that either
# aren't in the main CS language reference or I didn't pick them up there. I wrote
# them down before I forgot, and put it here for others but mainly as a reference for
# myself.
# assign arguments in constructor to properties of the same name:
class Thingie
constructor: (@name, @url) ->
# is the same as:
var DateHelper = {
// Takes the format of "Jan 15, 2007 15:45:00 GMT" and converts it to a relative time
// Ruby strftime: %b %d, %Y %H:%M:%S GMT
time_ago_in_words_with_parsing: function(from) {
var date = new Date;
date.setTime(Date.parse(from));
return this.time_ago_in_words(date);
},
time_ago_in_words: function(from) {
<!-- layout file -->
<% if current_user %>
Welcome <%= current_user.username %>. Not you? <%= link_to "Log out", logout_path %>
<% else %>
<%= link_to "Sign up", signup_path %> or <%= link_to "log in", login_path %>.
<% end %>
# Получение коментов от фейсбука происходит через FQL, табличка comments_info
# Нужен гем facebooker, у меня для третьих рельсов:
gem 'facebooker', :git => "git://github.com/joren/facebooker.git", :branch => "rails3"
# Делаете модуль, в котором хранятся все настройки:
module Facebook
CONFIG = {
:app_id => "123123",
:api_key => "123123",
:app_secret => "123123"