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, 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
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
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' | |
... |
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
sudo apt-get install libdjvulibre-dev libjpeg-dev libtiff-dev libwmf-dev libmagickcore-dev libmagickwand-dev libmagick++-dev rvm | |
sudo gem install rmagick | |
ok! | |
Fetching: rmagick-2.13.1.gem (100%) Building native extensions. This could take a while ... Successfully installed rmagick-2.13.1 1 gem installed | |
require 'RMagick' #=> true |
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
public class WicketApplication extends WebApplication | |
{ | |
/** | |
* @see org.apache.wicket.Application#getHomePage() | |
*/ | |
@Override | |
public Class<? extends WebPage> getHomePage() | |
{ | |
return HomePage.class; | |
} |
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 'java' | |
java_package 'com.mycompany' | |
java_import org.apache.wicket.request.mapper.parameter.PageParameters | |
java_import org.apache.wicket.markup.html.basic.Label | |
java_import org.apache.wicket.markup.html.WebPage | |
class HomePage < Java::WebPage | |
serialVersionUID = '1L' |
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
<html> | |
<head></head> | |
<body> | |
<iframe id="player" width="" height="" src="http://player.vimeo.com/video/62207569?api=1&player_id=player" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe> | |
<script src="http://a.vimeocdn.com/js/froogaloop2.min.js"></script> | |
<script> | |
var player = $f('player'); // You should pass player id, which is 'player' | |
player.api('ready', function() { |
OlderNewer