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
.gitignore
Ruby
0
0
796
Get access_token for VK API
Ruby
0
0
1428
Interactive Progress Bar
Ruby
0
0
1023
Sanane amk
Ruby
0
0
764
settings.json
Ruby
0
0
680
Employee Tree count gender
Ruby
0
0
704
Ruby Binary Search - no index return
Ruby
0
0
714
Ruby Binary Search with index return
Ruby
0
0
736
testrubyljsaldkfjlakjds
Ruby
0
0
698
multiplication_table
Ruby
0
0
756
Ubuntu APT INSTALLER
Ruby
0
0
762
Atom keymap
Ruby
0
0
1546
Free invites for everyone
Ruby
2
0
936
Romani ite domum!
Ruby
0
0
772
MY NAME IS BOND! JAMES BOND!
Ruby
1
0
829
There's garlic on my ice cream...
Ruby
0
0
736
Acing assessments
Ruby
1
0
733
Surprise encounter in the depths of a dungeon
Ruby
0
0
748
Test
Ruby
0
0
629
Ref
Ruby
0
0
693