Skip to content

Instantly share code, notes, and snippets.

require 'sinatra'
require 'dm-core'
require 'do_sqlite3'
require 'chronic'
require 'digest/sha1'
require 'sinatra-authentication'
use Rack::Session::Cookie, :secret => 'qfohy0xn2zz4y17k15548w1ic34ue2179ld2m56i89b7s'
C:\Users\Joel\Desktop\current\2.remindery\app>ruby app.rb
app.rb:18:in `<class:User>': undefined method `property' for User:Class (NoMetho
dError)
from app.rb:17:in `<main>'
C:\Users\Joel\Desktop\current\2.remindery\app>ruby app.rb
C:/Ruby19/lib/ruby/gems/1.9.1/gems/dm-core-0.10.2/lib/dm-core/model.rb:703:in `a
ssert_valid': User must have a key to be valid (DataMapper::IncompleteModelError
)
from C:/Ruby19/lib/ruby/gems/1.9.1/gems/dm-core-0.10.2/lib/dm-core/migra
cron = RestClient::Resource.new 'http://api.webcron.org', :user => 'f6edf299474daedc', :password => '750aac90c4e126f7'
cron['/cron.add'].post :name => name, :url => url, :exec_delay => delay

Welcome to Gistery. Gistery aims to provide a simple, personal repository of code snippets. Simply add a snippet, it's name (including the extension, i.e. 'application.rb'), and a search string to come find it later.

You can also add a Github Gist url instead of a snippet. The name won't be required, but the search string may be useful.

The search box will find all of the snippets that contain that part of the search string.

Please use webkit, because some css3 and html5 nicities are being used that require it. Cross-browsering is being worked on.

Please be kind. Gistery will eventually be used as a free service, or open-sourced for your personal deployment. Cheers!

<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName>Short Name</ShortName>
<Description>Brief Description</Description>
<Url type="text/html" method="get" template="url/action?argument={searchTerms}"/>
<Image width="16" height="16">favicon.ico</Image>
<InputEncoding>UTF-8</InputEncoding>
<SearchForm>url of form</SearchForm>
</OpenSearchDescription>

Welcome to Markdownr.com. We hope you really enjoy using this.

Just type some markdown on the left and see it on the right. Simple as that.

$(document).ready(function(){
// code
});
<li>
<h3><a href="#">basic methods</a></h3>
<pre class="code">
<code class="ruby">
def method argument
return splat(argument)
end
</code>
</pre>
</li>
<li>
<h3><a href="#">basic methods</a></h3>
<pre class="code">
<code class="ruby">
def method argument
return splat(argument)
end
</code>
</pre>
</li>
<li>
<h3><a href="#">basic methods</a></h3>
<pre class="code">
<code class="ruby">
def method argument
return splat(argument)
end
</code>
</pre>
</li>