repo stringlengths 5 92 | file_url stringlengths 80 287 | file_path stringlengths 5 197 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:37:27 2026-01-04 17:58:21 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
refinery/refinerycms-news | https://github.com/refinery/refinerycms-news/blob/8e89de6c68077da150fb48dc5feb44c8f85a775c/db/migrate/20110817203704_add_image_id_to_news_items.rb | db/migrate/20110817203704_add_image_id_to_news_items.rb | class AddImageIdToNewsItems < ActiveRecord::Migration[4.2]
def up
unless ::Refinery::News::Item.column_names.map(&:to_sym).include?(:image_id)
add_column ::Refinery::News::Item.table_name, :image_id, :integer
end
end
def down
remove_column ::Refinery::News::Item.table_name, :image_id
end
en... | ruby | MIT | 8e89de6c68077da150fb48dc5feb44c8f85a775c | 2026-01-04T17:58:21.941874Z | false |
refinery/refinerycms-news | https://github.com/refinery/refinerycms-news/blob/8e89de6c68077da150fb48dc5feb44c8f85a775c/db/migrate/20110817203701_create_news_items.rb | db/migrate/20110817203701_create_news_items.rb | class CreateNewsItems < ActiveRecord::Migration[4.2]
def up
create_table ::Refinery::News::Item.table_name do |t|
t.string :title
t.text :body
t.datetime :publish_date
t.timestamps
end
add_index ::Refinery::News::Item.table_name, :id
end
def down
::Refinery::UserPlugin.... | ruby | MIT | 8e89de6c68077da150fb48dc5feb44c8f85a775c | 2026-01-04T17:58:21.941874Z | false |
refinery/refinerycms-news | https://github.com/refinery/refinerycms-news/blob/8e89de6c68077da150fb48dc5feb44c8f85a775c/db/migrate/20110817203706_remove_image_id_and_external_url_from_news.rb | db/migrate/20110817203706_remove_image_id_and_external_url_from_news.rb | class RemoveImageIdAndExternalUrlFromNews < ActiveRecord::Migration[4.2]
def up
if ::Refinery::News::Item.column_names.map(&:to_sym).include?(:external_url)
remove_column ::Refinery::News::Item.table_name, :external_url
end
if ::Refinery::News::Item.column_names.map(&:to_sym).include?(:image_id)
... | ruby | MIT | 8e89de6c68077da150fb48dc5feb44c8f85a775c | 2026-01-04T17:58:21.941874Z | false |
refinery/refinerycms-news | https://github.com/refinery/refinerycms-news/blob/8e89de6c68077da150fb48dc5feb44c8f85a775c/db/migrate/20131128000000_move_slug_to_news_item_translations.rb | db/migrate/20131128000000_move_slug_to_news_item_translations.rb | class MoveSlugToNewsItemTranslations < ActiveRecord::Migration[4.2]
def up
# Fix index problem if this is rolled back
remove_index Refinery::News::Item.translation_class.table_name, :refinery_news_item_id
add_index Refinery::News::Item.translation_class.table_name, :refinery_news_item_id, :name => :index_... | ruby | MIT | 8e89de6c68077da150fb48dc5feb44c8f85a775c | 2026-01-04T17:58:21.941874Z | false |
refinery/refinerycms-news | https://github.com/refinery/refinerycms-news/blob/8e89de6c68077da150fb48dc5feb44c8f85a775c/db/migrate/20120228150250_add_slug_to_news_items.rb | db/migrate/20120228150250_add_slug_to_news_items.rb | class AddSlugToNewsItems < ActiveRecord::Migration[4.2]
def change
add_column Refinery::News::Item.table_name, :slug, :string
end
end
| ruby | MIT | 8e89de6c68077da150fb48dc5feb44c8f85a775c | 2026-01-04T17:58:21.941874Z | false |
refinery/refinerycms-news | https://github.com/refinery/refinerycms-news/blob/8e89de6c68077da150fb48dc5feb44c8f85a775c/db/migrate/20110817203702_add_external_url_to_news_items.rb | db/migrate/20110817203702_add_external_url_to_news_items.rb | class AddExternalUrlToNewsItems < ActiveRecord::Migration[4.2]
def up
unless ::Refinery::News::Item.column_names.map(&:to_sym).include?(:external_url)
add_column ::Refinery::News::Item.table_name, :external_url, :string
end
end
def down
if ::Refinery::News::Item.column_names.map(&:to_sym).incl... | ruby | MIT | 8e89de6c68077da150fb48dc5feb44c8f85a775c | 2026-01-04T17:58:21.941874Z | false |
refinery/refinerycms-news | https://github.com/refinery/refinerycms-news/blob/8e89de6c68077da150fb48dc5feb44c8f85a775c/db/migrate/20120129230839_translate_source.rb | db/migrate/20120129230839_translate_source.rb | # This migration comes from refinery_news (originally 8)
class TranslateSource < ActiveRecord::Migration[4.2]
def up
unless Refinery::News::Item::Translation.column_names.map(&:to_sym).include?(:source)
add_column Refinery::News::Item::Translation.table_name, :source, :string
end
end
def down
... | ruby | MIT | 8e89de6c68077da150fb48dc5feb44c8f85a775c | 2026-01-04T17:58:21.941874Z | false |
refinery/refinerycms-news | https://github.com/refinery/refinerycms-news/blob/8e89de6c68077da150fb48dc5feb44c8f85a775c/db/migrate/20110817203703_translate_news_items.rb | db/migrate/20110817203703_translate_news_items.rb | class TranslateNewsItems < ActiveRecord::Migration[4.2]
def up
::Refinery::News::Item.reset_column_information
unless defined?(::Refinery::News::Item::Translation) && ::Refinery::News::Item::Translation.table_exists?
::Refinery::News::Item.create_translation_table!({
:title => :string,
... | ruby | MIT | 8e89de6c68077da150fb48dc5feb44c8f85a775c | 2026-01-04T17:58:21.941874Z | false |
refinery/refinerycms-news | https://github.com/refinery/refinerycms-news/blob/8e89de6c68077da150fb48dc5feb44c8f85a775c/db/migrate/20110817203705_add_expiration_date_to_news_items.rb | db/migrate/20110817203705_add_expiration_date_to_news_items.rb | class AddExpirationDateToNewsItems < ActiveRecord::Migration[4.2]
def up
unless ::Refinery::News::Item.column_names.map(&:to_sym).include?(:expiration_date)
add_column ::Refinery::News::Item.table_name, :expiration_date, :datetime
end
end
def down
if ::Refinery::News::Item.column_names.map(&:t... | ruby | MIT | 8e89de6c68077da150fb48dc5feb44c8f85a775c | 2026-01-04T17:58:21.941874Z | false |
refinery/refinerycms-news | https://github.com/refinery/refinerycms-news/blob/8e89de6c68077da150fb48dc5feb44c8f85a775c/db/migrate/20120129230838_add_source_to_news_items.rb | db/migrate/20120129230838_add_source_to_news_items.rb | # This migration comes from refinery_news (originally 7)
class AddSourceToNewsItems < ActiveRecord::Migration[4.2]
def up
unless Refinery::News::Item.column_names.map(&:to_sym).include?(:source)
add_column Refinery::News::Item.table_name, :source, :string
end
end
def down
if Refinery::News::It... | ruby | MIT | 8e89de6c68077da150fb48dc5feb44c8f85a775c | 2026-01-04T17:58:21.941874Z | false |
refinery/refinerycms-news | https://github.com/refinery/refinerycms-news/blob/8e89de6c68077da150fb48dc5feb44c8f85a775c/spec/spec_helper.rb | spec/spec_helper.rb | require 'rubygems'
# Configure Rails Environment
ENV["RAILS_ENV"] ||= 'test'
require File.expand_path("../dummy/config/environment", __FILE__)
require 'rspec/rails'
require 'capybara/rspec'
Rails.backtrace_cleaner.remove_silencers!
RSpec.configure do |config|
config.mock_with :rspec
config.filter_run :focus =>... | ruby | MIT | 8e89de6c68077da150fb48dc5feb44c8f85a775c | 2026-01-04T17:58:21.941874Z | false |
refinery/refinerycms-news | https://github.com/refinery/refinerycms-news/blob/8e89de6c68077da150fb48dc5feb44c8f85a775c/spec/helpers/refinery/news/items_helper_spec.rb | spec/helpers/refinery/news/items_helper_spec.rb | require 'spec_helper'
module Refinery
module News
describe ItemsHelper, :type => :helper do
describe '#news_item_archive_links' do
before do
2.times { FactoryBot.create(:news_item, :publish_date => Time.utc(2012, 05)) }
3.times { FactoryBot.create(:news_item, :publish_date => Ti... | ruby | MIT | 8e89de6c68077da150fb48dc5feb44c8f85a775c | 2026-01-04T17:58:21.941874Z | false |
refinery/refinerycms-news | https://github.com/refinery/refinerycms-news/blob/8e89de6c68077da150fb48dc5feb44c8f85a775c/spec/factories/news.rb | spec/factories/news.rb | FactoryBot.define do
factory :news_item, :class => Refinery::News::Item do
title "Refinery CMS News Item"
content "Some random text ..."
publish_date Time.now - 5.minutes
end
end
| ruby | MIT | 8e89de6c68077da150fb48dc5feb44c8f85a775c | 2026-01-04T17:58:21.941874Z | false |
refinery/refinerycms-news | https://github.com/refinery/refinerycms-news/blob/8e89de6c68077da150fb48dc5feb44c8f85a775c/spec/controllers/refinery/news/items_controller_spec.rb | spec/controllers/refinery/news/items_controller_spec.rb | require "spec_helper"
module Refinery
module News
describe ItemsController, :type => :controller do
let!(:item) { FactoryBot.create(:news_item) }
let(:refinery_page) { Refinery::Page.where(:link_url => "/news").first }
describe "#index" do
it "assigns items and page" do
get :... | ruby | MIT | 8e89de6c68077da150fb48dc5feb44c8f85a775c | 2026-01-04T17:58:21.941874Z | false |
refinery/refinerycms-news | https://github.com/refinery/refinerycms-news/blob/8e89de6c68077da150fb48dc5feb44c8f85a775c/spec/models/refinery/news/item_spec.rb | spec/models/refinery/news/item_spec.rb | require 'spec_helper'
module Refinery
module News
describe Item, :type => :model do
let(:news_item) { FactoryBot.create(:news_item) }
let(:publish_date) { Date.current }
describe "#archive" do
let(:publish_date) { Time.utc(2012,1,15) }
let(:future_date) { Time.utc(2012,2,15) }... | ruby | MIT | 8e89de6c68077da150fb48dc5feb44c8f85a775c | 2026-01-04T17:58:21.941874Z | false |
refinery/refinerycms-news | https://github.com/refinery/refinerycms-news/blob/8e89de6c68077da150fb48dc5feb44c8f85a775c/spec/features/news_archive.rb | spec/features/news_archive.rb | require "spec_helper"
describe "manage news items", :type => :feature do
before do
date = "dec/2011"
@time = Time.parse(date)
end
it "should display proper date" do
expect(@time).to eq("dec/2011")
end
end
| ruby | MIT | 8e89de6c68077da150fb48dc5feb44c8f85a775c | 2026-01-04T17:58:21.941874Z | false |
refinery/refinerycms-news | https://github.com/refinery/refinerycms-news/blob/8e89de6c68077da150fb48dc5feb44c8f85a775c/spec/features/manage_news_items_spec.rb | spec/features/manage_news_items_spec.rb | require "spec_helper"
describe "manage news items", :type => :feature do
refinery_login
context "when no news items" do
it "invites to create one" do
visit refinery.news_admin_items_path
expect(page).to have_content("There are no news items yet. Click \"Add News Item\" to add your first news item.... | ruby | MIT | 8e89de6c68077da150fb48dc5feb44c8f85a775c | 2026-01-04T17:58:21.941874Z | false |
refinery/refinerycms-news | https://github.com/refinery/refinerycms-news/blob/8e89de6c68077da150fb48dc5feb44c8f85a775c/spec/features/visit_news_items_spec.rb | spec/features/visit_news_items_spec.rb | require "spec_helper"
describe "visit news items", :type => :feature do
before do
FactoryBot.create(:page, :link_url => "/")
FactoryBot.create(:page, :link_url => "/news", :title => "News")
FactoryBot.create(:news_item, :title => "unpublished", :publish_date => 1.day.from_now)
@published_news_item = ... | ruby | MIT | 8e89de6c68077da150fb48dc5feb44c8f85a775c | 2026-01-04T17:58:21.941874Z | false |
refinery/refinerycms-news | https://github.com/refinery/refinerycms-news/blob/8e89de6c68077da150fb48dc5feb44c8f85a775c/lib/refinerycms-news.rb | lib/refinerycms-news.rb | require 'refinery/news'
| ruby | MIT | 8e89de6c68077da150fb48dc5feb44c8f85a775c | 2026-01-04T17:58:21.941874Z | false |
refinery/refinerycms-news | https://github.com/refinery/refinerycms-news/blob/8e89de6c68077da150fb48dc5feb44c8f85a775c/lib/generators/refinery/news_generator.rb | lib/generators/refinery/news_generator.rb | module Refinery
class NewsGenerator < Rails::Generators::Base
def rake_db
rake("refinery_news:install:migrations")
rake("refinery_settings:install:migrations")
end
def append_load_seed_data
create_file 'db/seeds.rb' unless File.exists?(File.join(destination_root, 'db', 'seeds.rb'))
... | ruby | MIT | 8e89de6c68077da150fb48dc5feb44c8f85a775c | 2026-01-04T17:58:21.941874Z | false |
refinery/refinerycms-news | https://github.com/refinery/refinerycms-news/blob/8e89de6c68077da150fb48dc5feb44c8f85a775c/lib/refinery/news.rb | lib/refinery/news.rb | require 'refinerycms-core'
require 'refinerycms-settings'
module Refinery
autoload :NewsGenerator, 'generators/refinery/news_generator'
module News
require 'refinery/news/engine'
class << self
attr_writer :root
def root
@root ||= Pathname.new(File.expand_path('../../../', __FILE__))
... | ruby | MIT | 8e89de6c68077da150fb48dc5feb44c8f85a775c | 2026-01-04T17:58:21.941874Z | false |
refinery/refinerycms-news | https://github.com/refinery/refinerycms-news/blob/8e89de6c68077da150fb48dc5feb44c8f85a775c/lib/refinery/news/engine.rb | lib/refinery/news/engine.rb | module Refinery
module News
class Engine < Rails::Engine
include Refinery::Engine
isolate_namespace Refinery::News
initializer "init plugin" do
Refinery::Plugin.register do |plugin|
plugin.pathname = root
plugin.name = "refinerycms_news"
plugin.menu_match ... | ruby | MIT | 8e89de6c68077da150fb48dc5feb44c8f85a775c | 2026-01-04T17:58:21.941874Z | false |
refinery/refinerycms-news | https://github.com/refinery/refinerycms-news/blob/8e89de6c68077da150fb48dc5feb44c8f85a775c/config/routes.rb | config/routes.rb | Refinery::Core::Engine.routes.draw do
namespace :news do
root :to => "items#index"
get 'archive/:year(/:month)', :to => 'items#archive', :as => 'items_archive', :constraints => { :year => /\d{4}/, :month => /\d{1,2}/ }
resources :items, :only => [:show, :index], :path => ''
end
namespace :news, :path... | ruby | MIT | 8e89de6c68077da150fb48dc5feb44c8f85a775c | 2026-01-04T17:58:21.941874Z | false |
apexatoll/cliptic | https://github.com/apexatoll/cliptic/blob/db087adb776515dc73af13d096e2ce9a3b8dabab/lib/cliptic.rb | lib/cliptic.rb | module Cliptic
require 'cgi'
require 'curb'
require 'curses'
require 'date'
require 'fileutils'
require 'json'
require 'sqlite3'
require 'time'
class Screen
extend Curses
def self.setup
init_curses
set_colors if has_colors?
redraw
end
def self.init_curses
init_s... | ruby | MIT | db087adb776515dc73af13d096e2ce9a3b8dabab | 2026-01-04T17:58:20.682312Z | false |
apexatoll/cliptic | https://github.com/apexatoll/cliptic/blob/db087adb776515dc73af13d096e2ce9a3b8dabab/lib/cliptic/main.rb | lib/cliptic/main.rb | module Cliptic
module Main
module Windows
class Top_Bar < Cliptic::Interface::Top_Bar
def initialize(date:Date.today)
super(date:date)
end
end
class Bottom_Bar < Cliptic::Interface::Bottom_Bar
def draw
super
add_str(x:-1, str:controls)
... | ruby | MIT | db087adb776515dc73af13d096e2ce9a3b8dabab | 2026-01-04T17:58:20.682312Z | false |
apexatoll/cliptic | https://github.com/apexatoll/cliptic/blob/db087adb776515dc73af13d096e2ce9a3b8dabab/lib/cliptic/version.rb | lib/cliptic/version.rb | module Cliptic
VERSION = "0.1.3"
end
| ruby | MIT | db087adb776515dc73af13d096e2ce9a3b8dabab | 2026-01-04T17:58:20.682312Z | false |
apexatoll/cliptic | https://github.com/apexatoll/cliptic/blob/db087adb776515dc73af13d096e2ce9a3b8dabab/lib/cliptic/interface.rb | lib/cliptic/interface.rb | module Cliptic
module Interface
class Top_Bar < Windows::Bar
attr_reader :date
def initialize(date:Date.today)
super(line:0)
@date = date
end
def draw
super
add_str(x:1, str:title, bold:true)
add_str(x:title.length+2, str:date.to_long)
end
... | ruby | MIT | db087adb776515dc73af13d096e2ce9a3b8dabab | 2026-01-04T17:58:20.682312Z | false |
apexatoll/cliptic | https://github.com/apexatoll/cliptic/blob/db087adb776515dc73af13d096e2ce9a3b8dabab/lib/cliptic/menus.rb | lib/cliptic/menus.rb | module Cliptic
module Menus
class Main < Interface::Menu
def opts
{
"Play Today" => ->{Cliptic::Main::Player::Game.new.play},
"Select Date"=> ->{Select_Date.new.choose_opt},
"This Week" => ->{This_Week.new.choose_opt},
"Recent Puzzles" => ->{Recent_Puzzles.ne... | ruby | MIT | db087adb776515dc73af13d096e2ce9a3b8dabab | 2026-01-04T17:58:20.682312Z | false |
apexatoll/cliptic | https://github.com/apexatoll/cliptic/blob/db087adb776515dc73af13d096e2ce9a3b8dabab/lib/cliptic/terminal.rb | lib/cliptic/terminal.rb | module Cliptic
module Terminal
class Command
def self.run
ARGV.size > 0 ?
parse_args : main_menu
rescue StandardError => e
Curses.close_screen
abort(e.message)
end
private
def self.setup
Config::Default.set
Screen.setup
... | ruby | MIT | db087adb776515dc73af13d096e2ce9a3b8dabab | 2026-01-04T17:58:20.682312Z | false |
apexatoll/cliptic | https://github.com/apexatoll/cliptic/blob/db087adb776515dc73af13d096e2ce9a3b8dabab/lib/cliptic/config.rb | lib/cliptic/config.rb | module Cliptic
module Config
Dir_Path = "#{Dir.home}/.config/cliptic"
File_Path = "#{Dir_Path}/cliptic.rc"
class Default
def self.set
$colors = colors
$config = make_bool(config)
end
private
def self.colors
{
box:8, grid:8, bar:16, logo_grid:8,
... | ruby | MIT | db087adb776515dc73af13d096e2ce9a3b8dabab | 2026-01-04T17:58:20.682312Z | false |
apexatoll/cliptic | https://github.com/apexatoll/cliptic/blob/db087adb776515dc73af13d096e2ce9a3b8dabab/lib/cliptic/windows.rb | lib/cliptic/windows.rb | module Cliptic
module Windows
class Window < Curses::Window
include Chars
attr_reader :y, :x, :line, :col
attr_reader :centered_y, :centered_x
def initialize(y:0, x:0, line:nil, col:nil)
@y, @x = wrap_dims(y:y, x:x)
@line,@col= center_pos(y:y,x:x,line:line,col:col)
... | ruby | MIT | db087adb776515dc73af13d096e2ce9a3b8dabab | 2026-01-04T17:58:20.682312Z | false |
apexatoll/cliptic | https://github.com/apexatoll/cliptic/blob/db087adb776515dc73af13d096e2ce9a3b8dabab/lib/cliptic/lib.rb | lib/cliptic/lib.rb | module Cliptic
class Pos
def self.mk(y,x)
{ y:y.to_i, x:x.to_i }
end
def self.wrap(val:, min:, max:)
val > max ? min : (val < min ? max : val)
end
def self.change_dir(dir)
dir == :a ? :d : :a
end
end
class Date < Date
def to_long
self.strftime('%A %b %-d %Y')
... | ruby | MIT | db087adb776515dc73af13d096e2ce9a3b8dabab | 2026-01-04T17:58:20.682312Z | false |
apexatoll/cliptic | https://github.com/apexatoll/cliptic/blob/db087adb776515dc73af13d096e2ce9a3b8dabab/lib/cliptic/database.rb | lib/cliptic/database.rb | module Cliptic
module Database
Dir_Path = "#{Dir.home}/.config/cliptic/db"
File_Path = "#{Dir_Path}/cliptic.db"
class SQL
attr_reader :db, :table
def initialize(table:)
make_db_dir
@table = table
@db = SQLite3::Database.open(File_Path)
db.results_as_hash = t... | ruby | MIT | db087adb776515dc73af13d096e2ce9a3b8dabab | 2026-01-04T17:58:20.682312Z | false |
zakird/wkhtmltopdf_binary_gem | https://github.com/zakird/wkhtmltopdf_binary_gem/blob/f54fc9988b9d4073ddf64e7463868e14ebc5bf5d/wkhtmltopdf-binary.rb | wkhtmltopdf-binary.rb | ruby | Apache-2.0 | f54fc9988b9d4073ddf64e7463868e14ebc5bf5d | 2026-01-04T17:14:44.364125Z | false | |
zakird/wkhtmltopdf_binary_gem | https://github.com/zakird/wkhtmltopdf_binary_gem/blob/f54fc9988b9d4073ddf64e7463868e14ebc5bf5d/test/test_with_docker.rb | test/test_with_docker.rb | require 'minitest/autorun'
def macos?
ENV['RUNNER_OS'] && ENV['RUNNER_OS'] == 'macOS'
end
def arm?
ENV['ARM']
end
class WithDockerTest < Minitest::Test
SETUP = begin
`docker-compose build --no-cache` if !macos?
end
def test_centos_6
test_on_x86 with: 'centos_6'
end
def test_ce... | ruby | Apache-2.0 | f54fc9988b9d4073ddf64e7463868e14ebc5bf5d | 2026-01-04T17:14:44.364125Z | false |
zakird/wkhtmltopdf_binary_gem | https://github.com/zakird/wkhtmltopdf_binary_gem/blob/f54fc9988b9d4073ddf64e7463868e14ebc5bf5d/bin/wkhtmltopdf-binary.rb | bin/wkhtmltopdf-binary.rb | ruby | Apache-2.0 | f54fc9988b9d4073ddf64e7463868e14ebc5bf5d | 2026-01-04T17:14:44.364125Z | false | |
quzhi1/ChineseHistoricalSource | https://github.com/quzhi1/ChineseHistoricalSource/blob/067256781c674aea0deecf00f4c64a9927ca6309/ruby/es_feeder.rb | ruby/es_feeder.rb | # typed: strict
# frozen_string_literal: true
require 'concurrent-ruby'
require 'elasticsearch'
require 'io/console'
require 'json'
require 'sorbet-runtime'
# Feed one history source
class EsFeeder
extend T::Sig
URL = 'http://localhost:9200'
sig { void }
def initialize
@client = T.let(
Elasticsear... | ruby | MIT | 067256781c674aea0deecf00f4c64a9927ca6309 | 2026-01-04T17:55:59.280757Z | false |
quzhi1/ChineseHistoricalSource | https://github.com/quzhi1/ChineseHistoricalSource/blob/067256781c674aea0deecf00f4c64a9927ca6309/ruby/html_parser.rb | ruby/html_parser.rb | # typed: strict
# frozen_string_literal: true
require 'json'
require 'pry'
module HtmlParser
extend T::Sig
sig do
params(
source_page: Nokogiri::HTML::Document,
count: Integer,
)
.returns(String)
end
def get_book_name(source_page, count)
chapter_name_xpath = '/html/body/div[3]/div... | ruby | MIT | 067256781c674aea0deecf00f4c64a9927ca6309 | 2026-01-04T17:55:59.280757Z | false |
quzhi1/ChineseHistoricalSource | https://github.com/quzhi1/ChineseHistoricalSource/blob/067256781c674aea0deecf00f4c64a9927ca6309/ruby/chapter_crawler.rb | ruby/chapter_crawler.rb | # typed: strict
# frozen_string_literal: true
require 'open-uri'
require 'nokogiri'
require 'powerpack'
require 'sorbet-runtime'
require_relative './html_parser.rb'
# Simple web crawler for this project
class ChapterCrawler
extend T::Sig
include HtmlParser
ROOT_URL = 'https://duguoxue.com/ershisishi'
sig { v... | ruby | MIT | 067256781c674aea0deecf00f4c64a9927ca6309 | 2026-01-04T17:55:59.280757Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_c_combo.rb | samples/hello/hello_c_combo.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_arrow.rb | samples/hello/hello_arrow.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_canvas_path.rb | samples/hello/hello_canvas_path.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_color_dialog.rb | samples/hello/hello_color_dialog.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_date_time.rb | samples/hello/hello_date_time.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_custom_widget.rb | samples/hello/hello_custom_widget.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_layout.rb | samples/hello/hello_layout.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_list_single_selection.rb | samples/hello/hello_list_single_selection.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_file_dialog.rb | samples/hello/hello_file_dialog.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_print_dialog.rb | samples/hello/hello_print_dialog.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_refined_table.rb | samples/hello/hello_refined_table.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_link.rb | samples/hello/hello_link.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_cool_bar.rb | samples/hello/hello_cool_bar.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_progress_bar.rb | samples/hello/hello_progress_bar.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_list_multi_selection.rb | samples/hello/hello_list_multi_selection.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_expand_bar.rb | samples/hello/hello_expand_bar.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_tool_bar.rb | samples/hello/hello_tool_bar.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_font_dialog.rb | samples/hello/hello_font_dialog.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_pop_up_context_menu.rb | samples/hello/hello_pop_up_context_menu.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_styled_text.rb | samples/hello/hello_styled_text.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_canvas.rb | samples/hello/hello_canvas.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_checkbox_group.rb | samples/hello/hello_checkbox_group.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_radio.rb | samples/hello/hello_radio.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_button.rb | samples/hello/hello_button.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_world.rb | samples/hello/hello_world.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_group.rb | samples/hello/hello_group.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_canvas_shape_listeners.rb | samples/hello/hello_canvas_shape_listeners.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_dialog.rb | samples/hello/hello_dialog.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_composite.rb | samples/hello/hello_composite.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_canvas_data_binding.rb | samples/hello/hello_canvas_data_binding.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_toggle.rb | samples/hello/hello_toggle.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_canvas_drag_and_drop.rb | samples/hello/hello_canvas_drag_and_drop.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_tree.rb | samples/hello/hello_tree.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_combo.rb | samples/hello/hello_combo.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_print.rb | samples/hello/hello_print.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_shape.rb | samples/hello/hello_shape.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_canvas_transform.rb | samples/hello/hello_canvas_transform.rb | require 'glimmer-dsl-swt'
include Glimmer
glimmer_logo = File.expand_path('../../icons/scaffold_app.png', __dir__)
shell {
text 'Hello, Canvas Transform!'
minimum_size (OS.windows? ? 347 : 330), (OS.windows? ? 372 : 352)
canvas {
background :white
image(glimmer_logo, 0, 0) {
transform {
... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_tab.rb | samples/hello/hello_tab.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_checkbox.rb | samples/hello/hello_checkbox.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_sash_form.rb | samples/hello/hello_sash_form.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_directory_dialog.rb | samples/hello/hello_directory_dialog.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_drag_and_drop.rb | samples/hello/hello_drag_and_drop.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_menu_bar.rb | samples/hello/hello_menu_bar.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_custom_shape.rb | samples/hello/hello_custom_shape.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_scale.rb | samples/hello/hello_scale.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_spinner.rb | samples/hello/hello_spinner.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_code_text.rb | samples/hello/hello_code_text.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_cursor.rb | samples/hello/hello_cursor.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_table.rb | samples/hello/hello_table.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_computed.rb | samples/hello/hello_computed.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_label.rb | samples/hello/hello_label.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_radio_group.rb | samples/hello/hello_radio_group.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_message_box.rb | samples/hello/hello_message_box.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_slider.rb | samples/hello/hello_slider.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_custom_shell.rb | samples/hello/hello_custom_shell.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_c_tab.rb | samples/hello/hello_c_tab.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_browser.rb | samples/hello/hello_browser.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_scrolled_composite.rb | samples/hello/hello_scrolled_composite.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_canvas_animation.rb | samples/hello/hello_canvas_animation.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_shell.rb | samples/hello/hello_shell.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
AndyObtiva/glimmer-dsl-swt | https://github.com/AndyObtiva/glimmer-dsl-swt/blob/449cf07ada1ec965ae2ac91715ccdf22488df4ca/samples/hello/hello_canvas_animation_multi.rb | samples/hello/hello_canvas_animation_multi.rb | # Copyright (c) 2007-2025 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# d... | ruby | MIT | 449cf07ada1ec965ae2ac91715ccdf22488df4ca | 2026-01-04T17:52:38.125591Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.