code stringlengths 1 1.73M | language stringclasses 1
value |
|---|---|
class CanshusController < ApplicationController
# GET /canshus
# GET /canshus.xml
def index
@canshus = Canshu.all
respond_to do |format|
format.html # index.html.erb
format.xml { render :xml => @canshus }
end
end
# GET /canshus/1
# GET /canshus/1.xml
def show
@canshu = Cansh... | Ruby |
class Dingdan2shangpinsController < ApplicationController
# GET /dingdan2shangpins
# GET /dingdan2shangpins.xml
def index
@dingdan2shangpins = Dingdan2shangpin.all
respond_to do |format|
format.html # index.html.erb
format.xml { render :xml => @dingdan2shangpins }
end
end
# GET /din... | Ruby |
class DingdansController < ApplicationController
# GET /dingdans
# GET /dingdans.xml
def index
@dingdans = Dingdan.all
respond_to do |format|
format.html # index.html.erb
format.xml { render :xml => @dingdans }
end
end
# GET /dingdans/1
# GET /dingdans/1.xml
def show
@dingda... | Ruby |
class CaijispsController < ApplicationController
# GET /caijisps
# GET /caijisps.xml
def daoru
require 'hpricot'
require 'open-uri'
sshopdate=Canshu.find(1)
@doc=""
@doc=Hpricot(Iconv.iconv("UTF-8//IGNORE","euc-kr//IGNORE",open("http://sampleshop.co.kr/template/1/categ_list.asp?categ_code=16&page=1&cv=6&ord... | Ruby |
# Be sure to restart your server when you modify this file.
# Add new inflection rules using the following format
# (all these examples are active by default):
# ActiveSupport::Inflector.inflections do |inflect|
# inflect.plural /^(ox)$/i, '\1en'
# inflect.singular /^(ox)en/i, '\1'
# inflect.irregular 'person',... | Ruby |
# Be sure to restart your server when you modify this file.
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
# You can also remove all the silencers if you're trying do debug a probl... | Ruby |
# Be sure to restart your server when you modify this file.
# These settings change the behavior of Rails 2 apps and will be defaults
# for Rails 3. You can remove this initializer when Rails 3 is released.
if defined?(ActiveRecord)
# Include Active Record class name as root for JSON serialized output.
ActiveReco... | Ruby |
# Be sure to restart your server when you modify this file.
# Add new mime types for use in respond_to blocks:
# Mime::Type.register "text/richtext", :rtf
# Mime::Type.register_alias "text/html", :iphone
| Ruby |
# Be sure to restart your server when you modify this file.
# Your secret key for verifying cookie session data integrity.
# If you change this key, all old sessions will become invalid!
# Make sure the secret is at least 30 characters and all random,
# no regular words or you'll be exposed to dictionary attacks.
Act... | Ruby |
ActionController::Routing::Routes.draw do |map|
map.resources :caijisps
map.resources :canshus
map.resources :dingdan2shangpins
map.resources :dingdans
map.resources :yonghus
map.resources :shangpins
# The priority is based upon order of creation: first created -> highest priority.
# Sample of re... | Ruby |
# Don't change this file!
# Configure your app in config/environment.rb and config/environments/*.rb
RAILS_ROOT = "#{File.dirname(__FILE__)}/.." unless defined?(RAILS_ROOT)
module Rails
class << self
def boot!
unless booted?
preinitialize
pick_boot.run
end
end
def booted?
... | Ruby |
# Be sure to restart your server when you modify this file
# Specifies gem version of Rails to use when vendor/rails is not present
RAILS_GEM_VERSION = '2.3.5' unless defined? RAILS_GEM_VERSION
# Bootstrap the Rails environment, frameworks, and default configuration
require File.join(File.dirname(__FILE__), 'boot')
... | Ruby |
# Settings specified here will take precedence over those in config/environment.rb
# The production environment is meant for finished, "live" apps.
# Code is not reloaded between requests
config.cache_classes = true
# Full error reports are disabled and caching is turned on
config.action_controller.consider_all_reque... | Ruby |
# Settings specified here will take precedence over those in config/environment.rb
# In the development environment your application's code is reloaded on
# every request. This slows down response time but is perfect for development
# since you don't have to restart the webserver when you make code changes.
config.ca... | Ruby |
# Settings specified here will take precedence over those in config/environment.rb
# The test environment is used exclusively to run your application's
# test suite. You never need to work with it otherwise. Remember that
# your test database is "scratch space" for the test suite and is wiped
# and recreated between... | Ruby |
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
require(File.join(File.dirname(__FILE__), 'config', 'boot'))
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'tasks/rails'
| Ruby |
# $ext_path: This should be the path of where the ExtJS SDK is installed
# Generally this will be in a lib/extjs folder in your applications root
# <root>/lib/extjs
$ext_path = "../../"
# sass_path: the directory your Sass files are in. THIS file should also be in the Sass folder
# Generally this will be in a resource... | Ruby |
# include the utils rb file which has extra functionality for the ext theme
dir = File.dirname(__FILE__)
require File.join(dir, 'lib', 'utils.rb')
# register ext4 as a compass framework
Compass::Frameworks.register 'ext4', dir | Ruby |
# $ext_path: This should be the path of the Ext JS SDK relative to this file
$ext_path = "../../extjs"
# sass_path: the directory your Sass files are in. THIS file should also be in the Sass folder
# Generally this will be in a resources/sass folder
# <root>/resources/sass
sass_path = File.dirname(__FILE__)
# css_pat... | Ruby |
module ExtJS4
module SassExtensions
module Functions
module Utils
def parsebox(list, n)
assert_type n, :Number
if !n.int?
raise ArgumentError.new("List index #{n} must be an integer")
elsif n.to_i < 1
raise ArgumentError.new("List index #{n} must... | Ruby |
# $ext_path: This should be the path of where the ExtJS SDK is installed
# Generally this will be in a lib/extjs folder in your applications root
# <root>/lib/extjs
$ext_path = "../../"
# sass_path: the directory your Sass files are in. THIS file should also be in the Sass folder
# Generally this will be in a resource... | Ruby |
# include the utils rb file which has extra functionality for the ext theme
dir = File.dirname(__FILE__)
require File.join(dir, 'lib', 'utils.rb')
# register ext4 as a compass framework
Compass::Frameworks.register 'ext4', dir | Ruby |
# $ext_path: This should be the path of the Ext JS SDK relative to this file
$ext_path = "../../extjs"
# sass_path: the directory your Sass files are in. THIS file should also be in the Sass folder
# Generally this will be in a resources/sass folder
# <root>/resources/sass
sass_path = File.dirname(__FILE__)
# css_pat... | Ruby |
module ExtJS4
module SassExtensions
module Functions
module Utils
def parsebox(list, n)
assert_type n, :Number
if !n.int?
raise ArgumentError.new("List index #{n} must be an integer")
elsif n.to_i < 1
raise ArgumentError.new("List index #{n} must... | Ruby |
# $ext_path: This should be the path of where the ExtJS SDK is installed
# Generally this will be in a lib/extjs folder in your applications root
# <root>/lib/extjs
$ext_path = "../../"
# sass_path: the directory your Sass files are in. THIS file should also be in the Sass folder
# Generally this will be in a resource... | Ruby |
# include the utils rb file which has extra functionality for the ext theme
dir = File.dirname(__FILE__)
require File.join(dir, 'lib', 'utils.rb')
# register ext4 as a compass framework
Compass::Frameworks.register 'ext4', dir | Ruby |
# $ext_path: This should be the path of the Ext JS SDK relative to this file
$ext_path = "../../extjs"
# sass_path: the directory your Sass files are in. THIS file should also be in the Sass folder
# Generally this will be in a resources/sass folder
# <root>/resources/sass
sass_path = File.dirname(__FILE__)
# css_pat... | Ruby |
module ExtJS4
module SassExtensions
module Functions
module Utils
def parsebox(list, n)
assert_type n, :Number
if !n.int?
raise ArgumentError.new("List index #{n} must be an integer")
elsif n.to_i < 1
raise ArgumentError.new("List index #{n} must... | Ruby |
#!/usr/bin/env ruby
# jsonschema2objc.rb
# Author: Francois Proulx
# Author: Philippe Bernery
# Copyright 2010 Backelite. All rights reserved.
#
# jsonschema2objc is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation... | Ruby |
#!/Ruby192/bin/rubyw.exe
# This is our bootstrap script and our substitute for a rackup.ru file since we are using CGI
# add our application folder to the path list
$:.unshift File.expand_path("../../ahandofbananas", __FILE__)
require 'rack'
require 'core/ahandofbananas'
ahob = AHandOfBananas.new
builder... | Ruby |
# I stole this from http://mjijackson.com/2010/02/flexible-ruby-config-objects
class AConfiguredBanana
def initialize(data={})
@data = {}
update!(data)
end
def update!(data)
data.each do |key, value|
self[key] = value
end
end
def [](key)
@data[key.to_sym]
end
... | Ruby |
# Application-specific exceptions which auto-log the error and stack trace
class AnExceptionalBanana < StandardError
# auto-log exception
def initialize(msg)
super(msg)
# trace doesn't exist here so we need to build it from Kernel.caller
trace = self.class.to_s + ": " + msg + "\n"
if Kern... | Ruby |
require 'core/config/aconfiguredbanana'
require 'core/store/apersistentbanana'
require 'core/anexceptionalbanana'
require 'core/avalidatorybanana'
require 'core/aclockworkbanana'
require 'core/amodelbanana'
require 'yaml'
require 'erb'
class AHandOfBananas
# Satisfy our Rack requirements
def call(en... | Ruby |
require 'mysql'
class APersistentBanana
###### API #######################################################
def get_value key
result = retrieve :ro, 'SELECT `value` FROM `store` WHERE `key` = ?', [key]
return result[0]['value'] if result.count > 0
raise APersistentBananaException, "Could not fi... | Ruby |
class AhobAddController
def self.respond_to model, request, config, store
# 1. We'll start with ahob.org/plant, which will offer a list of models to choose from
# 2. Handler will read the model and redirect to ahob.org/plant/[model]
# 3. Handler will then validate the model and load a for with the... | Ruby |
class AhobEditController
def self.respond_to model, request, config, store
rlen = request.env['REQUEST_ARRAY'].count
req = request.env['REQUEST_ARRAY'].slice(1, rlen - 1)
req[0] = '/' + (req[0] || '')
key = req.join('/')
# we need to create a new model as the edit model is not requ... | Ruby |
class AhobListController
def self.respond_to model, request, config, store
#TODO: validate data (existing model)
# load template variables
title = 'All'
req = nil
if (request.env['REQUEST_ARRAY'].count === 2)
title = request.env['REQUEST_ARRAY'][1]
req = title
end
... | Ruby |
class AhobFileController
def self.respond_to model, request, config, store
key = request.env['REQUEST_ARRAY'].join("/")
# TODO: error handling
file = AClockworkBanana.new store, model
file.turn key
Rack::Response.new file.content, 200, {'Content-Type' => file.mime_type}
end
end | Ruby |
class AClockworkBanana
attr_reader :errors, :model
def initialize store, model
raise AClockworkBananaException, 'Did not receive APersistentBanana' unless store.kind_of? APersistentBanana
raise AClockworkBananaException, 'Did not receive AModelBanana' unless model.kind_of? AModelBanana
@sto... | Ruby |
class AValidatoryBanana
def self.validate type, value, constraint
begin
self.send "validate_#{type.downcase}".to_sym, value, constraint
rescue
# if in doubt, treat it as text
validate_text value, nil
end
end
private
def self.validate_string value, constraint
... | Ruby |
class AModelBanana
attr_reader :type, :controller, :source, :description, :fields, :fieldtypes, :constraints
def initialize store
raise AModelBananaException, 'Did not receive APersistentBanana' unless store.kind_of? APersistentBanana
@store = store
end
def load key_array, blind = false
... | Ruby |
require 'sinatra/activerecord/rake'
require './main' | Ruby |
source :gemcutter
gem 'sinatra', :require => 'sinatra/base'
gem 'thin', '~> 1.3'
gem 'pg'
gem 'sinatra-activerecord'
gem 'google-api-client', '>= 0.4.4', :require => 'google/api_client'
group :development do
gem 'rake'
gem 'sqlite3-ruby'
end
| Ruby |
class CreateUsers < ActiveRecord::Migration
def up
create_table :users do |t|
t.string :profile_id
t.string :email
t.string :refresh_token
end
add_index :users, :profile_id
end
def down
drop_table :users
end
end
| Ruby |
# Copyright (C) 2012 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | Ruby |
require 'sinatra.rb'
# Sinatra defines #set at the top level as a way to set application configuration
set :run, false
set :env, (ENV['RACK_ENV'] ? ENV['RACK_ENV'].to_sym : :development)
require './main'
run Sinatra::Application | Ruby |
# $ext_path: This should be the path of where the ExtJS SDK is installed
# Generally this will be in a lib/extjs folder in your applications root
# <root>/lib/extjs
$ext_path = "../../"
# sass_path: the directory your Sass files are in. THIS file should also be in the Sass folder
# Generally this will be in a resource... | Ruby |
# include the utils rb file which has extra functionality for the ext theme
dir = File.dirname(__FILE__)
require File.join(dir, 'lib', 'utils.rb')
# register ext4 as a compass framework
Compass::Frameworks.register 'ext4', dir | Ruby |
# $ext_path: This should be the path of the Ext JS SDK relative to this file
$ext_path = "../../extjs"
# sass_path: the directory your Sass files are in. THIS file should also be in the Sass folder
# Generally this will be in a resources/sass folder
# <root>/resources/sass
sass_path = File.dirname(__FILE__)
# css_pat... | Ruby |
module ExtJS4
module SassExtensions
module Functions
module Utils
def parsebox(list, n)
assert_type n, :Number
if !n.int?
raise ArgumentError.new("List index #{n} must be an integer")
elsif n.to_i < 1
raise ArgumentError.new("List index #{n} must... | Ruby |
# $ext_path: This should be the path of where the ExtJS SDK is installed
# Generally this will be in a lib/extjs folder in your applications root
# <root>/lib/extjs
$ext_path = "../../"
# sass_path: the directory your Sass files are in. THIS file should also be in the Sass folder
# Generally this will be in a resource... | Ruby |
# include the utils rb file which has extra functionality for the ext theme
dir = File.dirname(__FILE__)
require File.join(dir, 'lib', 'utils.rb')
# register ext4 as a compass framework
Compass::Frameworks.register 'ext4', dir | Ruby |
# $ext_path: This should be the path of the Ext JS SDK relative to this file
$ext_path = "../../extjs"
# sass_path: the directory your Sass files are in. THIS file should also be in the Sass folder
# Generally this will be in a resources/sass folder
# <root>/resources/sass
sass_path = File.dirname(__FILE__)
# css_pat... | Ruby |
module ExtJS4
module SassExtensions
module Functions
module Utils
def parsebox(list, n)
assert_type n, :Number
if !n.int?
raise ArgumentError.new("List index #{n} must be an integer")
elsif n.to_i < 1
raise ArgumentError.new("List index #{n} must... | Ruby |
require 'sinatra/activerecord/rake'
require './main' | Ruby |
source :gemcutter
gem 'sinatra', :require => 'sinatra/base'
gem 'thin', '~> 1.3'
gem 'pg'
gem 'sinatra-activerecord'
gem 'google-api-client', '>= 0.4.4', :require => 'google/api_client'
group :development do
gem 'rake'
gem 'sqlite3-ruby'
end
| Ruby |
class CreateUsers < ActiveRecord::Migration
def up
create_table :users do |t|
t.string :profile_id
t.string :email
t.string :refresh_token
end
add_index :users, :profile_id
end
def down
drop_table :users
end
end
| Ruby |
# Copyright (C) 2012 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | Ruby |
require 'sinatra.rb'
# Sinatra defines #set at the top level as a way to set application configuration
set :run, false
set :env, (ENV['RACK_ENV'] ? ENV['RACK_ENV'].to_sym : :development)
require './main'
run Sinatra::Application | Ruby |
require 'rubygems'
require 'eventmachine'
require 'em-http-request'
Fetion_Status = {
'在线' => '1' ,
'忙碌' => '2' ,
'离开' => '3' ,
'隐身' => '4'
}
EM.run{
mobile = '13651368727'#my mobile
password = 'xxxx'#my fetion password
headers = {
'Host' => 'f.10086.cn',
'Referer' => 'http://f.10086.cn/im/l... | Ruby |
#! /usr/bin/ruby
#author newdongyuwei@gmail.com
if GC.respond_to?(:copy_on_write_friendly=)
GC.copy_on_write_friendly = true
end
$KCODE = 'UTF-8'#解决中文乱码问题
%w(rubygems sinatra sinatra/base net/http net/https json erubis eventmachine em-websocket).each{|lib|require lib}
require 'ruby-growl'if RUBY_PLATFORM.downcas... | Ruby |
$:.unshift '.'
ENV['RACK_ENV'] = "production"
require 'rubygems'
require 'fetion_robot'
run Sinatra::Application
| Ruby |
#! /usr/bin/ruby
#author newdongyuwei@gmail.com
require 'rubygems'
require "sinatra"
require 'oauth'
require 'oauth/consumer'
require 'yaml'
require 'logger'
class SinaWeiboClient
def initialize()
@loger = Logger.new(STDOUT)
@loger.level = Logger::DEBUG
auth = YAML.load(File... | Ruby |
#! /usr/bin/ruby
#author newdongyuwei@gmail.com
if GC.respond_to?(:copy_on_write_friendly=)
GC.copy_on_write_friendly = true
end
$KCODE = 'UTF-8'#解决中文乱码问题
%w(rubygems fileutils sinatra sinatra/base net/http net/https json).each{|lib|require lib}
require 'ruby-growl'if RUBY_PLATFORM.downcase.include?("darwin")
class... | Ruby |
require 'rubygems'
require 'eventmachine'
require 'em-http-request'
Fetion_Status = {
'在线' => '1' ,
'忙碌' => '2' ,
'离开' => '3' ,
'隐身' => '4'
}
EM.run{
mobile = '13651368727'#my mobile
password = 'xxxx'#my fetion password
headers = {
'Host' => 'f.10086.cn',
'Referer' => 'http://f.10086.cn/im/l... | Ruby |
#! /usr/bin/ruby
#author newdongyuwei@gmail.com
if GC.respond_to?(:copy_on_write_friendly=)
GC.copy_on_write_friendly = true
end
$KCODE = 'UTF-8'#解决中文乱码问题
%w(rubygems sinatra sinatra/base net/http net/https json erubis eventmachine em-websocket).each{|lib|require lib}
require 'ruby-growl'if RUBY_PLATFORM.downcas... | Ruby |
$:.unshift '.'
ENV['RACK_ENV'] = "production"
require 'rubygems'
require 'fetion_robot'
run Sinatra::Application
| Ruby |
#! /usr/bin/ruby
#author newdongyuwei@gmail.com
require 'rubygems'
require "sinatra"
require 'oauth'
require 'oauth/consumer'
require 'yaml'
require 'logger'
class SinaWeiboClient
def initialize()
@loger = Logger.new(STDOUT)
@loger.level = Logger::DEBUG
auth = YAML.load(File... | Ruby |
#! /usr/bin/ruby
#author newdongyuwei@gmail.com
if GC.respond_to?(:copy_on_write_friendly=)
GC.copy_on_write_friendly = true
end
$KCODE = 'UTF-8'#解决中文乱码问题
%w(rubygems fileutils sinatra sinatra/base net/http net/https json).each{|lib|require lib}
require 'ruby-growl'if RUBY_PLATFORM.downcase.include?("darwin")
class... | Ruby |
# $ext_path: This should be the path of where the ExtJS SDK is installed
# Generally this will be in a lib/extjs folder in your applications root
# <root>/lib/extjs
$ext_path = "../../"
# sass_path: the directory your Sass files are in. THIS file should also be in the Sass folder
# Generally this will be in a resource... | Ruby |
# include the utils rb file which has extra functionality for the ext theme
dir = File.dirname(__FILE__)
require File.join(dir, 'lib', 'utils.rb')
# register ext4 as a compass framework
Compass::Frameworks.register 'ext4', dir | Ruby |
# $ext_path: This should be the path of the Ext JS SDK relative to this file
$ext_path = "../../extjs"
# sass_path: the directory your Sass files are in. THIS file should also be in the Sass folder
# Generally this will be in a resources/sass folder
# <root>/resources/sass
sass_path = File.dirname(__FILE__)
# css_pat... | Ruby |
# Compass configurations
sass_path = File.dirname(__FILE__)
css_path = File.join(sass_path, "..", "css")
# Require any additional compass plugins here.
images_dir = File.join(sass_path, "..", "img")
output_style = :expanded
environment = :production | Ruby |
module ExtJS4
module SassExtensions
module Functions
module Utils
def parsebox(list, n)
assert_type n, :Number
if !n.int?
raise ArgumentError.new("List index #{n} must be an integer")
elsif n.to_i < 1
raise ArgumentError.new("List index #{n} must... | Ruby |
#
# Copyright 2011 Wade Alcorn wade@bindshell.net
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | Ruby |
#
# Copyright 2011 Wade Alcorn wade@bindshell.net
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | Ruby |
#
# Copyright 2011 Wade Alcorn wade@bindshell.net
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | Ruby |
#
# Copyright 2011 Wade Alcorn wade@bindshell.net
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | Ruby |
#
# Copyright 2011 Wade Alcorn wade@bindshell.net
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | Ruby |
# readline.rb -- GNU Readline module
# Copyright (C) 1997-2001 Shugo Maed
#
# Ruby translation by Park Heesob phasis@gmail.com
=begin
Copyright (c) 2009, Park Heesob
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditi... | Ruby |
#
# Copyright 2011 Wade Alcorn wade@bindshell.net
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | Ruby |
#
# Copyright 2011 Wade Alcorn wade@bindshell.net
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | Ruby |
#
# Copyright 2011 Wade Alcorn wade@bindshell.net
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | Ruby |
#
# Copyright 2011 Wade Alcorn wade@bindshell.net
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | Ruby |
# rbreadline.rb -- a general facility for reading lines of input
# with emacs style editing and completion.
#
# Inspired by GNU Readline, translation to Ruby
# Copyright (C) 2009 by Park Heesob phasis@gmail.com
#
=begin
Copyright (c) 2009, Park Heesob
All rights reserved.
Redistribution and use in source and bin... | Ruby |
#
# Copyright 2011 Wade Alcorn wade@bindshell.net
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | Ruby |
#
# Copyright 2011 Wade Alcorn wade@bindshell.net
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | Ruby |
#
# Copyright 2011 Wade Alcorn wade@bindshell.net
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | Ruby |
#
# Copyright 2011 Wade Alcorn wade@bindshell.net
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | Ruby |
#
# Copyright 2011 Wade Alcorn wade@bindshell.net
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | Ruby |
#
# Copyright 2011 Wade Alcorn wade@bindshell.net
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | Ruby |
#
# Copyright 2011 Wade Alcorn wade@bindshell.net
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | Ruby |
#
# Copyright 2011 Wade Alcorn wade@bindshell.net
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | Ruby |
#
# Copyright 2011 Wade Alcorn wade@bindshell.net
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | Ruby |
#
# Copyright 2011 Wade Alcorn wade@bindshell.net
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | Ruby |
#
# Copyright 2011 Wade Alcorn wade@bindshell.net
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | Ruby |
#
# Copyright 2011 Wade Alcorn wade@bindshell.net
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | Ruby |
#
# Copyright 2011 Wade Alcorn wade@bindshell.net
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | Ruby |
#
# Copyright 2011 Wade Alcorn wade@bindshell.net
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | Ruby |
#
# Copyright 2011 Wade Alcorn wade@bindshell.net
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | Ruby |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.