Skip to content

Instantly share code, notes, and snippets.

View kstratis's full-sized avatar

Konstantinos Stratis kstratis

  • ▅▆▇
  • Athens, Greece
View GitHub Profile
puts "Hello World"
@kstratis
kstratis / kernel_methods.rb
Created October 18, 2017 09:29
Kernel module methods as Object class methods
module Kernel
def say_hello
puts "hello world"
end
end
Object.new.say_hello # => hello world
Object.say_hello # => hello world - Shouldn't be possible!
@kstratis
kstratis / my_module.rb
Last active February 4, 2018 15:31
Module methods
class Module
# `hello` should be readily available within all regular classes
def hello
puts 'Hello World'
end
end
# `special` should be available within all regular singleton classes
class Module
class << self
@kstratis
kstratis / theme.css
Last active November 7, 2018 21:39
CSS for green background
.panel.panel-primary.ef-question-panel > .panel-body > h4.text-muted{
background: #AFD2C2;
padding: 15px 15px 5px 15px;
color: #000000;
}