Playgrounds
Snippets
Developers
Compiler
All
ActionScript
Ajax
AngularJS
Apache
AppleScript
ASP.NET
Bash
C
C#
C++
Coffee
CoffeeScript
ColdFusion
Command
CSS
Delphi
Django
ES6
GLSL
Grunt
Gulp
HAML
Haskell
HTML
iOS
Jade
Java
JavaScript
jQuery
JSX
Less
LUA
MDX
MySQL
Objective
Other
Pascal
Perl
PHP
Plain text
PowerShell
Processing
Progress
Prolog
Pseudocode
Python
Rails
RegExr
Ruby
SASS
Scala
Scheme
SCSS
SmallBASIC
Smarty
SQL
Stylus
SVG
Swift
TypeScript
VHDL
X++
XHTML
XML
Xojo
XSLT
New snippet
New playground
Sign up
Login
Upload
Playgrounds
Snippets
Developers
Sign up
Login
Codepad is a place for developers to share code snippets (PHP, Java, Bash, C, C++, Python and more). Create your HTML, CSS and JS Demos.
Sign up
Learn more
Sort
Popular
Most liked
Most recent
Time
Today
Last week
Last month
Last year
All time
Select Languages
ActionScript
Ajax
AngularJS
Apache
AppleScript
ASP.NET
Bash
C
C#
C++
ColdFusion
Command
CSS
Delphi
Django
Grunt
Gulp
HAML
HTML
iOS
Jade
Java
JavaScript
jQuery
Less
MySQL
Objective
Other
Pascal
Perl
PHP
PowerShell
Processing
Prolog
Pseudocode
Python
Rails
RegExr
Ruby
SASS
Scala
Scheme
Smarty
SQL
Swift
VHDL
XHTML
XML
Xojo
XSLT
SCSS
CoffeeScript
GLSL
Progress
Stylus
ES6
Coffee
TypeScript
X++
Haskell
SmallBASIC
JSX
SVG
Plain text
LUA
MDX
Apply
Reset
popular • Ruby
image.rb
Ruby
0
0
2441
hello
Ruby
0
0
2139
poignant_guide_1
Ruby
0
0
1630
Ruby-BasicSinatra
Ruby
0
0
1629
Hello, World
Ruby
0
0
1708
Hola mundo en ruby
Ruby
1
1
1736
Hola Mundo (Ruby)
Ruby
0
0
1668
Herencia en Ruby
Ruby
3
3
2477
Apertura de archivo en Ruby
Ruby
0
0
1645
My first snippet
Ruby
0
0
1643
Lanzamiento de dados
Ruby
0
0
1702
rubymonk prime 6.2 deuxieme exercice
Ruby
0
1
1639
PE 4 - Palindromes
Ruby
0
0
1601
Ejemplo de una clase y como llamar a sus definiciones
Ruby
0
0
1700
ejemplo de clase y como llamar sus definiciones
Ruby
1
1
1576
Ruby Service Object
Ruby
0
1
2210
Titleize a string with exceptions
Ruby
0
0
2442
Clases en Ruby
Ruby
0
0
1385
floating point numbers with first 2 decimals (without rounding)
Ruby
3
2
1963
Tipico hola mundo con una funcion, ahora en Ruby
Ruby
0
1
1404