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 • Bash
Bash - Display the calendar for the previous, current, and future month
Bash
0
2
1742
Bash - Display the vertical calendar for the previous, current, and future month
Bash
0
2
1781
Bash - Follow a short-url to it's source
Bash
0
1
2136
Bash - Get the length of a string
Bash
0
2
1727
Bash - Determine if I should 'work', 'play' or 'sleep'
Bash
0
1
1804
Bash - Display Matrix code in terminal
Bash
0
1
1687
WP-CLI - Download Wordpress, install, and configure it
Bash
0
3
1570
Bash - Show / Hide dot files in OSX Finder
Bash
0
2
1404
Bash - Change the active terminal window name
Bash
0
1
1396
Bash - Display a segment of a file
Bash
0
1
1414
Bash - Display a numbered segment of a file
Bash
0
8
1493
Bash - Create a SHA1 digest of a file
Bash
0
2
1482
Bash - Exchange the contents of two files
Bash
0
1
1392
Bash - "Uncompress" a file from a variety of common formats
Bash
0
9
1485
Bash - Create a backup of a file or directory
Bash
0
1
1481
Bash - Get a recursive list of all directories under 'directory'
Bash
0
2
1440
Bash - Display information about an aspect of the bash programming environment
Bash
0
2
1355
Bash - Show National Weather Service information for a city
Bash
0
2
1373
Bash - Set the style of bash prompt used
Bash
0
1
1448
Bash - Print Horizontal Rule in Terminal
Bash
0
2
1448