adamwiggins / scanty Goto Github PK
View Code? Open in Web Editor NEWThe blog that's almost nothing
Home Page: http://adam.blog.heroku.com/
The blog that's almost nothing
Home Page: http://adam.blog.heroku.com/
I mistakenly wrote, do not pay attention, accidentally missed repository.
I just tried the following blog content (from markdown tutorial):
> ## This is a header.
>
> 1. This is the first list item.
> 2. This is the second list item.
>
> Here's some example code:
>
> return shell_exec("echo $input | $markdown_script");
and received this error:
REXML::ParseException at /past/2011/6/6/test/
#<REXML::ParseException: Malformed comment Line: 116 Position: 5938 Last 80 unconsumed characters: > /Users/zepplock/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/rexml/parsers/baseparser.rb:352:in `pull' /Users/zepplock/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/rexml/parsers/treeparser.rb:22:in `parse' /Users/zepplock/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/rexml/document.rb:230:in `build' /Users/zepplock/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/rexml/document.rb:43:in `initialize' /Users/zepplock/code/scanty/vendor/maruku/maruku/output/to_latex_entities.rb:72:in
This link here is on the readme page: adam.blog.heroku.com. But it doesn't work for me.
Hi,
In order to get this warnings away when starting scanty via "thin -R config.ru start":
[...]
config.ru:4: warning: Sinatra::Application.default_options is deprecated; use 'set' instead.
config.ru:4: warning: The :env option is deprecated; use :environment instead.
config.ru:11: warning: Sinatra.application is deprecated; use Sinatra::Application instead.
[...]
New config.ru:
require 'rubygems'
require 'sinatra'
Sinatra::Default.set(
:views => File.join(File.dirname(FILE), 'views'),
:run => false,
:environment => ENV['RACK_ENV']
)
require 'main'
run Sinatra::Application
Thanks in advance,
Francisco Cabrita
When I try to login, before doing anything else (except changing the config variables), I get this error:
NoMethodError at /auth
undefined method `set_cookie' for #Sinatra::Application:0x00000103050a30
On line 92 of main.rb
91. post '/auth' do
92. set_cookie(Blog.admin_cookie_key, Blog.admin_cookie_value) if params[:password] == Blog.admin_password
93. redirect '/'
94. end
I am using Sinatra 1.0 on Ruby 1.9
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.