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
module Campaign | |
class Base < ActiveRecord::Base | |
include Campaign::Data | |
include Campaign::State | |
include Campaign::Events | |
include Campaign::Presenters | |
include Campaign::Services | |
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
require 'active_support/concern' | |
module Campaign::Events | |
extend ActiveSupport::Concern | |
included do | |
def generate_event | |
Bus::Event::CampaignSubmittedForReview.create(:campaign => self) | |
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
(require '[clojure.string :as str]) | |
(defn rename-underscore [sym] | |
[(symbol (str/replace (name sym) \_ \-)) | |
(keyword sym)]) | |
(defn udestructure [[lhs expr]] | |
(if (and (map? lhs) | |
(vector? (:_keys lhs))) | |
(let [msym (gensym) |
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
something |
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
git submodule add git://github.com/apotonick/cells | |
git submodule add git://github.com/apotonick/apotomo | |
git init | |
git update |
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
<script type="text/javascript"> | |
var _aok = _aok || []; | |
// blank shows generic feed | |
_aok._flashtag = ''; | |
</script> | |
<script type = "text/javascript" src = "http://aok.tv/widget"></script> |
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
def self.create_with_omniauth(auth) | |
create! do |user| | |
user.provider = auth["provider"] | |
user.uid = auth["uid"] | |
user.name = auth["info"]["name"] | |
user.email = auth["info"]["email"] | |
user.email = auth["extra"]["user_hash"]["email"] if auth["extra"] and auth["extra"]["raw_info"] and user.email.nil? | |
user.nickname = auth["info"]["nickname"] | |
user.bio = auth["info"]["description"][0..139] if auth["info"]["description"] | |
user.locale = I18n.locale.to_s |
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
def self.create_with_omniauth(auth, primary_user_id = nil) | |
u = create! do |user| | |
user.provider = auth["provider"] | |
user.uid = auth["uid"] | |
user.name = auth["user_info"]["name"] | |
user.name = auth["user_info"][:name] if user.name.nil? | |
user.email = auth["user_info"]["email"] | |
user.email = auth["extra"]["user_hash"]["email"] if auth["extra"] and auth["extra"]["user_hash"] and user.email.nil? | |
user.nickname = auth["user_info"]["nickname"] | |
user.bio = auth["user_info"]["description"][0..139] if auth["user_info"]["description"] |
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 PlacardPanelWidget < Apotomo::Widget | |
has_widgets do | |
self << widget(:project_placard, 'project_1') | |
self << widget(:project_placard, 'project_2') | |
self << widget(:project_placard, 'project_3') | |
self << widget(:project_placard, 'project_4') | |
end | |
def display |
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
source 'https://rubygems.org' | |
ruby "2.0.0" | |
gem 'rails', github: 'rails/rails' | |
gem 'arel', github: 'rails/arel' | |
... |
OlderNewer