Skip to content

Instantly share code, notes, and snippets.

First, create an account at https://citygro.ws so you can see what the product looks like. If you create a template and then launch a process from the template, some content will appear in your dashboard. One of the columns in the dashboard is the name of the person who launched the process. Currently, if you hover over the name, nothing happens. We're gonna change that.
What I'd like you to do is implement a popup that displays when hovering over the person's name:
- It should display the user's name, email, and the number of processes they've launched
- It should load its data via AJAX (should not have to give the widget anything other than a user id)
- It should be recyclable and easily attachable anywhere else on the site
When you're ready, make a PR and ping me! And absolutely feel free to ask questions along the way, I fully expect you'll have a few, and it's better to ask than waste time toiling away.
cell = add_attributes(cell)
def add_attributes(cell)
cell = add_shared_attributes(cell)
case cell.class
when PicturePost
# Add picture post attrs
when LinkPost
# Add link post attrs
cell = generateCell();
cell = addSharedProperties(cell);
cell = cell.addUniqueProperties(cell);
function generateCell(stuff){
switch(){
// Determine which type of cell to generate
}
}
@corwinstephen
corwinstephen / gist:83b7b4b18e4c103fdd62f95ddfbb0cfa
Last active August 3, 2016 19:58
AT&T: Where our business model is incompetence!

Today I discovered that AT&T had charged me $20 more than they were supposed to for my internet service. I went to log into my account so I could view my bill, but discovered that I couldn't. When I tried to log in, I just got an error message: "A system error prevented us from completing that action. Contact customer support."

Dreading having to sit on hold on the phone, I used their text chat support option. Here's how that conversation went:

Me: Hey, I'm getting an error message when I log into my account.

Them: Thank you for that information. I can help you with that.

Me: .......

post '/people' do
content_type :json
nb_client = NationBuilder::Client.new('dtla', 'mytoken')
post_data = {
person: {
email: params[:email],
tags: ["compiler", "compilerla website signup"]
}
}
<%= liquid_html_for_icon("list-minus") %>
<%= link_to(activity.author.name_or_email, admin_signup_path(activity.author)) %> batch updated
<% if activity.wrapped_content.custom_list_signups_count == 1 %>
1 person
<% else %>
all <%= activity.wrapped_content.custom_list_signups_count %> people
<% end %>
on list <a href="/admin/custom_lists/<%= activity.wrapped_content.custom_list_id %>/edit_multiple"><%= activity.wrapped_content.custom_list_name %></a>