This file contains hidden or 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
| test7 |
This file contains hidden or 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
| au BufRead,BufNewFile jquery.*.js set ft=javascript syntax=jquery | |
| set nocompatible | |
| set autoindent | |
| set tabstop=2 | |
| set showmatch | |
| set vb t_vb= | |
| set ruler | |
| set nohls | |
| set incsearch | |
| syntax on |
This file contains hidden or 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
| { | |
| "name": "India", // Album name | |
| "latlon": { // Can be null. Geographic coordinates of album. | |
| "lat": "19.3111433550646", | |
| "lon": "78.92578125", | |
| }, | |
| "request_params": { // Request parameters | |
| "album": "India" | |
| }, | |
| "related": [ // Can be null. Max. size 8. Array of related albums |
This file contains hidden or 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
| s/:([^ ]*?)( +)=>( +)(.*?)($|,| )/$1:$2$4$5/g |
This file contains hidden or 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
| $ thin start | |
| >> Using rack adapter | |
| /home/hp/wa/config.ru:6:in `require': no such file to load -- application.rb (LoadError) | |
| from /home/hp/wa/config.ru:6:in `block in <main>' | |
| from /home/hp/.rvm/gems/ruby-1.9.2-head/gems/rack-1.1.0/lib/rack/builder.rb:46:in `instance_eval' | |
| from /home/hp/.rvm/gems/ruby-1.9.2-head/gems/rack-1.1.0/lib/rack/builder.rb:46:in `initialize' | |
| from /home/hp/wa/config.ru:1:in `new' | |
| from /home/hp/wa/config.ru:1:in `<main>' | |
| from /home/hp/.rvm/gems/ruby-1.9.2-head/gems/thin-1.2.7/lib/rack/adapter/loader.rb:36:in `eval' | |
| from /home/hp/.rvm/gems/ruby-1.9.2-head/gems/thin-1.2.7/lib/rack/adapter/loader.rb:36:in `load' |
This file contains hidden or 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
| Question.all | |
| NameError: undefined local variable or method `scoped' for #<Class:0x7f329af4> | |
| from /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.0.beta3/lib/active_record/base.rb:1141:in `method_missing' | |
| from /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.0.beta3/lib/active_record/base.rb:403:in `all' | |
| from (irb):9 |
This file contains hidden or 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
| Timeout::Error - execution expired: | |
| /usr/lib/ruby/1.8/timeout.rb:60:in `rbuf_fill' | |
| /usr/lib/ruby/1.8/net/protocol.rb:134:in `rbuf_fill' | |
| /usr/lib/ruby/1.8/net/protocol.rb:116:in `readuntil' | |
| /usr/lib/ruby/1.8/net/protocol.rb:126:in `readline' | |
| /usr/lib/ruby/1.8/net/smtp.rb:911:in `recv_response' | |
| /usr/lib/ruby/1.8/net/smtp.rb:554:in `do_start' | |
| /usr/lib/ruby/1.8/net/smtp.rb:921:in `critical' | |
| /usr/lib/ruby/1.8/net/smtp.rb:554:in `do_start' | |
| /usr/lib/ruby/1.8/net/smtp.rb:525:in `start' |
This file contains hidden or 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
| t::SMTPAuthenticationError - 454 4.7.0 Cannot authenticate due to temporary system problem. Try again later. z33sm8723552wbd.1 | |
| : | |
| /usr/lib/ruby/1.8/net/smtp.rb:942:in `check_auth_response' | |
| /usr/lib/ruby/1.8/net/smtp.rb:733:in `auth_plain' | |
| /usr/lib/ruby/1.8/net/smtp.rb:725:in `send' | |
| /usr/lib/ruby/1.8/net/smtp.rb:725:in `authenticate' | |
| /usr/lib/ruby/1.8/net/smtp.rb:566:in `do_start' | |
| /usr/lib/ruby/1.8/net/smtp.rb:525:in `start' | |
| /usr/lib/ruby/gems/1.8/gems/mail-2.2.1/lib/mail/network/delivery_methods/smtp.rb:101:in `deliver!' | |
| /usr/lib/ruby/gems/1.8/gems/mail-2.2.1/lib/mail/message.rb:238:in `deliver!' |
This file contains hidden or 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 'rubygems' | |
| require 'exceptional' | |
| require 'sinatra' | |
| Exceptional.api_key = "...your api key..." | |
| module Exceptional | |
| def self.handle_sinatra(exception, uri, request, params) | |
| e = Exceptional.parse(exception) | |
This file contains hidden or 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 'sinatra/base' | |
| require 'pony' | |
| require 'erubis' | |
| require 'validatable' | |
| Dir["lib/*.rb"].each {|file| require file } | |
| class FermeGallard < Sinatra::Base | |
| set :sessions, true | |
| configure do |
NewerOlder