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 - Print Large Horizontal Rule in Terminal
Bash
0
2
1373
Bash - Upgrade PHP to 5.5, 5.6 or 7.0
Bash
0
9
2558
Bash - Print a man page
Bash
0
1
1324
Installing Apache, PHP and MySQL (LAMP) on Ubuntu Desktop/Server
Bash
0
0
655
Speed up npm install for CI in one single line
Bash
0
9
1517
jquery.load remote url via data attribute
Bash
0
9
1618
Bash - Run Vagrant SSH then execute a command without exiting
Bash
0
3
1685
Ubuntu: block external outgoing ip address
Bash
0
8
1811
Bash - Git - Checkout Branch
Bash
0
9
1588
Bash - Set active Terminal Tab and Window names
Bash
0
1
1413
Drupal 7 custom theme generator
Bash
0
9
1227
Prevent text to be copied and selected by cursor
Bash
0
7
1369
Copy a website using wget
Bash
0
8
1038
Bash - Git - Undo last commit, preserving local changes
Bash
0
1
1565
Bash - Git - Undo last commit, without preserving local changes
Bash
0
2
1644
Bash - Git - Undo non-pushed commits
Bash
0
1
1330
Bash - Git - Create a tag
Bash
0
4
1509
Bash - Git - Push a tag
Bash
0
9
1591
Bash - Git - See differences in a file, between the current state and a branch
Bash
0
1
1431
Bash - Git - See differences between the current state and a branch
Bash
0
1
1419