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
1755
Bash - Display the vertical calendar for the previous, current, and future month
Bash
0
2
1788
Bash - Follow a short-url to it's source
Bash
0
1
2143
Bash - Get the length of a string
Bash
0
2
1740
Bash - Determine if I should 'work', 'play' or 'sleep'
Bash
0
1
1814
Bash - Display Matrix code in terminal
Bash
0
1
1694
WP-CLI - Download Wordpress, install, and configure it
Bash
0
3
1578
Bash - Show / Hide dot files in OSX Finder
Bash
0
2
1409
Bash - Change the active terminal window name
Bash
0
1
1403
Bash - Display a segment of a file
Bash
0
1
1422
Bash - Display a numbered segment of a file
Bash
0
8
1499
Bash - Create a SHA1 digest of a file
Bash
0
2
1489
Bash - Exchange the contents of two files
Bash
0
1
1401
Bash - "Uncompress" a file from a variety of common formats
Bash
0
9
1493
Bash - Create a backup of a file or directory
Bash
0
1
1493
Bash - Get a recursive list of all directories under 'directory'
Bash
0
2
1444
Bash - Display information about an aspect of the bash programming environment
Bash
0
2
1360
Bash - Show National Weather Service information for a city
Bash
0
2
1381
Bash - Set the style of bash prompt used
Bash
0
1
1454
Bash - Print Horizontal Rule in Terminal
Bash
0
2
1454