This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.loopor.subdelay.business | |
{ | |
import com.adobe.cairngorm.business.ServiceLocator; | |
import mx.rpc.AbstractOperation; | |
import mx.rpc.AsyncToken; | |
import mx.rpc.IResponder; | |
import mx.rpc.remoting.RemoteObject; | |
public class RestfulDelegate { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cap deploy # Normal deploy - does not increment version number | |
cap deploy:bump # Updates patch number and uploads version.yml | |
cap deploy:bump VER=minor # Updates minor version number and uploads version.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class YnabConverter | |
require 'csv' | |
require 'fileutils' | |
def initialize(input_path, output_path = 'output.csv') | |
@input_path = input_path | |
@output_path = output_path | |
end | |
def convert! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# app / assets / javascripts / active_admin.js | |
//= require active_admin/base | |
//= require jquery.ui.widget | |
//= require jquery.iframe-transport | |
//= require jquery.fileupload | |
//= require cloudinary/jquery.cloudinary | |
//= require attachinary | |
//= require attachments |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ResqueDeduplicator | |
attr_reader :logs | |
def initialize(queue) | |
@key = "queue:#{queue}" | |
@logs = [] | |
end | |
def run(dry_run: false) | |
duplicates.each do |duplicate| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class EventsController < ApplicationController | |
def index | |
+ @events = [Event.new] | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% 3.times do %> | |
<div class="media"> | |
<%= image_tag "dummy_user.jpg", class: "media__img" %> | |
<div class="media__body"> | |
Sebastian | |
<p class="meta"> | |
liked <%= link_to "Quick Pizza Dough", "#" %> | |
</p> | |
<div class="attachment media"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class EventsController < ApplicationController | |
def index | |
end | |
end | |
Rails.application.routes.draw do | |
resources :events, only: :index | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scenario "Viewing events" do | |
visit events_path | |
expect(page).to have_text "Grilled Aubergines" | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-<% 3.times do %> | |
+<% @events.each do |event| %> | |
<div class="media"> | |
- <%= image_tag "dummy_user.jpg", class: "media__img" %> | |
+ <%= image_tag event.visitor.avatar, class: "media__img" %> | |
<div class="media__body"> | |
- Sebastian | |
+ <%= event.visitor.name %> | |
<p class="meta"> | |
- liked <%= link_to "Quick Pizza Dough", "#" %> |
OlderNewer