- Service available?
- callback:
service_available?
- false:
503 Service Unavailable
- callback:
- Known method?
- callback:
known_methods
- callback:
- absent:
501 Not Implemented
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 'sinatra/base' | |
require 'rack/flash' | |
require 'warden' | |
require 'slim' | |
require 'sequel' | |
require 'sqlite3' | |
DB = Sequel.sqlite | |
DB.create_table :users do | |
primary_key :id |
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
#! /usr/bin/env ruby | |
# Usage: | |
# ruby sequel_dot.rb [SEQUEL-DATABASE-URI] > output.dot | |
# Or pipe directly to Graphviz: | |
# ruby sequel_dot.rb [SEQUEL-DATABASE-URI] | dot -Tgif > output.gif | |
# | |
# Note adapted from Jeremy Evans' and Rohit Namjoshi's son's code at | |
# http://sequel.heroku.com/2010/05/29/fun-with-graphviz-and-associations/ | |
# |
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 'sequel' | |
DB ||= Sequel.connect ENV['DATABASE_URL'] | |
class Resource < Sequel::Model | |
include Sequel.inflections | |
def after_save | |
db.notify channel | |
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
node_modules/fbjs/lib/UnicodeBidi.js.flow:28 | |
28: import type { BidiDirection } from 'UnicodeBidiDirection'; | |
^^^^^^^^^^^^^^^^^^^^^^ UnicodeBidiDirection. Required module not found | |
node_modules/fbjs/lib/UnicodeBidiService.js.flow:51 | |
51: import type { BidiDirection } from 'UnicodeBidiDirection'; | |
^^^^^^^^^^^^^^^^^^^^^^ UnicodeBidiDirection. Required module not found | |
node_modules/fbjs/lib/equalsSet.js.flow:16 | |
16: import type Set from 'Set'; |
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
[ignore] | |
.*/node_modules/fbjs/lib/Deferred | |
.*/node_modules/fbjs/lib/PromiseMap | |
.*/node_modules/.*/test/ | |
[include] | |
[libs] | |
[options] |
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 'formula' | |
class Nginx < Formula | |
homepage 'http://nginx.org/' | |
url 'http://nginx.org/download/nginx-1.4.4.tar.gz' | |
sha1 '304d5991ccde398af2002c0da980ae240cea9356' | |
devel do | |
url 'http://nginx.org/download/nginx-1.5.7.tar.gz' | |
sha1 '4dd04c73c3081277fe9c98c4a386c8baf956f5ca' |
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_relative 'links' | |
require_relative 'tags' | |
module Foil | |
class File | |
attr_accessor :id, | |
:category_id, :license_id, :visibility_id, | |
:description, :name, | |
:annotations, :authors, :editors, :links, :publishers, :tags |
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
ld: warning: directory not found for option '-L/Users/jamiehodge/Documents/development/rubinius/rubinius/lib' | |
/Users/jamiehodge/Documents/development/rubinius/rubinius/bin/rbx extconf.rb | |
An exception occurred running extconf.rb: | |
no such file to load -- ffi2/generators (LoadError) | |
Backtrace: | |
Rubinius::CodeLoader#load_error at kernel/common/code_loader.rb:440 | |
Rubinius::CodeLoader#resolve_require_path at kernel/common/code_loader.rb:423 |
NewerOlder