commit
stringlengths
40
40
old_file
stringlengths
4
264
new_file
stringlengths
4
264
old_contents
stringlengths
0
4.24k
new_contents
stringlengths
1
5.44k
subject
stringlengths
14
778
message
stringlengths
15
9.92k
lang
stringclasses
277 values
license
stringclasses
13 values
repos
stringlengths
5
127k
019ce40e7eaecab332d1633cd8820796a4d34ed3
src/jennifer/migration/table_builder/base.cr
src/jennifer/migration/table_builder/base.cr
module Jennifer module Migration module TableBuilder abstract class Base # Base allowed types for migration DSL option values alias AllowedTypes = String | Int32 | Bool | Float32 | Float64 | JSON::Any | Nil # Allowed types for migration DSL + Symbol alias EAllowedTypes = Allo...
module Jennifer module Migration module TableBuilder abstract class Base # Base allowed types for migration DSL option values alias AllowedTypes = String | Int32 | Int64 | Bool | Float32 | Float64 | JSON::Any | Nil # Allowed types for migration DSL + Symbol alias EAllowedType...
Add Int64 to Jennifer::Migration::TableBuilder::Base::AllowedTypes alias
Add Int64 to Jennifer::Migration::TableBuilder::Base::AllowedTypes alias
Crystal
mit
imdrasil/jennifer.cr,imdrasil/jennifer.cr
ca8774df8c8baeb2c84c5396dc713f784795ccd8
spec/spec_helper.cr
spec/spec_helper.cr
require "spec" require "mocks" require "../src/active_record" require "../src/null_adapter" require "../src/criteria_helper" require "./fake_adapter" # Use this after next release of Crystal #Spec.before_each do # ActiveRecord::NullAdapter.reset #end # #Spec.after_each do # ActiveRecord::NullAdapter.reset #end # No...
require "spec" require "mocks" require "../src/active_record" require "../src/null_adapter" require "../src/criteria_helper" require "./fake_adapter" def _specs_reset ActiveRecord::NullAdapter.reset FakeAdapter._reset end Spec.before_each do _specs_reset end Spec.after_each do _specs_reset end class SameQue...
Update spec helper to use global before and after hooks
Update spec helper to use global before and after hooks
Crystal
mit
waterlink/active_record.cr
89ab37735444bda8ce05c2e15a0395bb8cdf2a66
src/discordcr/mappings.cr
src/discordcr/mappings.cr
require "json" module Discordcr module REST # A response to the Get Gateway REST API call. struct GatewayResponse JSON.mapping( url: String ) end end module Gateway struct MessageCreatePayload JSON.mapping( type: UInt8, content: String, id: Strin...
require "json" module Discordcr module REST # A response to the Get Gateway REST API call. struct GatewayResponse JSON.mapping( url: String ) end end module Gateway # TODO: Expand this struct ReadyPayload JSON.mapping( v: UInt8 ) end struct Me...
Define a very basic mapping for the READY payload
Define a very basic mapping for the READY payload
Crystal
mit
meew0/discordcr
51e88255ef9636d9c81ca927773f0e30ec481a73
src/caoutchouc.cr
src/caoutchouc.cr
require "./patches/**" require "./caoutchouc/**" module Caoutchouc class CLI include Shell def initialize(args) debug "Observing cluster at: #{args.inspect}" puts STDIN.tty? if args.size == 0 location = "http://localhost:9200" else location = args.first end ...
require "./patches/**" require "./caoutchouc/**" module Caoutchouc class CLI include Shell def initialize(args) debug "Observing cluster at: #{args.inspect}" if args.size == 0 location = "http://localhost:9200" else location = args.first end Caoutchouc::Elastics...
Remove debug message mistakenly committed in 14f84ae52
Remove debug message mistakenly committed in 14f84ae52
Crystal
mit
jbbarth/caoutchouc
37c93c1b2da3c91309820681203a2b6166de4e6d
spec/m3u8/playlist_spec.cr
spec/m3u8/playlist_spec.cr
require "./../spec_helper" describe M3U8::Playlist do context "when creating a playlist" do let(playlist) { M3U8::Playlist.new } it "inserts the header" do expect(playlist.to_s).to match(/#EXTM3U\n/) end it "accepts new segments" do playlist.add_segment("S01E01-1080-0001.ts", 9.003) ...
require "./../spec_helper" describe M3U8::Playlist do context "when creating a playlist" do let(playlist) { M3U8::Playlist.new } it "inserts the header" do expect(playlist.to_s).to match(/#EXTM3U\n/) end it "inserts an empty line between the header and rest" do expect(playlist.to_s.line...
Validate presence of line between the header and the rest (96948a8)
test: Validate presence of line between the header and the rest (96948a8)
Crystal
mit
marceloboeira/m3u8,marceloboeira/m3u8
ef8acaf60bcbfb254e5006eaf6e48edb49bc4b7f
src/discordcr/rest.cr
src/discordcr/rest.cr
require "http/client" require "openssl/ssl/context" require "./mappings" require "./version" module Discord module REST SSL_CONTEXT = OpenSSL::SSL::Context::Client.new USER_AGENT = "DiscordBot (https://github.com/meew0/discordcr, #{Discord::VERSION})" def request(endpoint_key : Symbol, method : String...
require "http/client" require "openssl/ssl/context" require "./mappings" require "./version" module Discord module REST SSL_CONTEXT = OpenSSL::SSL::Context::Client.new USER_AGENT = "DiscordBot (https://github.com/meew0/discordcr, #{Discord::VERSION})" def request(endpoint_key : Symbol, method : String...
Use direct string literals instead of constants for HTTP methods
Use direct string literals instead of constants for HTTP methods
Crystal
mit
meew0/discordcr
c57595390b01f9e8246e30b2b1b841114450e5ce
src/discordcr/mappings.cr
src/discordcr/mappings.cr
require "json" module Discord module SnowflakeConverter def self.from_json(parser : JSON::PullParser) : UInt64 str = parser.read_string_or_null str.not_nil!.to_u64 end def self.to_json(value : UInt64, io : IO) io.puts(value.to_s) end end module REST # A response to the Get...
require "json" module Discord module SnowflakeConverter def self.from_json(parser : JSON::PullParser) : UInt64 str = parser.read_string_or_null str.not_nil!.to_u64 end def self.to_json(value : UInt64, io : IO) io.puts(value.to_s) end end module REST # A response to the Get...
Move Gateway::MessageCreatePayload to simply Message
Move Gateway::MessageCreatePayload to simply Message The two are identical in format so there's no reason to use have duplication here.
Crystal
mit
meew0/discordcr
ee00f998010c57edb60a45c1c552bd0af33dc070
src/discordcr/client.cr
src/discordcr/client.cr
module Discordcr class Client def initialize(@token : String, @client_id : UInt64) end end end
module Discordcr class Client def initialize(@token : String, @client_id : UInt64) end def run end end end
Add a run method to Client
Add a run method to Client
Crystal
mit
meew0/discordcr
e11e9375accfd307b5bd339ab34956d0de7050db
spec/franklin/console_report_spec.cr
spec/franklin/console_report_spec.cr
require "../spec_helper" module Franklin class ConsoleReportLet property subject : ConsoleReport property result : String property availability_description : AvailabilityDescription property search_terms : String property item : Item def initialize(@search_terms = "crime and punishment") ...
require "../spec_helper" module Franklin describe ConsoleReport do subject { ConsoleReport.new(search_terms, collated_results) } let(:search_terms) { "crime and punishment" } let(:collated_results) { {item => [availability]} } let(:result) { subject.to_s(io).to_s } let(:io) { IO::Memory.new } ...
Revert "Expriment with a Let class to hold setup"
Revert "Expriment with a Let class to hold setup" This reverts commit 4470fd705897344b0b2781de54cae53f844ea386.
Crystal
mit
ylansegal/franklin.cr
9150abb3eebad46ef5951b2c29d0efbcdc7f2bed
src/discordcr/mappings.cr
src/discordcr/mappings.cr
require "json" module Discord module SnowflakeConverter def self.from_json(parser : JSON::PullParser) : UInt64 str = parser.read_string_or_null str.not_nil!.to_u64 end def self.to_json(value : UInt64, io : IO) io.puts(value.to_s) end end module REST # A response to the Get...
require "json" require "time/format" module Discord module SnowflakeConverter def self.from_json(parser : JSON::PullParser) : UInt64 str = parser.read_string_or_null str.not_nil!.to_u64 end def self.to_json(value : UInt64, io : IO) io.puts(value.to_s) end end module REST #...
Add some more fields to Message
Add some more fields to Message
Crystal
mit
meew0/discordcr
cea281599fd9fb314a6017287a41fb07ecfdd7a1
src/cartel.cr
src/cartel.cr
require "./cartel/*" require "http/server" module Cartel view_handler = ViewHandler.new(File.join(__DIR__, "views")) server = HTTP::Server.new(8080) do |request| case request.path when "/" HTTP::Response.ok "text/html", view_handler.load("index.html") else HTTP:...
require "./cartel/*" require "http/server" module Cartel view_handler = ViewHandler.new(File.join(__DIR__, "views")) server = HTTP::Server.new(8080) do |request| puts "[#{request.method}] #{request.path}" case request.path when "/" HTTP::Response.ok "text/html", view_handl...
Print requests to the console
Print requests to the console
Crystal
mit
maxdeviant/cartel
93d561c0a7cbcc2915a27f9f69e7442f939f646c
src/amethyst/support/controller_helpers.cr
src/amethyst/support/controller_helpers.cr
module ControllerHelpers private def html(body : String) @response.set(200, body) @response.header("Content-Type", "text/html") end private def text(body : String) @response.set(200, body) @response.header("Content-Type", "text/plain") end private def json(body : String) @response.set(20...
module ControllerHelpers private def html(body : String, status=200) @response.set(status, body) @response.header("Content-Type", "text/html") end private def text(body : String, status=200) @response.set(status, body) @response.header("Content-Type", "text/plain") end private def json(body ...
Add status to controller helpers
Add status to controller helpers
Crystal
mit
trapped/amethyst
e3a80cc7fd591ba8ee12e4f50bd75b075f78cd2e
src/scry/initialize.cr
src/scry/initialize.cr
require "./workspace" module Scry class Initialize private getter workspace : Workspace def initialize(params : InitializeParams, @msg_id : Int32) @workspace = Workspace.new( root_path: params.root_path, process_id: params.process_id, max_number_of_problems: 100 ) e...
require "./workspace" module Scry class Initialize private getter workspace : Workspace def initialize(params : InitializeParams, @msg_id : Int32) @workspace = Workspace.new( root_path: params.root_path, process_id: params.process_id, problems_limit: 100 ) ENV["CR...
Add current lib to CRYSTAL_PATH
Add current lib to CRYSTAL_PATH
Crystal
mit
crystal-lang-tools/scry
fe87bf1c73a9409a553b6f6b8fd1d551b749babb
crystal/play.cr
crystal/play.cr
require "./world" class Play # @@ makes this a private class variable @@World_Width = 150 @@World_Height = 40 def self.run world = World.new( width: @@World_Width, height: @@World_Height, ) puts world.render total_tick = 0 total_render = 0 while true tick_start =...
require "./world" class Play # @@ makes this a private class variable @@World_Width = 150 @@World_Height = 40 def self.run world = World.new( width: @@World_Width, height: @@World_Height, ) puts world.render total_tick = 0 total_render = 0 while true tick_start =...
Fix CrystalLang implementation on latest version
Fix CrystalLang implementation on latest version
Crystal
mit
KieranP/Game-Of-Life-Implementations,KieranP/Game-Of-Life-Implementations,KieranP/Game-Of-Life-Implementations,KieranP/Game-Of-Life-Implementations,KieranP/Game-Of-Life-Implementations,KieranP/Game-Of-Life-Implementations,KieranP/Game-Of-Life-Implementations,KieranP/Game-Of-Life-Implementations,KieranP/Game-Of-Life-Imp...
13f04f638b432bac400cf8f775685039dfc3c16c
src/discordcr/mappings.cr
src/discordcr/mappings.cr
require "json" module Discord module REST # A response to the Get Gateway REST API call. struct GatewayResponse JSON.mapping( url: String ) end end module Gateway # TODO: Expand this struct ReadyPayload JSON.mapping( v: UInt8 ) end struct Mess...
require "json" module Discord module SnowflakeConverter def self.from_json(parser : JSON::PullParser) : UInt64 end def self.to_json(value : String, io : IO) end end module REST # A response to the Get Gateway REST API call. struct GatewayResponse JSON.mapping( url: String ...
Create a converter to convert strings to and from snowflakes
Create a converter to convert strings to and from snowflakes
Crystal
mit
meew0/discordcr
33b114b294fa76fbc50cd1cc3f9c16f063946c8b
src/messenger-bot/graph_api.cr
src/messenger-bot/graph_api.cr
module Messenger::Bot # A wrapper for Facebook's Graph API class GraphAPI # Build an API instance with which you can send messages. # Pass *api_version* (current is 2.6) an *access_token*, which you need to # authenticate yourself to the Graph API def initialize(@api_version : String, @access_token ...
module Messenger::Bot # A wrapper for Facebook's Graph API class GraphAPI # Build an API instance with which you can send messages. # Pass *api_version* (current is 2.6) an *access_token*, which you need to # authenticate yourself to the Graph API def initialize(@api_version : String, @access_token ...
Handle message send exceptions, speculative deferred send
Handle message send exceptions, speculative deferred send
Crystal
mit
zmalltalker/crystal-messenger-bot
52575f3a400410732b12ac6010e6ad385a56f74f
src/toro/driver.cr
src/toro/driver.cr
module Toro def self.drive(router) Driver.new(router) end def self.drive(router, method, path) drive(router).call(method, path) end class Driver getter router : Toro::Router.class def initialize(@router) end def call(req : HTTP::Request) io = MemoryIO.new res = HTTP::S...
module Toro def self.drive(router) Driver.new(router) end def self.drive(router, method, path) drive(router).call(method, path) end class Driver getter router : Toro::Router.class def initialize(@router) end def call(req : HTTP::Request) io = IO::Memory.new res = HTTP:...
Use IO::Memory instead of MemoryIO
Use IO::Memory instead of MemoryIO
Crystal
mit
soveran/toro
48748555fba76cf3b7e79e5565fed47bff473ae5
src/forms/announcement_form.cr
src/forms/announcement_form.cr
class AnnouncementForm < Announcement::BaseForm allow title end
class AnnouncementForm < Announcement::BaseForm allow title def call validate_length title, min: 10 end private def validate_length(field, min) if (field.value || "").size < min field.add_error "is too short" end end end
Validate length of the title
Validate length of the title
Crystal
mit
paulcsmith/constable-crystal-workshop
e81d915ee8097bee790b3bd67013578310527018
spec/isot/parser/no_target_namespace_spec.cr
spec/isot/parser/no_target_namespace_spec.cr
require "../../spec_helper" describe Isot::Parser do context "with a WSDL defining xs:schema without targetNamespace" do xml = <<-XML <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://def.example.com"> <types> ...
require "../../spec_helper" describe Isot::Parser do context "with a WSDL defining xs:schema without targetNamespace" do # xml = <<-XML # <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" # xmlns:xs="http://www.w3.org/2001/XMLSchema" # targetNamespace="http://def.example.com"> # ...
Remove the spec for no target.
Remove the spec for no target.
Crystal
mit
Hamdiakoguz/isot
d3aafe6d2bf50531ddd28482f138736f64c4558b
spec/discordcr_spec.cr
spec/discordcr_spec.cr
require "./spec_helper" describe Discord do # TODO: Write tests it "works" do false.should eq(true) end end
require "./spec_helper" describe Discord do end
Remove the default test from the spec
Remove the default test from the spec
Crystal
mit
meew0/discordcr
6e9d4f3af04c662df1d9d47e5b7edd0aaf715810
src/discordcr/rest.cr
src/discordcr/rest.cr
require "http/client" require "openssl/ssl/context" require "./mappings" require "./version" module Discord module REST SSL_CONTEXT = OpenSSL::SSL::Context::Client.new USER_AGENT = "DiscordBot (discordcr - no URL yet, #{Discord::VERSION})" def request(endpoint_key : Symbol, method : String, url : Stri...
require "http/client" require "openssl/ssl/context" require "./mappings" require "./version" module Discord module REST SSL_CONTEXT = OpenSSL::SSL::Context::Client.new USER_AGENT = "DiscordBot (https://github.com/meew0/discordcr, #{Discord::VERSION})" def request(endpoint_key : Symbol, method : String...
Add a correct URL to the User-Agent
Add a correct URL to the User-Agent
Crystal
mit
meew0/discordcr
e9a457f7187a4d3c11b9b03191b9bca58dac9836
src/raven/interfaces/http.cr
src/raven/interfaces/http.cr
module Raven class Interface::HTTP < Interface property! url : String property! method : String any_json_property :data, :query_string, :cookies, :headers, :env def self.sentry_alias :request end end end
module Raven class Interface::HTTP < Interface property! url : String property! method : String property query_string : String? property cookies : String? any_json_property :env, :headers, :data def self.sentry_alias :request end end end
Change Interface::HTTP to match protocol spec
Change Interface::HTTP to match protocol spec
Crystal
mit
Sija/raven.cr
ec7c6ebbcc93c22b004fc0e1cb8c026ee6858301
src/raven/context.cr
src/raven/context.cr
module Raven class Context # FIXME # @[ThreadLocal] @@current : self? def self.current @@current ||= new end def self.clear! @@current = nil end class_getter os_context : AnyHash::JSON do { name: Raven.sys_command("uname -s"), version: ...
module Raven class Context # FIXME # @[ThreadLocal] @@current : self? def self.current @@current ||= new end def self.clear! @@current = nil end class_getter os_context : AnyHash::JSON do { name: Raven.sys_command("uname -s"), version: ...
Fix Regex matching Crystal version
Fix Regex matching Crystal version
Crystal
mit
Sija/raven.cr
550ce1de2a4c18b23cee724e2221db1a0da7f0db
src/command/suggest.cr
src/command/suggest.cr
module Command command "suggest", "suggest someone to contact" do |_args, repository| confirmed = Proc(String, Bool).new do |answer| answer == "Y" || answer.empty? end contacts = repository.all.sort suggested_contact = contacts.first last_contact = suggested_contact.last_contacted da...
module Command command "suggest", "suggest someone to contact" do |_args, repository| confirmed = Proc(String, Bool).new do |answer| answer == "Y" || answer.empty? end contacts = repository.all.sort suggested_contact = contacts.first last_contact = suggested_contact.last_contacted da...
Update contacted_at if message sent successfully
Update contacted_at if message sent successfully
Crystal
mit
anicholson/barnabas
44a328f1d2c355dc0ce0f774879de338c8dcdda3
src/discordcr/rest.cr
src/discordcr/rest.cr
require "http/client" module Discordcr module REST def request(endpoint_key : Symbol, method : String, url : String | URI, headers : HTTP::Headers | Nil, body : String | Nil) HTTP::Client.exec(method: method, url: url, headers: headers, body: body, tls: true) end end end
require "http/client" module Discordcr module REST def request(endpoint_key : Symbol, method : String, url : String | URI, headers : HTTP::Headers | Nil, body : String | Nil) headers["Authorization"] = @token HTTP::Client.exec(method: method, url: url, headers: headers, body: body, tls: true) end...
Add an Authorization header to the request method
Add an Authorization header to the request method
Crystal
mit
meew0/discordcr
c2b29d72b0587bd2335de6d8abf027c0d1498b41
src/amber/exceptions.cr
src/amber/exceptions.cr
module Amber module Exceptions class DuplicateRouteError < Exception def initialize(route : Route) super("Route: #{route.verb} #{route.resource} is duplicated.") end end class RouteNotFound < Exception def initialize(request) super("The request was not found.") end...
module Amber module Exceptions class DuplicateRouteError < Exception def initialize(route : Route) super("Route: #{route.verb} #{route.resource} is duplicated.") end end class RouteNotFound < Exception def initialize(request) super("The request was not found.") end...
Add Exceptions for param validations
Add Exceptions for param validations
Crystal
mit
marksiemers/amber,marksiemers/amber
4e550527b7a19a3c47905c8afe2c2ab3d5f37af2
src/storage/table_manager.cr
src/storage/table_manager.cr
require "file_utils" FileUtils.rm_rf "test_tables" FileUtils.mkdir_p "test_tables" module Storage module TableManager @@tables = {} of String => Table def self.find(name) if table = @@tables[name]? table else @@tables[name] = Table.create("test_tables/" + name) end end...
require "file_utils" FileUtils.mkdir_p "/tmp/rethinkdb-lite/test_tables" module Storage module TableManager @@tables = {} of String => Table def self.find(name) if table = @@tables[name]? table else @@tables[name] = Table.create("/tmp/rethinkdb-lite/test_tables/" + name) e...
Move temporary path to /tmp
Move temporary path to /tmp
Crystal
mit
lbguilherme/rethinkdb-lite
36d5a48724ed0ba7a819fe544c777f4f3d6b833b
src/discordcr/mappings.cr
src/discordcr/mappings.cr
require "json" module Discordcr module REST # A response to the Get Gateway REST API call. struct GatewayResponse JSON.mapping( url: String ) end end struct GatewayPacket JSON.mapping( op: UInt8, d: JSON::Any, s: UInt32 | Nil, t: String | Nil ) e...
require "json" module Discordcr module REST # A response to the Get Gateway REST API call. struct GatewayResponse JSON.mapping( url: String ) end end struct GatewayPacket JSON.mapping( op: UInt8, d: JSON::Any, s: UInt32 | Nil, t: String | Nil ) e...
Create a mapping for MESSAGE_CREATE events
Create a mapping for MESSAGE_CREATE events
Crystal
mit
meew0/discordcr
57c347f876f755c64a1f4873eb3c8a4655cb4c11
src/discordcr/mappings.cr
src/discordcr/mappings.cr
require "json" module Discordcr module REST # A response to the Get Gateway REST API call. struct GatewayResponse JSON.mapping( url: String ) end end module Gateway struct MessageCreatePayload JSON.mapping( type: UInt8, content: String, id: Strin...
require "json" module Discordcr module REST # A response to the Get Gateway REST API call. struct GatewayResponse JSON.mapping( url: String ) end end module Gateway struct MessageCreatePayload JSON.mapping( type: UInt8, content: String, id: Strin...
Define a mapping for the op10 payload
Define a mapping for the op10 payload
Crystal
mit
meew0/discordcr
bb8b990d73c6a381719504ef58178f5097d36c0f
src/discordcr/rest.cr
src/discordcr/rest.cr
require "http/client" require "openssl/ssl/context" require "./mappings" module Discordcr module REST SSL_CONTEXT = OpenSSL::SSL::Context::Client.new def request(endpoint_key : Symbol, method : String, url : String | URI, headers : HTTP::Headers | Nil, body : String | Nil) HTTP::Client.exec(method: m...
require "http/client" require "openssl/ssl/context" require "./mappings" module Discordcr module REST SSL_CONTEXT = OpenSSL::SSL::Context::Client.new def request(endpoint_key : Symbol, method : String, url : String | URI, headers : HTTP::Headers | Nil, body : String | Nil) HTTP::Client.exec(method: m...
Remove an unused debug call
Remove an unused debug call
Crystal
mit
meew0/discordcr
9e8a8da3dcdff4d4b280cce50b12236bbb728d2a
src/caoutchouc/shell/autocomplete.cr
src/caoutchouc/shell/autocomplete.cr
module Caoutchouc module Shell class Autocomplete getter :text, :position, :buffer def self.initialize_autocomplete! Readline.autocomplete do |text| new(text).complete end end def initialize(@text, @position = nil, @buffer = nil) @buffer ||= Readline.lin...
module Caoutchouc module Shell class Autocomplete getter :text, :position, :buffer def self.initialize_autocomplete! Readline.autocomplete do |text| new(text).complete end end def initialize(@text, @position = nil, @buffer = nil) @buffer ||= Readline.lin...
Repair autocompletion system broken with 3c18e1feb that was a bit too naive
Repair autocompletion system broken with 3c18e1feb that was a bit too naive We should try to autocomplete on command as long as current buffer contains only one word, and is the currently selected text...
Crystal
mit
jbbarth/caoutchouc
6b7a88bf54d2302a62eec5fb8ff8379ef30c328a
src/discordcr/client.cr
src/discordcr/client.cr
require "http/web_socket" require "json" require "./rest" module Discordcr class Client include REST def initialize(@token : String, @client_id : UInt64) end def run url = URI.parse(gateway.url) @websocket = websocket = HTTP::WebSocket.new( host: url.host.not_nil!, path...
require "http/web_socket" require "json" require "./rest" module Discordcr class Client include REST def initialize(@token : String, @client_id : UInt64) end def run url = URI.parse(gateway.url) @websocket = websocket = HTTP::WebSocket.new( host: url.host.not_nil!, path...
Add a handler for dispatch events
Add a handler for dispatch events
Crystal
mit
meew0/discordcr
e68c2dcf311b004d4a342ec166bed86aa88215b3
src/BenningtonWebsite.cr
src/BenningtonWebsite.cr
require "./BenningtonWebsite/*" require "kemal" get "/" do if Time.now.month === (5..10) next_term = "Fall#{Time.now.year}" else next_term = "Spring#{Time.now.year + 1}" end curriculum_link = "http://curriculum.bennington.edu/#{next_term}/" render "src/views/index.html.ecr" end get "/map.pdf" do |env| # TOD...
require "./BenningtonWebsite/*" require "kemal" get "/" do if (5..10).includes? Time.now.month next_term = "Fall#{Time.now.year}" else next_term = "Spring#{Time.now.year + 1}" end curriculum_link = "http://curriculum.bennington.edu/#{next_term}/" render "src/views/index.html.ecr" end get "/map.pdf" do |env| ...
Fix bug where date curriculum dates were incorrect
Fix bug where date curriculum dates were incorrect
Crystal
mit
MatthewBennington/BenningtonWebsite
11e9dd8f580e6d2ce4a7b8cb9c955e4241cdbf6e
spec/franklin/item_spec.cr
spec/franklin/item_spec.cr
require "../spec_helper" require "random/secure" module Franklin describe Item do subject { Item.new(id, title, author, format) } let(:id) { Random::Secure.hex } let(:title) { "Ender's Game" } let(:author) { "Orson Scott Card" } let(:format) { "eBook" } it "has an id" do expect(subject...
require "../spec_helper" require "random/secure" module Franklin describe Item do title = "Ender's Game" author = "Orson Scott Card" format = "eBook" it "has an id" do id = Random::Secure.hex subject = Item.new(id, title, author, format) subject.id.should eq(id) end it "h...
Use variables instead of let and subject
Use variables instead of let and subject
Crystal
mit
ylansegal/franklin.cr
89cfca6094aec8f22e9f1374a1e349ee222286cc
src/view.cr
src/view.cr
macro generate_abstract_def(signature) def {{signature.id}} fail "Abstract method \#{{signature.id}} called on #{self.class}" end end module Generate struct View property config property logger generate_abstract_def render generate_abstract_def log def initialize(@config, @logger) e...
module Generate struct View property config property logger abstract def render abstract def log def initialize(@config, @logger) end def render_with_log log render end end struct FileView < View abstract def path abstract def to_s(io) abstract def full_...
Use abstract methods from language
Use abstract methods from language
Crystal
mit
generate-cr/generate
888aee1688508fdde421c49919e699963241dfb7
src/discordcr/mappings.cr
src/discordcr/mappings.cr
require "json" module Discordcr module REST # A response to the Get Gateway REST API call. struct GatewayResponse JSON.mapping( url: String ) end end struct GatewayPacket JSON.mapping( op: UInt8, d: Nil, s: UInt32 | Nil, t: String | Nil ) end end...
require "json" module Discordcr module REST # A response to the Get Gateway REST API call. struct GatewayResponse JSON.mapping( url: String ) end end struct GatewayPacket JSON.mapping( op: UInt8, d: JSON::Any, s: UInt32 | Nil, t: String | Nil ) e...
Use JSON::Any for the payload type in GatewayPacket
Use JSON::Any for the payload type in GatewayPacket
Crystal
mit
meew0/discordcr
1827a25e4f0b2b4adb8f34e88b4b130d89ce5358
src/discordcr/client.cr
src/discordcr/client.cr
require "http/websocket" require "./rest" module Discordcr class Client include REST def initialize(@token : String, @client_id : UInt64) end def run url = gateway.url @websocket = HTTP::WebSocket.new(URI.parse(url)) end end end
require "http/websocket" require "./rest" module Discordcr class Client include REST def initialize(@token : String, @client_id : UInt64) end def run url = gateway.url @websocket = HTTP::WebSocket.new(URI.parse(url)) end private def on_message(String) end end end
Define a handler method for gateway messages
Define a handler method for gateway messages
Crystal
mit
meew0/discordcr
a0ac6e52bcb0fd65605019905dd06fdb3e6582fa
src/web_app_skeleton/src/serializers/error_serializer.cr
src/web_app_skeleton/src/serializers/error_serializer.cr
# This is the default error serializer generated by Lucky. # Feel free to customize it in any way you like. class ErrorSerializer < BaseSerializer def initialize( @message : String, @details : String? = nil, @param : String? = nil # If there was a problem with a specific param ) end def render ...
# This is the default error serializer generated by Lucky. # Feel free to customize it in any way you like. class ErrorSerializer < BaseSerializer def initialize( @message : String, @details : String? = nil, @param : String? = nil # so you can track which param (if any) caused the problem ) end def...
Clarify param arg in ErrorSerializer
Clarify param arg in ErrorSerializer
Crystal
mit
luckyframework/cli,luckyframework/cli,luckyframework/cli
15e9dd89545a0cbfa9f96726c178fc03a4251921
src/discordcr/rest.cr
src/discordcr/rest.cr
require "http/client" module Discordcr module REST def request(endpoint_key : Symbol, method : String, url : String | URI, headers : HTTP::Headers | Nil, body : String | Nil) headers["Authorization"] = @token HTTP::Client.exec(method: method, url: url, headers: headers, body: body, tls: true) end...
require "http/client" require "./mappings" module Discordcr module REST def request(endpoint_key : Symbol, method : String, url : String | URI, headers : HTTP::Headers | Nil, body : String | Nil) headers["Authorization"] = @token HTTP::Client.exec(method: method, url: url, headers: headers, body: bo...
Implement the Get Gateway API call
Implement the Get Gateway API call
Crystal
mit
meew0/discordcr
880d7409e06f5aa694cc5321c32a95b8a67c90b2
src/discordcr/mappings/rest.cr
src/discordcr/mappings/rest.cr
require "./converters" module Discord module REST # A response to the Get Gateway REST API call. struct GatewayResponse JSON.mapping( url: String ) end end end
require "./converters" module Discord module REST # A response to the Get Gateway REST API call. struct GatewayResponse JSON.mapping( url: String ) end # A response to the Get Guild Prune Count REST API call. struct PruneCountResponse JSON.mapping( pruned: UInt3...
Add a mapping for the response of the prune count endpoint
Add a mapping for the response of the prune count endpoint
Crystal
mit
meew0/discordcr
584b4aeded9f25fb229f82167e46d28a5784fea0
src/jennifer/model/optimistic_locking.cr
src/jennifer/model/optimistic_locking.cr
module Jennifer::Model module OptimisticLocking macro with_optimistic_lock(locking_column = lock_version) def self.locking_column {{locking_column.stringify}} end def locking_column self.class.locking_column end {% if locking_column != "lock_version" %} def ...
module Jennifer::Model module OptimisticLocking # Add optimistic locking to model # By default, it uses column `lock_version : Int32` as lock # The column used as lock must be type `Int32` or `Int64` and the default value of 0 # You can use a different column name as lock by passing the column name to...
Add documentation for the macro
Add documentation for the macro
Crystal
mit
imdrasil/jennifer.cr,imdrasil/jennifer.cr
979cbfaba0e3e9673fd6bac0dcc8d83d258f43dd
src/discordcr/rest.cr
src/discordcr/rest.cr
require "http/client" require "./mappings" module Discordcr module REST def request(endpoint_key : Symbol, method : String, url : String | URI, headers : HTTP::Headers | Nil, body : String | Nil) headers["Authorization"] = @token HTTP::Client.exec(method: method, url: url, headers: headers, body: bo...
require "http/client" require "openssl/ssl/context" require "./mappings" module Discordcr module REST SSL_CONTEXT = OpenSSL::SSL::Context::Client.new def request(endpoint_key : Symbol, method : String, url : String | URI, headers : HTTP::Headers | Nil, body : String | Nil) HTTP::Client.exec(method: m...
Use a proper SSL context instead of `true`
Use a proper SSL context instead of `true`
Crystal
mit
meew0/discordcr
6fd2c6ef0ef41447bb7ac8ec1607f97d702bd787
src/kemal-mysql.cr
src/kemal-mysql.cr
require "mysql" require "pool/connection" require "http" macro conn env.mysql.connection end macro release env.mysql.release end def mysql_connect(options, capacity = 25, timeout = 0.1) Kemal.config.add_handler Kemal::MySQL.new(options, capacity, timeout) end class HTTP::Server::Context @mysql : ConnectionP...
require "mysql" require "pool/connection" require "http" macro conn env.mysql.connection end macro release env.mysql.release end def mysql_connect(options, capacity = 25, timeout = 0.1) Kemal.config.add_handler Kemal::MySQL.new(options, capacity, timeout) end class HTTP::Server::Context @mysql : ConnectionP...
Fix ConnectionPool(T) error on assigment
Fix ConnectionPool(T) error on assigment
Crystal
mit
sdogruyol/kemal-mysql
db5f2d8033c843b16941d9eab025cf856ed8fa1a
src/discordcr/client.cr
src/discordcr/client.cr
require "./rest" module Discordcr class Client include REST def initialize(@token : String, @client_id : UInt64) end def run url = gateway.url end end end
require "http/websocket" require "./rest" module Discordcr class Client include REST def initialize(@token : String, @client_id : UInt64) end def run url = gateway.url @websocket = HTTP::WebSocket.new(URI.parse(url)) end end end
Create a WebSocket from the URL
Create a WebSocket from the URL
Crystal
mit
meew0/discordcr
4be36a0cd867a24fc90af85a9e64f2edad0a3393
src/storage/table_manager.cr
src/storage/table_manager.cr
system "rm -rf test_tables" system "mkdir test_tables" module Storage module TableManager @@tables = {} of String => Table def self.find(name) if table = @@tables[name]? table else @@tables[name] = Table.create("test_tables/" + name) end end end end at_exit do syst...
require "file_utils" FileUtils.rm_rf "test_tables" FileUtils.mkdir_p "test_tables" module Storage module TableManager @@tables = {} of String => Table def self.find(name) if table = @@tables[name]? table else @@tables[name] = Table.create("test_tables/" + name) end end...
Move from system to file_utils
Move from system to file_utils
Crystal
mit
lbguilherme/rethinkdb-lite
35a9c71f296b5cb4c39797f3757183871ce69370
src/amber/environment.cr
src/amber/environment.cr
require "./environment/**" require "./support/file_encryptor" module Amber::Environment alias EnvType = String | Symbol macro included AMBER_ENV = "AMBER_ENV" CURRENT_ENVIRONMENT = ENV[AMBER_ENV] ||= "development" class_property environment_path : String = "./config/environments/" @@settings : Se...
require "./environment/**" require "./support/file_encryptor" module Amber::Environment alias EnvType = String | Symbol macro included AMBER_ENV = "AMBER_ENV" class_property environment_path : String = "./config/environments/" @@settings : Settings? def self.settings @@settings ||= Loader....
Move Current Environment to a method
[Environment] Move Current Environment to a method Currently environment is a constant and when no environment is set it defaults to development. After the environment is set and the constant is loaded the environment would not change. - Makes current_environment a method instead of a constant - Does not defau...
Crystal
mit
amberframework/amber,amberframework/amber,amberframework/amber,Amber-Crystal/amber,Amber-Crystal/amber
9120adf70f7df0f441ba3eed2ce09e2075cec07e
src/tools.cr
src/tools.cr
# ####################################################################### # # Author: Brian Hood # Name: Crystal bindings for MonetDB # Codename: Dagobert I # Description: # Tools library # # # ####################################################################### require "progress" struct Number def times_with_...
# ####################################################################### # # Author: Brian Hood # Name: Crystal bindings for MonetDB # Codename: Dagobert I # Description: # Tools library # # # ####################################################################### require "progress" struct Number def times_with_...
Fix for upto / downto
Fix for upto / downto
Crystal
mit
puppetpies/crystal-monetdb-libmapi
77ab980ee2f21d08181ba99caf13696560510128
src/macro/base_mock.cr
src/macro/base_mock.cr
module Mocks module BaseMock macro mock(method) {% method_name = method.name.stringify %} {% method_name = "self.#{method_name.id}" if method.receiver.stringify == "self" %} {% method_name = method_name.id %} def {{method_name}}({{method.args.argify}}) %method = ::Mocks::Registry....
module Mocks module BaseMock macro mock(method) {% method_name = method.name.stringify %} {% method_name = "self.#{method_name.id}" if method.receiver.stringify == "self" %} {% method_name = method_name.id %} def {{method_name}}({{method.args.argify}}) %mock_name = @@__mocks_name ...
Add guard statement for @@__mocks_name being nil
Add guard statement for @@__mocks_name being nil
Crystal
mit
waterlink/mocks.cr
75a46918c7f8218bb6f907c4330d3abeb7092d80
src/discordcr/cache.cr
src/discordcr/cache.cr
require "./mappings/*" module Discord class Cache def initialize(@client : Client) @users = Hash(UInt64, User).new @channels = Hash(UInt64, Channel).new end def resolve_user(id : UInt64) : User @users.fetch(id) { @users[id] = @client.get_user(id) } end def resolve_channel(id :...
require "./mappings/*" module Discord class Cache def initialize(@client : Client) @users = Hash(UInt64, User).new @channels = Hash(UInt64, Channel).new @guilds = Hash(UInt64, Guild).new end def resolve_user(id : UInt64) : User @users.fetch(id) { @users[id] = @client.get_user(id)...
Add support for guild caching
Add support for guild caching
Crystal
mit
meew0/discordcr
03b0afbc12c47fa16807e3c59c910675d69608b1
src/lucky.cr
src/lucky.cr
require "colorize" require "./lucky_cli" require "./generators/*" require "./dev" require "./ensure_process_runner_installed" include LuckyCli::TextHelpers args = ARGV.join(" ") if ARGV.first? == "dev" LuckyCli::Dev.new.call elsif ARGV.first? == "ensure_process_runner_installed" LuckyCli::EnsureProcessRunnerInst...
require "colorize" require "./lucky_cli" require "./generators/*" require "./dev" require "./ensure_process_runner_installed" include LuckyCli::TextHelpers args = ARGV.join(" ") if ARGV.first? == "dev" LuckyCli::Dev.new.call elsif ARGV.first? == "ensure_process_runner_installed" LuckyCli::EnsureProcessRunnerInst...
Exit with the exit status of the task that ran
Exit with the exit status of the task that ran Closes #156
Crystal
mit
luckyframework/cli,luckyframework/cli,luckyframework/cli
c785eced9dd160a8007ab7700b3b0578e8600bc8
src/discordcr/client.cr
src/discordcr/client.cr
require "http/web_socket" require "./rest" module Discordcr class Client include REST def initialize(@token : String, @client_id : UInt64) end def run url = gateway.url url += "?v=6&encoding=json" @websocket = websocket = HTTP::WebSocket.new(URI.parse(url)) websocket.on_mes...
require "http/web_socket" require "./rest" module Discordcr class Client include REST def initialize(@token : String, @client_id : UInt64) end def run url = URI.parse(gateway.url) @websocket = websocket = HTTP::WebSocket.new( host: url.host.not_nil!, path: "#{url.path}/...
Use the manual initializer for WebSocket
Use the manual initializer for WebSocket Otherwise the query string would get omitted and we would land on gateway v3. (Apparently that still works...)
Crystal
mit
meew0/discordcr
3ea018d352b16589047298824c4f65e2198e36d0
src/web_app_skeleton/spec/spec_helper.cr
src/web_app_skeleton/spec/spec_helper.cr
ENV["LUCKY_ENV"] = "test" require "spec" require "../src/app" require "./support/**"
ENV["LUCKY_ENV"] = "test" require "spec" require "../src/app" require "./support/**" Spec.after_each do LuckyRecord::Repo.truncate end
Clear db after each test
Clear db after each test Closes #103
Crystal
mit
luckyframework/cli,luckyframework/cli,luckyframework/cli
1cb3e55321d57e275b93f1e0fb37f4db68dbc2ff
src/discordcr/mappings/vws.cr
src/discordcr/mappings/vws.cr
require "./converters" module Discord # :nodoc: module VWS struct IdentifyPacket def initialize(server_id, user_id, session_id, token) @op = Discord::VoiceClient::OP_IDENTIFY @d = IdentifyPayload.new(server_id, user_id, session_id, token) end JSON.mapping( op: Int32, ...
Add mappings for the VWS payloads
Add mappings for the VWS payloads The voice web socket (VWS) uses the same packet format as the gateway, but has different opcodes and payloads. These need to be mapped just like they are for the gateway.
Crystal
mit
meew0/discordcr
e978235886b262b627cbac989eea384408bd41d7
atcoder/Prime.enumerate.test.cr
atcoder/Prime.enumerate.test.cr
# ac-library.cr by hakatashi https://github.com/google/ac-library.cr # # Copyright 2021 Google LLC # # 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 # # https://www.apache.org/licenses/LIC...
Add verifier for prime enumeration
Add verifier for prime enumeration
Crystal
apache-2.0
google/ac-library.cr
733e9513681d407d5efa0588103748e65a0a401d
crystal/matrix_test.cr
crystal/matrix_test.cr
require "benchmark" require "matrix" def faster_matrix_multiply(a, b) raise "Dimensions don't match" unless a.columns.count == b.rows.count matrix = Matrix(typeof(a[0] * b[0])).new(a.rows.count, b.columns.count) pos = -1 b_columns = b.columns initial_sum = typeof(a[0] * b[0]).cast(0.0) a.rows.each do |a_ro...
Add test code for faster matrix multiplication.
Add test code for faster matrix multiplication.
Crystal
mit
dahofer/multiplication,dkhofer/multiplication,dahofer/multiplication,dkhofer/multiplication
ace1f2257f04cb27184d4e9ba0fd21dbba85a648
kernel/src/lib/memory.cr
kernel/src/lib/memory.cr
require "./types.cr" def memcpy(dst : Pointer(_), src : Pointer(_), n : USize) : Pointer dst_sig = dst dst = dst.to_byte_ptr src = src.to_byte_ptr i = 0 while i < n dst[i] = src[i] i += 1 end dst_sig end def memmove(dst : Pointer(_), src : Pointer(_), n : USize) : Pointer ...
Add memcpy, memmove, memset, memcmp
Add memcpy, memmove, memset, memcmp
Crystal
mit
TheKernelCorp/NuummiteOS
d813bd202336f4730cc704e1d607eca8618cb044
src/crustache/engine.cr
src/crustache/engine.cr
module Crustache class Engine def initialize(@basedir : String, @cache = false) self.initialize ViewLoader.new @basedir, @cache end def initialize(@fs : FileSystem); end # It renders a template loaded from `filename` with `model` # and it returns rendered string. # If `filename` is not...
Add Crustache::Engine class for typical using
Add Crustache::Engine class for typical using
Crystal
mit
MakeNowJust/crustache
8629d7473f78fd18e22053c87110b67bbbc32f4b
spec/engine_spec.cr
spec/engine_spec.cr
require "./spec_helper" describe Crustache::Engine do describe "#initialize" do it "should return a new instance" do Crustache::Engine.new(Crustache::HashFileSystem.new).should be_truthy Crustache::Engine.new("", true).should be_truthy end end describe "#render" do it "should render a te...
Add a spec for Engine class
Add a spec for Engine class
Crystal
mit
MakeNowJust/crustache
d08405124c42465e972817bbd3a4a66650bb10f7
crystal.002.peek/gc.cr
crystal.002.peek/gc.cr
gcfile = File.new("chry_multiplied.fa") gcfile.buffer_size = ARGV[0].to_i at = 0 gc = 0 while true # Peek the IO's buffer peek = gcfile.peek # If there's nothing else, we reached the end break if peek.empty? # If the line starts with '>' it's a comment if peek[0] === '>' while true # See where...
Add Crystal version that avoids allocating strings
Add Crystal version that avoids allocating strings
Crystal
mit
samuell/gccontent-benchmark,samuell/gccontent-benchmark,samuell/gccontent-benchmark,samuell/gccontent-benchmark
f346ed596c616b03b6c3e2f958b9b12156d542d4
src/generators/templates/project_src/src/handlers/static_file_handler.cr
src/generators/templates/project_src/src/handlers/static_file_handler.cr
class HTTP::StaticFileHandler private def mime_type(path) case File.extname(path) when ".txt" then "text/plain" when ".htm", ".html" then "text/html" when ".css" then "text/css" when ".js" then "application/javascript" when ".svg" then "image/svg+xml" w...
Add StaticFileHandler with SVG mime type
Add StaticFileHandler with SVG mime type
Crystal
mit
luckyframework/cli,luckyframework/cli,luckyframework/cli
1c3fa4a91b164e6459cf335f94a511283ae80166
spec/mocks/create_module_mock_spec.cr
spec/mocks/create_module_mock_spec.cr
require "../spec_helper" module MyModule def self.exists?(name) false end end create_module_mock MyModule do mock self.exists?(name) end create_mock File do mock self.exists?(name) end describe "create module mock macro" do it "does not fail with Nil errors" do allow(MyModule).to receive(self.exis...
Add some more specs for create_module_mock
Add some more specs for create_module_mock
Crystal
mit
waterlink/mocks.cr
d1580fccd423c7ded47ee753d476dd38fc07cce3
spec/caoutchouc/elasticsearch/health_spec.cr
spec/caoutchouc/elasticsearch/health_spec.cr
describe Caoutchouc::Elasticsearch::Health do describe ".from_json" do it "parses json correctly" do response = <<-EOF { "cluster_name": "elasticsearch", "status": "green", "timed_out": false, "number_of_nodes": 4, "number_of_data_nodes": 2, ...
Add some specs for Caoutchouc::Elasticsearch::Health
Add some specs for Caoutchouc::Elasticsearch::Health
Crystal
mit
jbbarth/caoutchouc
00cd621f0f14a434b3932a5def4f8f3fdc52cf05
tests/test24.csd
tests/test24.csd
<CsoundSynthesizer> <CsInstruments> sr=48000 ksmps=1 nchnls=2 instr 1 imc la_i_mc_create 5, 5, p4, p5 la_i_print_mc imc endin </CsInstruments> <CsScore> i 1 1 1 0 0 i 1 2 1 -1 1 e </CsScore> </CsoundSynthesizer>
Test csd for linear algebra opcodes.
Test csd for linear algebra opcodes.
Csound
lgpl-2.1
iver56/csound,iver56/csound,audiokit/csound,max-ilse/csound,Angeldude/csound,iver56/csound,iver56/csound,max-ilse/csound,mcanthony/csound,audiokit/csound,max-ilse/csound,max-ilse/csound,audiokit/csound,iver56/csound,nikhilsinghmus/csound,max-ilse/csound,nikhilsinghmus/csound,max-ilse/csound,iver56/csound,mcanthony/csou...
331e386de74fb8f3d027628a32879bf5724fe9b6
tests/test24.csd
tests/test24.csd
<CsoundSynthesizer> <CsInstruments> sr=48000 ksmps=1 nchnls=2 instr 1 imc la_i_mc_create 5, 5, p4, p5 la_i_print_mc imc endin </CsInstruments> <CsScore> i 1 1 1 0 0 i 1 2 1 -1 1 e </CsScore> </CsoundSynthesizer>
Test csd for linear algebra opcodes.
Test csd for linear algebra opcodes.
Csound
lgpl-2.1
ketchupok/csound,ketchupok/csound,csound/csound,csound/csound,csound/csound,ketchupok/csound,ketchupok/csound,csound/csound,csound/csound,csound/csound,ketchupok/csound,ketchupok/csound,ketchupok/csound,csound/csound,csound/csound,csound/csound,ketchupok/csound,ketchupok/csound,ketchupok/csound,csound/csound
07f5b35fbde5284bd1ea5e5537f443da069ba3e8
Opcodes/ableton_link_test.csd
Opcodes/ableton_link_test.csd
<CsoundSynthesizer> <CsLicense> TEST FOR ABLETON LINK OPCODES Michael Gogins 12 January 2017 </CsLicense> <CsOptions> -odac </CsOptions> <CsInstruments> sr=44100 kr=441 ksmps=100 nchnls=2 alwayson "LinkMonitor" instr LinkMonitor i_link link_create 72 printf_i "i_link: %g\n", 1, i_link link_enable i_link, 1 k_trigger,...
Test plan for Ableton Link opcodes.
Test plan for Ableton Link opcodes.
Csound
lgpl-2.1
nikhilsinghmus/csound,nikhilsinghmus/csound,nikhilsinghmus/csound,nikhilsinghmus/csound,nikhilsinghmus/csound,nikhilsinghmus/csound,nikhilsinghmus/csound,nikhilsinghmus/csound,nikhilsinghmus/csound,nikhilsinghmus/csound
96224dc5870d59ebd730c64623da09e96e266734
Opcodes/ableton_link_test.csd
Opcodes/ableton_link_test.csd
<CsoundSynthesizer> <CsLicense> TEST FOR ABLETON LINK OPCODES Michael Gogins 12 January 2017 </CsLicense> <CsOptions> -odac </CsOptions> <CsInstruments> sr=44100 kr=441 ksmps=100 nchnls=2 alwayson "LinkMonitor" instr LinkMonitor i_link link_create 72 printf_i "i_link: %g\n", 1, i_link link_enable i_link, 1 k_trigger,...
Test plan for Ableton Link opcodes.
Test plan for Ableton Link opcodes.
Csound
lgpl-2.1
csound/csound,ketchupok/csound,csound/csound,csound/csound,ketchupok/csound,csound/csound,ketchupok/csound,ketchupok/csound,csound/csound,ketchupok/csound,csound/csound,ketchupok/csound,ketchupok/csound,csound/csound,ketchupok/csound,csound/csound,csound/csound,ketchupok/csound,ketchupok/csound,csound/csound
bc2f6ca127fe9cbf061b93706f25cfbd055d24aa
themes/haymarket-jr/stylesheets/beer_menu.css
themes/haymarket-jr/stylesheets/beer_menu.css
.print_beer_menu { display: block; text-align: right; } h1.beer-category-name { display: none; } .beer_name { float: left; height: 27px; } .date-tapped { float: right; margin: 0; padding: 0; height: 27px; } .brewery { clear: left; font-size: 12px; } .beer-nerd-stuff { float: right; clear: right; font-...
.print_beer_menu { display: block; text-align: right; } h1.beer-category-name { display: none; } .beer_name { float: left; height: 27px; } .date-tapped { float: right; margin: 0; padding: 0; height: 27px; } .brewery { clear: left; font-size: 12px; } .beer-nerd-stuff { float: right; clear: right; font-...
Hide the printable beer menu HTML
Hide the printable beer menu HTML
CSS
mit
mdoyle13/haymarket-ref,mdoyle13/haymarket-ref,mdoyle13/haymarket-ref,mdoyle13/haymarket-ref
59ee817ce2c04f61fffee2c5075264840adb49a5
assets/css/menu.css
assets/css/menu.css
.navbar { position: fixed; top: 0px; width: 100%; height: 62px; max-width: 1058px; background-color: rgba(0,0,0,0.8); color: #fc0; z-index: 2; text-decoration: none; text-transform: uppercase; } .navbar ul { display: flex; justify-content: space-around; list-style: none; } .navbar ul li { d...
.navbar { position: fixed; top: 0px; width: 100%; height: 62px; max-width: 1058px; background-color: rgba(0,0,0,0.8); color: #fc0; z-index: 2; text-decoration: none; text-transform: uppercase; } .navbar ul { display: flex; justify-content: space-around; list-style: none; } .navbar ul li { d...
Remove cursor pointer from non-link nav elements
Remove cursor pointer from non-link nav elements
CSS
mit
Karspexet/Karspexet,Karspexet/Karspexet,Karspexet/Karspexet,Karspexet/Karspexet,Karspexet/Karspexet
9c9a28b92f55a8dd302cd964c66498d95c1b5bd3
ugtd.css
ugtd.css
/* Copyright 2016 Benjamin Barenblat 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 writing, soft...
/* Copyright 2016 Benjamin Barenblat 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 writing, soft...
Move FAB to lower-right per Material Design spec
Move FAB to lower-right per Material Design spec
CSS
apache-2.0
bbarenblat/ugtd,bbarenblat/ugtd
5e06350ce879b87b38bc3baf4913e92ed43589fd
styles/main.css
styles/main.css
html { background-color: white; color: black; } body { font-family: Helvetica; color: black;} header { background: white; color: black; } nav ul { display: inline-block float: right; padding: 80px; margin: 0; } nav li { display: inline-block; color: black; float: right; padding: 20px; margin: 0; } a h...
html { background-color: white; color: black; } body { font-family: Helvetica; color: black;} header { background: white; color: black; } nav ul { display: inline-block float: right; padding: 60px; margin: 0; } nav li { display: inline-block; color: black; float: right; padding: 20px; margin: 0; } a h...
Change hyperlink colour to black
Change hyperlink colour to black
CSS
mit
rahmona-henry/rahmona-henry.github.io
4ac218b03c863ef1d9837e451ca999ef4bfa71e4
config/custom.css
config/custom.css
html,body{margin:0;padding:0}body{background:#230d26 url("http://i.cubeupload.com/NmOrpo.png") no-repeat fixed left top}.mainmenufooter a{color:#ccc}.mainmenufooter a:hover{color:#e5e5e5}.menugroup .button{color:#fff;border:solid 1px #000;background:#333}.menugroup .button:hover{color:#fff;border:solid 1px #000;backgro...
html,body{margin:0;padding:0}body{background:#230d26 url("http://i.cubeupload.com/NmOrpo.png") no-repeat fixed left top}.mainmenufooter a{color:#ccc}.mainmenufooter a:hover{color:#e5e5e5}.menugroup .button{color:#fff;border:solid 1px #000;background:#333}.menugroup .button:hover{color:#fff;border:solid 1px #000;backgro...
Add CSS for profile titles
Add CSS for profile titles
CSS
mit
MayukhKundu/Pokemon-Domain,yashagl/yash-showdown,MayukhKundu/Mudkip-Server,SkyeTheFemaleSylveon/Mudkip-Server,yashagl/pokemon-showdown,yashagl/pokemon-showdown,yashagl/pokemon,TheManwithskills/DS,MayukhKundu/Technogear,MayukhKundu/Technogear-Final,yashagl/pokemon,TheManwithskills/Server,MayukhKundu/Flame-Savior,TheManw...
0c275ed7d3b97388d4fddbfe9ea3b60d43c4326f
docs/extra.css
docs/extra.css
.md-typeset__table { min-width: 100%; } @media only screen and (min-width: 768px){ td:nth-child(1){ white-space: nowrap; } } .hidden { display: none; } .kops_feature_table .md-typeset__table table{ max-width: fit-content; }
@media only screen and (min-width: 768px){ td:nth-child(1){ white-space: nowrap; } } .hidden { display: none; } .kops_feature_table .md-typeset__table table{ max-width: fit-content; }
Remove min width on tables
Remove min width on tables
CSS
apache-2.0
kubernetes/kops,justinsb/kops,justinsb/kops,kubernetes/kops,justinsb/kops,kubernetes/kops
455978b2378c718a1aeee58efc0fc72e9b944760
app/assets/stylesheets/application.css
app/assets/stylesheets/application.css
/* * This is a manifest file that'll be compiled into application.css, which will include all the files * listed below. * * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets, * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path...
/* * This is a manifest file that'll be compiled into application.css, which will include all the files * listed below. * * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets, * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path...
Add rails bootstrap forms css
Add rails bootstrap forms css
CSS
mit
gina-alaska/ttnmanager,gina-alaska/ttnmanager,gina-alaska/ttnmanager
33bcaeff66f661a9f69574b6f4d52cba0489b27c
ghost/admin/app/styles/layouts/auth.css
ghost/admin/app/styles/layouts/auth.css
/* Sign in /* ---------------------------------------------------------- */ .gh-signin { position: relative; margin: 30px auto; padding: 40px; max-width: 400px; border: #dae1e3 1px solid; background: #f8fbfd; border-radius: 5px; text-align: left; } .gh-signin .form-group { margin-b...
/* Sign in /* ---------------------------------------------------------- */ .gh-signin { position: relative; margin: 30px auto; padding: 40px; max-width: 400px; width: 100%; border: #dae1e3 1px solid; background: #f8fbfd; border-radius: 5px; text-align: left; } .gh-signin .form-gro...
Fix signin form width bug
Fix signin form width bug No issue. Fixes bug where signin form was not expanding to its full width as a result of some earlier global changes. This sets an explicit fluid width with a max-width fallback so that it's always the correct size.
CSS
mit
TryGhost/Ghost,TryGhost/Ghost,TryGhost/Ghost
f131b388de63b811defe38f911590336eb64c79c
src/main/resources/static/css/states.css
src/main/resources/static/css/states.css
/************************************************************************** TEXT COLORS **************************************************************************/ .fa.positive { color: #43C83C !important; } .fa.negative { color: #E94B3B !important; } /******************************************************...
/************************************************************************** TEXT COLORS **************************************************************************/ .fa.positive { color: #43C83C !important; } .fa.negative { color: #E94B3B !important; } /******************************************************...
Update color of temporary allowed icon
Update color of temporary allowed icon * refs #148
CSS
apache-2.0
synyx/urlaubsverwaltung,pongo710/urlaubsverwaltung,Intera/urlaubsverwaltung,synyx/urlaubsverwaltung,synyx/urlaubsverwaltung,pongo710/urlaubsverwaltung,Intera/urlaubsverwaltung,synyx/urlaubsverwaltung,Intera/urlaubsverwaltung,pongo710/urlaubsverwaltung
c85f37e7dad3f6593d0987c2c23bb1fd4ead4842
lib/qless/server/static/css/failed-jobs-list.css
lib/qless/server/static/css/failed-jobs-list.css
.subnav--page-layout { position: unset; height: 100%; margin-top: 20px; background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f5f5f5), color-stop(100%,#F5F5F5)); border-width: 10px; border-style: solid; border-color: #F2DEDE; border-radius: 4px; } ul.nav.nav-pills.rows { di...
.subnav--page-layout { position: unset; height: 100%; margin-top: 20px; background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f5f5f5), color-stop(100%,#F5F5F5)); border-width: 10px; border-style: solid; border-color: #F2DEDE; border-radius: 4px; } ul.nav.nav-pills.rows { di...
Add vender prefix for CSS
Add vender prefix for CSS
CSS
mit
Shopify/qless,Shopify/qless,Shopify/qless,Shopify/qless
e220d227268014967e64280fdc7338f225830986
src/assets/style.css
src/assets/style.css
.spin-image { -webkit-animation:spin 4s linear infinite; -moz-animation:spin 4s linear infinite; animation:spin 4s linear infinite; } @-moz-keyframes spin { 100% { -moz-transform: rotate(360deg); } } @-webkit-keyframes spin { 100% { -webkit-transform: rotate(360deg); } } @keyframes spin { 100% { -webkit-tra...
.spin-image { -webkit-animation:spin 4s linear infinite; -moz-animation:spin 4s linear infinite; animation:spin 4s linear infinite; } @-moz-keyframes spin { 100% { -moz-transform: rotate(360deg); } } @-webkit-keyframes spin { 100% { -webkit-transform: rotate(360deg); } } @keyframes spin { 100% { -webkit-tra...
Make menu absolute so it doesn'T screw with content
Make menu absolute so it doesn'T screw with content
CSS
mit
kumpelblase2/proxtop,kumpelblase2/proxtop,kumpelblase2/proxtop,kumpelblase2/proxtop
baa396ba038e95d713d07d34aba4392910825573
style/style.css
style/style.css
td, th { vertical-align: middle !important; text-align: center !important; } .input-group { margin: 20px 0px; } svg { height: 150px; }
Improve styling of charts and searchbar
Improve styling of charts and searchbar
CSS
mit
ljones140/react_redux_weather_app,ljones140/react_redux_weather_app
88e5c4cac2994694b519d8055fce3a849550805d
styles/main.css
styles/main.css
* { border-style: solid; border-color: red; } .container ul { list-style: none; } .Welcome .container { display: none; } /* Larger than mobile */ @media (min-width: 401px) { /*CSS styling for desktop mode here*/ } @media (min-width: 1240px) { .Welcome .container { display: block; ...
* { border-style: solid; border-color: red; } .container { border-color: blue; width: 100%; } .container ul { list-style: none; } .Welcome .container { display: none; } /* Larger than mobile */ @media (min-width: 401px) { /*CSS styling for desktop mode here*/ } @media (min-width: 1240p...
Make cotainer width 100% on mobile screen
Make cotainer width 100% on mobile screen
CSS
mit
rob-dev-builder/rob-dev-builder.github.io
ed712f894caf848bf454e178b278eb53058d09c0
R7.University/css/act.css
R7.University/css/act.css
/* AjaxControlToolkit CSS to match DNN forms style */ .act_combobox { width:45%; max-width:445px } .act_combobox .ajax__combobox_inputcontainer, .act_combobox .ajax__combobox_inputcontainer .ajax__combobox_textboxcontainer, .act_combobox .ajax__combobox_inputcontainer .ajax__combobox_textboxcontain...
/* AjaxControlToolkit CSS to match DNN forms style */ .act_combobox { width:45%; max-width:445px } .act_combobox .ajax__combobox_inputcontainer, .act_combobox .ajax__combobox_inputcontainer .ajax__combobox_textboxcontainer, .act_combobox .ajax__combobox_inputcontainer .ajax__combobox_textboxcontain...
Adjust AjaxControlToolkit combobox button position
Adjust AjaxControlToolkit combobox button position
CSS
agpl-3.0
roman-yagodin/R7.University,roman-yagodin/R7.University,roman-yagodin/R7.University
fb4346cb7c9f59f4f4a83a886d7576372b03cce6
styles/LoadingUI.css
styles/LoadingUI.css
.Loading { width: 100%; height: 2px; z-index: 1000; position: absolute; top: 0; } .LoadingBar { height: 2px; position: relative; background-color: white; transition: opacity 100ms; }
.Loading { width: 100%; height: 2px; z-index: 1000; position: absolute; top: 0; } .LoadingBar { height: 4px; position: relative; background-color: rgba(53, 175, 109, 0.8); transition: opacity 100ms; }
Change loading bar color to green
Change loading bar color to green Fixes mapillary/mapillary-js#33
CSS
mit
mapillary/mapillary-js,mapillary/mapillary-js
f22ef8d9832e89f9d7e72db2873f56ca3540bbde
resources/public/css/reabledit.css
resources/public/css/reabledit.css
.reabledit table { width: 100%; border: 2px solid #ddd; border-collapse: collapse; } .reabledit th, .reabledit td { border: 1px solid #ddd; padding: 0; box-sizing: border-box; height: 40px; } .reabledit th { background-color: #f3f3f3; } .reabledit td.selected { background-color: #f9f9f9; border: ...
.reabledit:focus { outline: none; } .reabledit table { width: 100%; border: 2px solid #ddd; border-collapse: collapse; } .reabledit th, .reabledit td { border: 1px solid #ddd; padding: 0; box-sizing: border-box; height: 40px; } .reabledit th { background-color: #f3f3f3; } .reabledit td.selected { ...
Hide focus outline from table
Hide focus outline from table
CSS
epl-1.0
MattiNieminen/reabledit
58d02f2a627c569b7c40210f83f5e466eb187085
cea/interfaces/dashboard/plots/static/css/map_layout.css
cea/interfaces/dashboard/plots/static/css/map_layout.css
.row.display-flex { display: flex; flex-wrap: wrap; } .row.display-flex > [class*='col-'] { display: flex; flex-direction: column; } @media (min-width: 1200px) { #map-container { min-width: 1000px; } } .plot-widget { min-width: 500px; } .plot-widget .x_panel { height: 100%; min-height: 500px; }...
.row.display-flex { display: flex; flex-wrap: wrap; } .row.display-flex > [class*='col-'] { display: flex; flex-direction: column; padding: 0px 5px; } @media (min-width: 1200px) { #map-container { min-width: 1000px; } } .plot-widget { min-width: 500px; } .plot-widget .x_panel { height: 100%; ...
Change padding between plot widgets in map layout
Change padding between plot widgets in map layout
CSS
mit
architecture-building-systems/CityEnergyAnalyst,architecture-building-systems/CityEnergyAnalyst,architecture-building-systems/CityEnergyAnalyst
8541f4549ed39e751a877516ebdb0ded605446df
styles.css
styles.css
/* Custom style sheet */ .main { width: 320px; border: solid #ccc 1px; border-radius: 10px; box-shadow: 2px 4px 2px rgba(163,163,163, 0.7); } img { display: block; margin: auto; border-radius: 10px; } .main-content { width: 300px; border: solid #ccc 1px; border-radius: 10px; margin: 10px; } p ...
/* Custom style sheet */ .main { width: 320px; border: solid #ccc 1px; border-radius: 10px; box-shadow: 2px 4px 2px rgba(163,163,163, 0.7); } img { display: block; margin: auto; border-radius: 10px; } .main-content { width: 300px; border: solid #ccc 1px; border-radius: 10px; margin: 10px; } h3...
Add styling to header text
Add styling to header text
CSS
isc
vishallama/fend-animal-trading-cards
c776f229111cd034b1593b6f95f3d08fc0b61f20
src/components/HackerNews/HackerNewsStory.css
src/components/HackerNews/HackerNewsStory.css
.container { margin-bottom: 30px; } .heading { margin: 0; line-height: 1.6em; } .footer { padding-top: 15px; } .footerItem { display: inline-block; margin-right: 15px; }
.container { margin-bottom: 30px; } .heading { margin: 0; line-height: 1.6em; } .footer { padding-top: 15px; line-height: 1.4em; } .footerItem { display: inline-block; margin-right: 15px; }
Add line-height to news item footer when it splits into 2 lines
Add line-height to news item footer when it splits into 2 lines
CSS
mit
devnews/web,devnews/web
dfacdbdcf940dd063bf2d4d13aba906615da7d9d
frontends/default/stylesheets/stylesheet-ie.css
frontends/default/stylesheets/stylesheet-ie.css
/* IE hacks ==================================== */ * html .active-scaffold-header, .active-scaffold li.form-element, .active-scaffold li.sub-section { zoom: 1; } * html .active-scaffold td .messages-container { border-top: solid 1px #DAFFCD; } .active-scaffold-header div.actions a.show_search { background-image:...
/* IE hacks ==================================== */ * html .active-scaffold-header, .active-scaffold li.form-element, .active-scaffold li.sub-section { zoom: 1; } * html .active-scaffold td .messages-container { border-top: solid 1px #DAFFCD; } * html .active-scaffold-header div.actions a.show_search { background...
Fix icons set as background in IE
Fix icons set as background in IE
CSS
mit
silverpond/active_scaffold,vhochstein/active_scaffold,BookingBug/active_scaffold,silverpond/active_scaffold,asoltys/active_scaffold,BookingBug/active_scaffold,vhochstein/active_scaffold,BookingBug/active_scaffold,silverpond/active_scaffold,ajacksified/active_scaffold,vhochstein/active_scaffold,ajacksified/active_scaffo...
eecc61bbba00202eff72695fb967f3fcbd007696
styles.css
styles.css
body { font-family: "Lucida Grande", "Helvetica Neue", "Arial"; background-image: url('http://images.apple.com/v/ipod/home/b/images/gradient_texture.png'); } .container { max-width: 768px; } .container .jumbotron { background-color: #FFF; border-radius: 6px; box-shadow: 0px 1px 1px #272727; } .jumbotron ...
body { font-family: "Lucida Grande", "Helvetica Neue", "Arial"; background-image: url('http://images.apple.com/v/ipod/home/b/images/gradient_texture.png'); } h1, h2 { font-family: "Lucida Grande", "Helvetica Neue", "Arial"; } .container { max-width: 768px; } .container .jumbotron { background-color: #FFF; ...
Change H1 and H2 to reflect style.
Change H1 and H2 to reflect style.
CSS
mit
piperchester/cocoa-buzz,piperchester/cocoa-buzz
50778e634fbdf05d49b99e89e4453c91ec9d5b6d
client/app/styles/app.css
client/app/styles/app.css
body { padding-top: 60px; } .leaflet-container { height: 500px; } .ui.form .divider { margin: 3em 0; }
body { padding-top: 60px; } .leaflet-container { height: 400px; } .ui.form .divider { margin: 3em 0; }
Reduce size of map container
Reduce size of map container
CSS
mit
Turistforeningen/Hytteadmin,Turistforeningen/Hytteadmin
556dfa8bea39219bda088a52ed1903d322108621
css/jquery.fileupload.css
css/jquery.fileupload.css
@charset "UTF-8"; /* * jQuery File Upload Plugin CSS * https://github.com/blueimp/jQuery-File-Upload * * Copyright 2013, Sebastian Tschan * https://blueimp.net * * Licensed under the MIT license: * http://www.opensource.org/licenses/MIT */ .fileinput-button { position: relative; overflow: hidden; displa...
@charset "UTF-8"; /* * jQuery File Upload Plugin CSS * https://github.com/blueimp/jQuery-File-Upload * * Copyright 2013, Sebastian Tschan * https://blueimp.net * * Licensed under the MIT license: * http://www.opensource.org/licenses/MIT */ .fileinput-button { position: relative; overflow: hidden; displa...
Make font size for fileinput-button !important so it's less likely to break
Make font size for fileinput-button !important so it's less likely to break
CSS
mit
blueimp/jQuery-File-Upload,blueimp/jQuery-File-Upload,blueimp/jQuery-File-Upload,blueimp/jQuery-File-Upload,Verde1705/verde1705.github.io,blueimp/jQuery-File-Upload,Verde1705/verde1705.github.io,blueimp/jQuery-File-Upload
d63d6a9dae14bb898d85fdf238df8f928cbb4af7
app/client/views/shared/form.css
app/client/views/shared/form.css
.dropdown-header { font-size: 1.2em; font-weight: bold; } /* Simple Select tweaks */ .ss-main { padding: 0; border-color: #fff; }
.dropdown-header { font-size: 1.2em; font-weight: bold; } /* Simple Select tweaks */ .ss-main.form-control { padding: 0; border-color: #fff; }
Make simple select rule more specific
Make simple select rule more specific
CSS
agpl-3.0
brylie/juhani-wellbeing,GeriLife/wellbeing,brylie/juhani-wellbeing,GeriLife/wellbeing,GeriLife/wellbeing,brylie/juhani-wellbeing,brylie/juhani-wellbeing,GeriLife/wellbeing
5ad38064fc65fb61a6e1fa06f9c30b67efa44ec3
vendor-addon/ember-cli-super-number/styles/style.css
vendor-addon/ember-cli-super-number/styles/style.css
.super-number { position: relative; } .super-number a.increment, .super-number a.decrement { -moz-transition: background linear 0.2; -webkit-transition: background linear 0.2s; position: absolute; right: 0; text-align: center; text-decoration: none; transition: background linear 0.2s; user-select: non...
.super-number { position: relative; } .super-number a.increment, .super-number a.decrement { -moz-transition: background linear 0.2; -webkit-transition: background linear 0.2s; position: absolute; right: 0; text-align: center; text-decoration: none; transition: background linear 0.2s; user-select: non...
Remove outline when icons are in focus
Remove outline when icons are in focus
CSS
mit
alphasights/ember-cli-super-number,alphasights/ember-cli-super-number
be9467210715944d7795d1dc1d25e19ec2598b44
css/hackmud.css
css/hackmud.css
@font-face { font-family: 'white_rabbitregular'; src: url('/assets/whiterabbit-webfont.woff2') format('woff2'), url('/assets/whiterabbit-webfont.woff') format('woff'), url('/assets/whiterabbit-webfont.ttf') format('truetype'); font-weight: normal; font-style: normal; } body { backgro...
@font-face { font-family: 'white_rabbitregular'; src: url('/assets/whiterabbit-webfont.woff2') format('woff2'), url('/assets/whiterabbit-webfont.woff') format('woff'), url('/assets/whiterabbit-webfont.ttf') format('truetype'); font-weight: normal; font-style: normal; } body { backgro...
Change background to horizontal lines
Change background to horizontal lines
CSS
mit
DrizzlyBear/hackmud_chat_web,DrizzlyBear/hackmud_chat_web
b027c2adb5d6a489b0badf7989183561af20d202
freeciv-web/src/main/webapp/meta/css/metaserver.css
freeciv-web/src/main/webapp/meta/css/metaserver.css
body { background-image:url('/images/bg.jpg'); } .metatable { width: 100%; } .metaspan { padding: 5px; width: 99%; font-size: 1.1em; text-align: center; } .metainfotable { width: 60%; background: rgba(1,1,1,0.1); } .meta_header th { text-align: left; } table, th, td { border: 1px solid white;...
body { background-image:url('/images/bg.jpg'); } .metatable { width: 100%; text-align: left; } .metaspan { padding: 5px; width: 99%; font-size: 1.1em; text-align: center; } .metainfotable { width: 60%; background: rgba(1,1,1,0.1); } .meta_header th { text-align: left; } table, th, td { bord...
Align text in meta table left.
Align text in meta table left.
CSS
agpl-3.0
adaxi/freeciv-web,andreasrosdal/freeciv-web,adaxi/freeciv-web,adaxi/freeciv-web,andreasrosdal/freeciv-web,adaxi/freeciv-web,adaxi/freeciv-web,andreasrosdal/freeciv-web,andreasrosdal/freeciv-web,andreasrosdal/freeciv-web
4d20d92a1fa4ff13f52ba4cccb4c495d22956935
app/javascript/consent/ExistingMemberConsent.css
app/javascript/consent/ExistingMemberConsent.css
.ExistingMemberConsent { width: 600px; text-align: center; } .ExistingMemberConsent--opt-in-reason { font-size: 22px; line-height: 1.3em; margin-bottom: 1em; } .ExistingMemberConsent--accept.Button-root, .ExistingMemberConsent--decline.Button-root { max-width: 300px; margin: 20px auto; } .ExistingMembe...
.ExistingMemberConsent { width: 600px; text-align: center; } .ExistingMemberConsent--opt-in-reason { font-size: 22px; line-height: 1.3em; margin-bottom: 1em; } .ExistingMemberConsent--accept.Button-root, .ExistingMemberConsent--decline.Button-root { max-width: 300px; margin: 20px auto; } .ExistingMembe...
Change width unit to % when <= 700px
Change width unit to % when <= 700px
CSS
mit
SumOfUs/Champaign,SumOfUs/Champaign,SumOfUs/Champaign,SumOfUs/Champaign,SumOfUs/Champaign
e3da6d6f6e6af4829dabe43c58c3b89504c5f4c1
doc/lrexlib.css
doc/lrexlib.css
/* :Author: Shmuel Zeigerman :Contact: shmuz at actcom co il :Copyright: This stylesheet has been placed in the public domain. [Optionally place a description here.] */ @import url(html4css1.css); hr.docutils { width: 100% } .funcdef { font-weight: bold ; font-size: 100% } body { margin-left: 1em ; ...
/* :Author: Shmuel Zeigerman :Contact: shmuz at actcom co il :Copyright: This stylesheet has been placed in the public domain. [Optionally place a description here.] */ @import url(html4css1.css); hr.docutils { width: 100% } .funcdef { font-weight: bold ; font-size: 100% } body { margin-left: 1em ; ...
Make the table borders more like publication-quality
Make the table borders more like publication-quality
CSS
mit
LuaDist/lrexlib-pcre,LuaDist/lrexlib-tre,StoneDot/lrexlib,LuaDist/lrexlib-posix,LuaDist/lrexlib-oniguruma,LuaDist/lrexlib-pcre,LuaDist/lrexlib-tre,LuaDist/lrexlib-oniguruma,LuaDist/lrexlib-gnu,LuaDist/lrexlib-posix,LuaDist/lrexlib-gnu,StoneDot/lrexlib
620d472f6c93d3a1673fef540cb92bf1955e3b1c
gcalendar_gen_class/genclass/static/genclass/css/style.css
gcalendar_gen_class/genclass/static/genclass/css/style.css
html, body{ width: 100%; background-color: white; } img { margin: 10px auto 10px auto; width: 90%; } header{ margin-bottom: 10px; padding: 10px; } footer{ margin-bottom: 10px; padding: 10px; } hr { border: 0; border-bottom: 1px dashed #ccc; background: #999; } #main{ ...
html, body{ width: 100%; background-color: white; } img { margin: 10px auto 10px auto; width: 90%; } header{ padding: 10px; } footer{ padding: 10px; } hr { border: 0; border-bottom: 1px dashed #ccc; background: #999; } #main{ padding: 10px; } .bg-success { background-co...
Remove margin-bottom of main element
Remove margin-bottom of main element
CSS
mit
chin8628/Reg2Calendar,chin8628/Reg2Calendar
3c0a3905b5a537a4b0bcec7c30873d7df8fc6165
static/css/FeedEk-2.0.css
static/css/FeedEk-2.0.css
.feedEkList { width: auto; list-style: none outside none; background-color: #FFFFFF; border: 1px solid #D3CAD7; padding: 4px 6px; color: #3E3E3E; } .feedEkList li { border-bottom: 1px solid #D3CAD7; padding: 5px; } .feedEkList li:last-child { border-bottom: none; } .itemTitle a { ...
.feedEkList { width: auto; list-style: none outside none; background-color: #FFFFFF; border: 1px solid #D3CAD7; padding: 4px 6px; color: #3E3E3E; } .feedEkList li { border-bottom: 1px solid #D3CAD7; padding: 5px; } .feedEkList li:last-child { border-bottom: none; } .itemTitle a { ...
Add a feedek class for background
Add a feedek class for background ... but it's not that simple. It does not take effect, and it appears we would need multiple scripts to make it work, with this plugin. Maybe later.
CSS
mit
Hideaki1/eSolia,Hideaki1/eSolia,Hideaki1/eSolia,eSolia/eSolia,eSolia/eSolia,eSolia/eSolia
1a4c04bc3de8867340f5299012c1a224286e970a
stylesheets/week-stylesheet.css
stylesheets/week-stylesheet.css
#top { display:block; display: relative; background-color:; top: 170px; } #second_from_top { display: block; position: relative; top: 300px; }
#top { display:block; display: absolute; background-color:; top: 170px; } #second_from_top { display: block; position: relative; }
Change top block week stylesheet to absolute
Change top block week stylesheet to absolute
CSS
mit
grantziolkowski/grantziolkowski.github.io,grantziolkowski/grantziolkowski.github.io,grantziolkowski/grantziolkowski.github.io
57e89ac1ee955201ad3e3abe9001bb70b3e5427a
css/bbplayer.css
css/bbplayer.css
/* Optional styling for bbplayer elements. */ .bbplayer .bb-playing { background: #6666FF; border: 1px solid gray; border-radius: 9px; }
/* Optional styling for bbplayer elements. */ .bbplayer .bb-playing { color: green; }
Simplify css for simple example
Simplify css for simple example
CSS
mit
73rhodes/bbplayer,73rhodes/bbplayer
f09ace515d4b676be598f92501de67dd8eef5c0c
app/css/base.css
app/css/base.css
@import "@vars"; @import "skeleton-css/css/normalize.css"; @import "skeleton-css/css/skeleton.css"; @import "typeface-spoqa-han-sans2"; @import "mdi/css/materialdesignicons.min.css"; @import "sweetalert/dist/sweetalert.css"; html, body { font-family: var(--font); }
@import "@vars"; @import "skeleton-css/css/normalize.css"; @import "skeleton-css/css/skeleton.css"; @import "typeface-spoqa-han-sans2"; @import "mdi/css/materialdesignicons.min.css"; @import "sweetalert/dist/sweetalert.css"; html, body { font-family: var(--font); } .sa-confirm-button-container button { height: ...
Fix wrong-sized sa confirm button
Fix wrong-sized sa confirm button
CSS
mit
SigongTeam/sudonmul-info,SigongTeam/sudonmul-info