code
stringlengths
1
1.73M
language
stringclasses
1 value
#!/usr/bin/env ruby require 'neo' h=Neo::Hdf.new h.set_value "1","farming" h.set_value "2","sewing" h.set_value "3","bowling" h.set_value "party.1","baloons" h.set_value "party.2","noise makers" h.set_value "party.3","telling long\nstories" h.set_attr "party.1", "Drool", "True" h.set_attr "party.2", "Pink", "1" pr...
Ruby
#!/usr/bin/env ruby require 'neo' h=Neo::Hdf.new h.set_value "1","farming" h.set_value "2","sewing" h.set_value "3","bowling" h.set_value "party.1","baloons" h.set_value "party.2","noise makers" h.set_value "party.3","telling long\nstories" h.set_attr "party.1", "Drool", "True" h.set_attr "party.2", "Pink", "1" pr...
Ruby
#!/usr/bin/env ruby require 'mkmf' # dir_config("hdf","../../..","../../../libs") dir_config("hdf") if have_header("ClearSilver.h") && have_library("neo_utl","hdf_init") && have_library("neo_cs","cs_init") create_makefile("hdf") end
Ruby
#!/usr/bin/env ruby require 'mkmf' # dir_config("hdf","../../..","../../../libs") dir_config("hdf") if have_header("ClearSilver.h") && have_library("neo_utl","hdf_init") && have_library("neo_cs","cs_init") create_makefile("hdf") end
Ruby
# # This file is automatically generated. DO NOT MODIFY! # # install.rb # # Copyright (c) 2000-2002 Minero Aoki <aamine@loveruby.net> # # This program is free software. # You can distribute/modify this program under the terms of # the GNU Lesser General Public License version 2. # ### begin compat.rb unless E...
Ruby
require 'hdf' module Clearsilver class Hdf < Neo::Hdf def initialize super @level=0 @cpos="" @position=[] end attr_reader :position, :cpos def push name @position.push(@cpos) @cpos+=name+"." if block_given? yield @cpos=@position.pop end e...
Ruby
#!/usr/bin/env ruby require 'neo' h=Neo::Hdf.new h.set_value "1","farming" h.set_value "2","sewing" h.set_value "3","bowling" h.set_value "party.1","baloons" h.set_value "party.2","noise makers" h.set_value "party.3","telling long\nstories" h.set_attr "party.1", "Drool", "True" h.set_attr "party.2", "Pink", "1" pr...
Ruby
#!/usr/bin/env ruby require 'neo' h=Neo::Hdf.new h.set_value "1","farming" h.set_value "2","sewing" h.set_value "3","bowling" h.set_value "party.1","baloons" h.set_value "party.2","noise makers" h.set_value "party.3","telling long\nstories" h.set_attr "party.1", "Drool", "True" h.set_attr "party.2", "Pink", "1" pr...
Ruby
#!/usr/bin/env ruby require 'mkmf' # dir_config("hdf","../../..","../../../libs") dir_config("hdf") if have_header("ClearSilver.h") && have_library("neo_utl","hdf_init") && have_library("neo_cs","cs_init") create_makefile("hdf") end
Ruby
#!/usr/bin/env ruby require 'mkmf' # dir_config("hdf","../../..","../../../libs") dir_config("hdf") if have_header("ClearSilver.h") && have_library("neo_utl","hdf_init") && have_library("neo_cs","cs_init") create_makefile("hdf") end
Ruby
# # This file is automatically generated. DO NOT MODIFY! # # install.rb # # Copyright (c) 2000-2002 Minero Aoki <aamine@loveruby.net> # # This program is free software. # You can distribute/modify this program under the terms of # the GNU Lesser General Public License version 2. # ### begin compat.rb unless E...
Ruby
require 'hdf' module Clearsilver class Hdf < Neo::Hdf def initialize super @level=0 @cpos="" @position=[] end attr_reader :position, :cpos def push name @position.push(@cpos) @cpos+=name+"." if block_given? yield @cpos=@position.pop end e...
Ruby
#!/usr/bin/env ruby require 'neo' h=Neo::Hdf.new h.set_value "1","farming" h.set_value "2","sewing" h.set_value "3","bowling" h.set_value "party.1","baloons" h.set_value "party.2","noise makers" h.set_value "party.3","telling long\nstories" h.set_attr "party.1", "Drool", "True" h.set_attr "party.2", "Pink", "1" pr...
Ruby
#!/usr/bin/env ruby require 'neo' h=Neo::Hdf.new h.set_value "1","farming" h.set_value "2","sewing" h.set_value "3","bowling" h.set_value "party.1","baloons" h.set_value "party.2","noise makers" h.set_value "party.3","telling long\nstories" h.set_attr "party.1", "Drool", "True" h.set_attr "party.2", "Pink", "1" pr...
Ruby
#!/usr/bin/env ruby require 'mkmf' # dir_config("hdf","../../..","../../../libs") dir_config("hdf") if have_header("ClearSilver.h") && have_library("neo_utl","hdf_init") && have_library("neo_cs","cs_init") create_makefile("hdf") end
Ruby
#!/usr/bin/env ruby require 'mkmf' # dir_config("hdf","../../..","../../../libs") dir_config("hdf") if have_header("ClearSilver.h") && have_library("neo_utl","hdf_init") && have_library("neo_cs","cs_init") create_makefile("hdf") end
Ruby
# # This file is automatically generated. DO NOT MODIFY! # # install.rb # # Copyright (c) 2000-2002 Minero Aoki <aamine@loveruby.net> # # This program is free software. # You can distribute/modify this program under the terms of # the GNU Lesser General Public License version 2. # ### begin compat.rb unless E...
Ruby
require 'hdf' module Clearsilver class Hdf < Neo::Hdf def initialize super @level=0 @cpos="" @position=[] end attr_reader :position, :cpos def push name @position.push(@cpos) @cpos+=name+"." if block_given? yield @cpos=@position.pop end e...
Ruby
#!/usr/bin/env ruby require 'neo' h=Neo::Hdf.new h.set_value "1","farming" h.set_value "2","sewing" h.set_value "3","bowling" h.set_value "party.1","baloons" h.set_value "party.2","noise makers" h.set_value "party.3","telling long\nstories" h.set_attr "party.1", "Drool", "True" h.set_attr "party.2", "Pink", "1" pr...
Ruby
#!/usr/bin/env ruby require 'neo' h=Neo::Hdf.new h.set_value "1","farming" h.set_value "2","sewing" h.set_value "3","bowling" h.set_value "party.1","baloons" h.set_value "party.2","noise makers" h.set_value "party.3","telling long\nstories" h.set_attr "party.1", "Drool", "True" h.set_attr "party.2", "Pink", "1" pr...
Ruby
#!/usr/bin/env ruby require 'mkmf' # dir_config("hdf","../../..","../../../libs") dir_config("hdf") have_library("z", "deflate") if have_header("ClearSilver.h") && have_library("neo_utl","hdf_init") && have_library("neo_cs","cs_init") && have_library("neo_cgi","cgi_register_strfuncs") create_makefile("hdf") end
Ruby
#!/usr/bin/env ruby require 'mkmf' # dir_config("hdf","../../..","../../../libs") dir_config("hdf") have_library("z", "deflate") if have_header("ClearSilver.h") && have_library("neo_utl","hdf_init") && have_library("neo_cs","cs_init") && have_library("neo_cgi","cgi_register_strfuncs") create_makefile("hdf") end
Ruby
# # This file is automatically generated. DO NOT MODIFY! # # install.rb # # Copyright (c) 2000-2002 Minero Aoki <aamine@loveruby.net> # # This program is free software. # You can distribute/modify this program under the terms of # the GNU Lesser General Public License version 2. # ### begin compat.rb unless E...
Ruby
require 'hdf' module Clearsilver class Hdf < Neo::Hdf def initialize super @level=0 @cpos="" @position=[] end attr_reader :position, :cpos def push name @position.push(@cpos) @cpos+=name+"." if block_given? yield @cpos=@position.pop end e...
Ruby
#!/usr/bin/env ruby require 'neo' h=Neo::Hdf.new h.set_value "1","farming" h.set_value "2","sewing" h.set_value "3","bowling" h.set_value "party.1","baloons" h.set_value "party.2","noise makers" h.set_value "party.3","telling long\nstories" h.set_attr "party.1", "Drool", "True" h.set_attr "party.2", "Pink", "1" pr...
Ruby
#!/usr/bin/env ruby require 'neo' h=Neo::Hdf.new h.set_value "1","farming" h.set_value "2","sewing" h.set_value "3","bowling" h.set_value "party.1","baloons" h.set_value "party.2","noise makers" h.set_value "party.3","telling long\nstories" h.set_attr "party.1", "Drool", "True" h.set_attr "party.2", "Pink", "1" pr...
Ruby
#!/usr/bin/env ruby require 'mkmf' # dir_config("hdf","../../..","../../../libs") dir_config("hdf") if have_header("ClearSilver.h") && have_library("neo_utl","hdf_init") && have_library("neo_cs","cs_init") create_makefile("hdf") end
Ruby
#!/usr/bin/env ruby require 'mkmf' # dir_config("hdf","../../..","../../../libs") dir_config("hdf") if have_header("ClearSilver.h") && have_library("neo_utl","hdf_init") && have_library("neo_cs","cs_init") create_makefile("hdf") end
Ruby
# # This file is automatically generated. DO NOT MODIFY! # # install.rb # # Copyright (c) 2000-2002 Minero Aoki <aamine@loveruby.net> # # This program is free software. # You can distribute/modify this program under the terms of # the GNU Lesser General Public License version 2. # ### begin compat.rb unless E...
Ruby
require 'hdf' module Clearsilver class Hdf < Neo::Hdf def initialize super @level=0 @cpos="" @position=[] end attr_reader :position, :cpos def push name @position.push(@cpos) @cpos+=name+"." if block_given? yield @cpos=@position.pop end e...
Ruby
#!/usr/bin/env ruby require 'neo' h=Neo::Hdf.new h.set_value "1","farming" h.set_value "2","sewing" h.set_value "3","bowling" h.set_value "party.1","baloons" h.set_value "party.2","noise makers" h.set_value "party.3","telling long\nstories" h.set_attr "party.1", "Drool", "True" h.set_attr "party.2", "Pink", "1" pr...
Ruby
#!/usr/bin/env ruby require 'neo' h=Neo::Hdf.new h.set_value "1","farming" h.set_value "2","sewing" h.set_value "3","bowling" h.set_value "party.1","baloons" h.set_value "party.2","noise makers" h.set_value "party.3","telling long\nstories" h.set_attr "party.1", "Drool", "True" h.set_attr "party.2", "Pink", "1" pr...
Ruby
#!/usr/bin/env ruby require 'mkmf' # dir_config("hdf","../../..","../../../libs") dir_config("hdf") if have_header("ClearSilver.h") && have_library("neo_utl","hdf_init") && have_library("neo_cs","cs_init") create_makefile("hdf") end
Ruby
#!/usr/bin/env ruby require 'mkmf' # dir_config("hdf","../../..","../../../libs") dir_config("hdf") if have_header("ClearSilver.h") && have_library("neo_utl","hdf_init") && have_library("neo_cs","cs_init") create_makefile("hdf") end
Ruby
# # This file is automatically generated. DO NOT MODIFY! # # install.rb # # Copyright (c) 2000-2002 Minero Aoki <aamine@loveruby.net> # # This program is free software. # You can distribute/modify this program under the terms of # the GNU Lesser General Public License version 2. # ### begin compat.rb unless E...
Ruby
require 'hdf' module Clearsilver class Hdf < Neo::Hdf def initialize super @level=0 @cpos="" @position=[] end attr_reader :position, :cpos def push name @position.push(@cpos) @cpos+=name+"." if block_given? yield @cpos=@position.pop end e...
Ruby
#!/usr/bin/env ruby require 'neo' h=Neo::Hdf.new h.set_value "1","farming" h.set_value "2","sewing" h.set_value "3","bowling" h.set_value "party.1","baloons" h.set_value "party.2","noise makers" h.set_value "party.3","telling long\nstories" h.set_attr "party.1", "Drool", "True" h.set_attr "party.2", "Pink", "1" pr...
Ruby
#!/usr/bin/env ruby require 'neo' h=Neo::Hdf.new h.set_value "1","farming" h.set_value "2","sewing" h.set_value "3","bowling" h.set_value "party.1","baloons" h.set_value "party.2","noise makers" h.set_value "party.3","telling long\nstories" h.set_attr "party.1", "Drool", "True" h.set_attr "party.2", "Pink", "1" pr...
Ruby
#!/usr/bin/env ruby require 'mkmf' # dir_config("hdf","../../..","../../../libs") dir_config("hdf") if have_header("ClearSilver.h") && have_library("neo_utl","hdf_init") && have_library("neo_cs","cs_init") create_makefile("hdf") end
Ruby
#!/usr/bin/env ruby require 'mkmf' # dir_config("hdf","../../..","../../../libs") dir_config("hdf") if have_header("ClearSilver.h") && have_library("neo_utl","hdf_init") && have_library("neo_cs","cs_init") create_makefile("hdf") end
Ruby
# # This file is automatically generated. DO NOT MODIFY! # # install.rb # # Copyright (c) 2000-2002 Minero Aoki <aamine@loveruby.net> # # This program is free software. # You can distribute/modify this program under the terms of # the GNU Lesser General Public License version 2. # ### begin compat.rb unless E...
Ruby
require 'hdf' module Clearsilver class Hdf < Neo::Hdf def initialize super @level=0 @cpos="" @position=[] end attr_reader :position, :cpos def push name @position.push(@cpos) @cpos+=name+"." if block_given? yield @cpos=@position.pop end e...
Ruby
#!/usr/bin/env ruby require 'neo' h=Neo::Hdf.new h.set_value "1","farming" h.set_value "2","sewing" h.set_value "3","bowling" h.set_value "party.1","baloons" h.set_value "party.2","noise makers" h.set_value "party.3","telling long\nstories" h.set_attr "party.1", "Drool", "True" h.set_attr "party.2", "Pink", "1" pr...
Ruby
#!/usr/bin/env ruby require 'neo' h=Neo::Hdf.new h.set_value "1","farming" h.set_value "2","sewing" h.set_value "3","bowling" h.set_value "party.1","baloons" h.set_value "party.2","noise makers" h.set_value "party.3","telling long\nstories" h.set_attr "party.1", "Drool", "True" h.set_attr "party.2", "Pink", "1" pr...
Ruby
#!/usr/bin/env ruby require 'mkmf' # dir_config("hdf","../../..","../../../libs") dir_config("hdf") if have_header("ClearSilver.h") && have_library("neo_utl","hdf_init") && have_library("neo_cs","cs_init") create_makefile("hdf") end
Ruby
#!/usr/bin/env ruby require 'mkmf' # dir_config("hdf","../../..","../../../libs") dir_config("hdf") if have_header("ClearSilver.h") && have_library("neo_utl","hdf_init") && have_library("neo_cs","cs_init") create_makefile("hdf") end
Ruby
# # This file is automatically generated. DO NOT MODIFY! # # install.rb # # Copyright (c) 2000-2002 Minero Aoki <aamine@loveruby.net> # # This program is free software. # You can distribute/modify this program under the terms of # the GNU Lesser General Public License version 2. # ### begin compat.rb unless E...
Ruby
require 'hdf' module Clearsilver class Hdf < Neo::Hdf def initialize super @level=0 @cpos="" @position=[] end attr_reader :position, :cpos def push name @position.push(@cpos) @cpos+=name+"." if block_given? yield @cpos=@position.pop end e...
Ruby
#!/usr/bin/env ruby require 'neo' h=Neo::Hdf.new h.set_value "1","farming" h.set_value "2","sewing" h.set_value "3","bowling" h.set_value "party.1","baloons" h.set_value "party.2","noise makers" h.set_value "party.3","telling long\nstories" h.set_attr "party.1", "Drool", "True" h.set_attr "party.2", "Pink", "1" pr...
Ruby
#!/usr/bin/env ruby require 'neo' h=Neo::Hdf.new h.set_value "1","farming" h.set_value "2","sewing" h.set_value "3","bowling" h.set_value "party.1","baloons" h.set_value "party.2","noise makers" h.set_value "party.3","telling long\nstories" h.set_attr "party.1", "Drool", "True" h.set_attr "party.2", "Pink", "1" pr...
Ruby
#!/usr/bin/env ruby require 'mkmf' # dir_config("hdf","../../..","../../../libs") dir_config("hdf") if have_header("ClearSilver.h") && have_library("neo_utl","hdf_init") && have_library("neo_cs","cs_init") create_makefile("hdf") end
Ruby
#!/usr/bin/env ruby require 'mkmf' # dir_config("hdf","../../..","../../../libs") dir_config("hdf") if have_header("ClearSilver.h") && have_library("neo_utl","hdf_init") && have_library("neo_cs","cs_init") create_makefile("hdf") end
Ruby
# # This file is automatically generated. DO NOT MODIFY! # # install.rb # # Copyright (c) 2000-2002 Minero Aoki <aamine@loveruby.net> # # This program is free software. # You can distribute/modify this program under the terms of # the GNU Lesser General Public License version 2. # ### begin compat.rb unless E...
Ruby
require 'hdf' module Clearsilver class Hdf < Neo::Hdf def initialize super @level=0 @cpos="" @position=[] end attr_reader :position, :cpos def push name @position.push(@cpos) @cpos+=name+"." if block_given? yield @cpos=@position.pop end e...
Ruby
#!/usr/bin/env ruby require 'neo' h=Neo::Hdf.new h.set_value "1","farming" h.set_value "2","sewing" h.set_value "3","bowling" h.set_value "party.1","baloons" h.set_value "party.2","noise makers" h.set_value "party.3","telling long\nstories" h.set_attr "party.1", "Drool", "True" h.set_attr "party.2", "Pink", "1" pr...
Ruby
#!/usr/bin/env ruby require 'neo' h=Neo::Hdf.new h.set_value "1","farming" h.set_value "2","sewing" h.set_value "3","bowling" h.set_value "party.1","baloons" h.set_value "party.2","noise makers" h.set_value "party.3","telling long\nstories" h.set_attr "party.1", "Drool", "True" h.set_attr "party.2", "Pink", "1" pr...
Ruby
#!/usr/bin/env ruby require 'mkmf' # dir_config("hdf","../../..","../../../libs") dir_config("hdf") if have_header("ClearSilver.h") && have_library("neo_utl","hdf_init") && have_library("neo_cs","cs_init") create_makefile("hdf") end
Ruby
#!/usr/bin/env ruby require 'mkmf' # dir_config("hdf","../../..","../../../libs") dir_config("hdf") if have_header("ClearSilver.h") && have_library("neo_utl","hdf_init") && have_library("neo_cs","cs_init") create_makefile("hdf") end
Ruby
# # This file is automatically generated. DO NOT MODIFY! # # install.rb # # Copyright (c) 2000-2002 Minero Aoki <aamine@loveruby.net> # # This program is free software. # You can distribute/modify this program under the terms of # the GNU Lesser General Public License version 2. # ### begin compat.rb unless E...
Ruby
require 'hdf' module Clearsilver class Hdf < Neo::Hdf def initialize super @level=0 @cpos="" @position=[] end attr_reader :position, :cpos def push name @position.push(@cpos) @cpos+=name+"." if block_given? yield @cpos=@position.pop end e...
Ruby
#!/usr/bin/env ruby require 'neo' h=Neo::Hdf.new h.set_value "1","farming" h.set_value "2","sewing" h.set_value "3","bowling" h.set_value "party.1","baloons" h.set_value "party.2","noise makers" h.set_value "party.3","telling long\nstories" h.set_attr "party.1", "Drool", "True" h.set_attr "party.2", "Pink", "1" pr...
Ruby
#!/usr/bin/env ruby require 'neo' h=Neo::Hdf.new h.set_value "1","farming" h.set_value "2","sewing" h.set_value "3","bowling" h.set_value "party.1","baloons" h.set_value "party.2","noise makers" h.set_value "party.3","telling long\nstories" h.set_attr "party.1", "Drool", "True" h.set_attr "party.2", "Pink", "1" pr...
Ruby
#!/usr/bin/env ruby require 'mkmf' # dir_config("hdf","../../..","../../../libs") dir_config("hdf") if have_header("ClearSilver.h") && have_library("neo_utl","hdf_init") && have_library("neo_cs","cs_init") create_makefile("hdf") end
Ruby
#!/usr/bin/env ruby require 'mkmf' # dir_config("hdf","../../..","../../../libs") dir_config("hdf") if have_header("ClearSilver.h") && have_library("neo_utl","hdf_init") && have_library("neo_cs","cs_init") create_makefile("hdf") end
Ruby
# # This file is automatically generated. DO NOT MODIFY! # # install.rb # # Copyright (c) 2000-2002 Minero Aoki <aamine@loveruby.net> # # This program is free software. # You can distribute/modify this program under the terms of # the GNU Lesser General Public License version 2. # ### begin compat.rb unless E...
Ruby
require 'hdf' module Clearsilver class Hdf < Neo::Hdf def initialize super @level=0 @cpos="" @position=[] end attr_reader :position, :cpos def push name @position.push(@cpos) @cpos+=name+"." if block_given? yield @cpos=@position.pop end e...
Ruby
#!/usr/bin/env ruby require 'neo' h=Neo::Hdf.new h.set_value "1","farming" h.set_value "2","sewing" h.set_value "3","bowling" h.set_value "party.1","baloons" h.set_value "party.2","noise makers" h.set_value "party.3","telling long\nstories" h.set_attr "party.1", "Drool", "True" h.set_attr "party.2", "Pink", "1" pr...
Ruby
#!/usr/bin/env ruby require 'neo' h=Neo::Hdf.new h.set_value "1","farming" h.set_value "2","sewing" h.set_value "3","bowling" h.set_value "party.1","baloons" h.set_value "party.2","noise makers" h.set_value "party.3","telling long\nstories" h.set_attr "party.1", "Drool", "True" h.set_attr "party.2", "Pink", "1" pr...
Ruby
#!/usr/bin/env ruby require 'mkmf' # dir_config("hdf","../../..","../../../libs") dir_config("hdf") have_library("z", "deflate") if have_header("ClearSilver.h") && have_library("streamhtmlparser", "htmlparser_new") && have_library("neo_utl","hdf_init") && have_library("neo_cs","cs_init") && have_library("neo_cgi","...
Ruby
#!/usr/bin/env ruby require 'mkmf' # dir_config("hdf","../../..","../../../libs") dir_config("hdf") have_library("z", "deflate") if have_header("ClearSilver.h") && have_library("streamhtmlparser", "htmlparser_new") && have_library("neo_utl","hdf_init") && have_library("neo_cs","cs_init") && have_library("neo_cgi","...
Ruby
# # This file is automatically generated. DO NOT MODIFY! # # install.rb # # Copyright (c) 2000-2002 Minero Aoki <aamine@loveruby.net> # # This program is free software. # You can distribute/modify this program under the terms of # the GNU Lesser General Public License version 2. # ### begin compat.rb unless E...
Ruby
require 'hdf' module Clearsilver class Hdf < Neo::Hdf def initialize super @level=0 @cpos="" @position=[] end attr_reader :position, :cpos def push name @position.push(@cpos) @cpos+=name+"." if block_given? yield @cpos=@position.pop end e...
Ruby
#!/usr/bin/env ruby require 'neo' h=Neo::Hdf.new h.set_value "1","farming" h.set_value "2","sewing" h.set_value "3","bowling" h.set_value "party.1","baloons" h.set_value "party.2","noise makers" h.set_value "party.3","telling long\nstories" h.set_attr "party.1", "Drool", "True" h.set_attr "party.2", "Pink", "1" pr...
Ruby
#!/usr/bin/env ruby require 'neo' h=Neo::Hdf.new h.set_value "1","farming" h.set_value "2","sewing" h.set_value "3","bowling" h.set_value "party.1","baloons" h.set_value "party.2","noise makers" h.set_value "party.3","telling long\nstories" h.set_attr "party.1", "Drool", "True" h.set_attr "party.2", "Pink", "1" pr...
Ruby
require 'client_date'
Ruby
require 'rake' require 'rake/testtask' require 'rake/rdoctask' desc 'Default: run unit tests.' task :default => :test desc 'Test the client_date plugin.' Rake::TestTask.new(:test) do |t| t.libs << 'lib' t.pattern = 'test/**/*_test.rb' t.verbose = true end desc 'Generate documentation for the client_date plugin...
Ruby
module ClientDate def format_date(date) return "" if date.nil? "<script>fd("+date_params(date)+");</script>" end def format_datetime(date) return "" if date.nil? "<script>fdt("+date_params(date)+");</script>" end def date_params(date) return "" if date.nil? text = date.year.to_s...
Ruby
require 'test/unit' require 'rubygems' require 'active_support' $:.unshift File.join(File.dirname(__FILE__), '../lib') RAILS_ROOT = '.' unless defined?(RAILS_ROOT)
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
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
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 'sinatra/activerecord/rake' require './main'
Ruby
require "readline" require "thrift/transport/thttpclient" require "thrift/protocol/binaryprotocol" require "thrift/struct" require "Evernote/EDAM/UserStore" require "Evernote/EDAM/UserStore_constants.rb" require "Evernote/EDAM/NoteStore" require "Evernote/EDAM/Limits_constants.rb" # # Configure these based on the API ...
Ruby
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not ...
Ruby
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not ...
Ruby
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not ...
Ruby
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not ...
Ruby
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not ...
Ruby
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not ...
Ruby
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not ...
Ruby
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not ...
Ruby
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not ...
Ruby
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not ...
Ruby
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not ...
Ruby
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not ...
Ruby
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not ...
Ruby
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not ...
Ruby
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not ...
Ruby
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
Ruby