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
keep 2 auth methods for encryption in rails
Ruby
0
8
1133
Work with DOM elements in Ruby Selenium-WebDriver
Ruby
0
9
1302
Write to file
Ruby
0
1
1010
Looker Authenticated Embed Code - Ruby Example
Ruby
0
1
1147
1_ruby_quicksort.rb
Ruby
0
2
818
Ordinals
Ruby
0
1
977
settings.json
Ruby
0
2
959
Check valid email for Yandex
Ruby
0
2
1649
1_ruby_quicksort.rb
Ruby
0
1
855
1_ruby_quicksort.rb
Ruby
0
1
826
RbInitDatabase
Ruby
0
0
768
RbControllerRespond
Ruby
0
0
828
RbDebugCurrentAction
Ruby
0
0
782
RbFormBasic
Ruby
0
0
845
RbMigrationAddColumn
Ruby
0
1
808
Ruby
Ruby
0
0
951
Remove all non numeric characters
Ruby
0
0
1020
Local IP
Ruby
0
0
1193
1_ruby_quicksort.rb
Ruby
0
0
1074
To toss a coin and execute the code ... or not ...
Ruby
0
0
936