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
<%= init_fb_connect('XFBML', :js => :jquery) %> |
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
ruby -e'include Math;(-7..30).each{|y|s="";\ | |
(26..100).each{|x|s<<" .,:+*%xX08@"[ \ | |
((sin(x/8.0)+2+sin(y*x/2.0))** \ | |
(sin(y/7.0)+1)*12/16.0)]};puts 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
Haml::Template.options[:format] = :html5 |
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 Object | |
def cdebug(tag=nil) | |
RAILS_DEFAULT_LOGGER.info "\n\033[1;33;44m#{tag}\033[1;32;40m#{self.class} \033[0;30;47m#{self.inspect}\033[0m" | |
end | |
def clog(tag=nil) | |
puts "\n\033[1;33;44m#{tag}\033[1;32;40m#{self.class} \033[0;30;47m#{self.inspect}\033[0m" | |
end | |
def prepare_dump(tag=nil) | |
@stack = [] | |
@stack << "\n\033[1;33;44m#{tag}\033[1;32;44m #{self.class}\033[0m\n" |
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
SomeApp::Application.routes.draw do | |
resources :resources | |
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
# View | |
<% form_for :spec do |form| %> | |
<fieldset> | |
<legend><span><%= future_i18t("What's your current marital status?") %></span></legend> | |
<div class="form-input"> | |
<%= error_messages_for'spec' %> | |
<div class="radio_button_row"> | |
<%= radio_button :spec, :p2_marital_status, 'p2_marital_single_never_married', :onclick =>"toggleOtherExplain;" %> |
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
draggable | |
droppable | |
resizable | |
selectable | |
sortable | |
accordion | |
autocomplete | |
button | |
datepicker | |
dialog |
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 'omniauth/oauth' | |
require 'multi_json' | |
module OmniAuth | |
module Strategies | |
class IdNet < OmniAuth::Strategies::OAuth2 | |
def initialize(app, api_key = nil, secret_key = nil, options = {}, &block) | |
client_options = { | |
:site => IDNET_PROVIDER_URL, |
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
abbr[title] { border-bottom: 1px dotted; } | |
b, strong { font-weight: bold; } | |
blockquote { margin: 1em 40px; } | |
dfn { font-style: italic; } | |
hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; } | |
ins { background: #ff9; color: #000; text-decoration: none; } | |
mark { background: #ff0; color: #000; font-style: italic; font-weight: bold; } | |
pre, code, kbd, samp { font-family: monospace, monospace; _font-family: 'courier new', monospace; font-size: 1em; } | |
pre { white-space: pre; white-space: pre-wrap; word-wrap: break-word; } | |
q { quotes: none; } |
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 'omniauth/oauth' | |
require 'multi_json' | |
module OmniAuth | |
module Strategies | |
class IdNet < OmniAuth::Strategies::OAuth2 | |
def initialize(app, api_key = nil, secret_key = nil, options = {}, &block) | |
client_options = { | |
:site => IDNET_PROVIDER_URL, |
OlderNewer