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
1380
Bash - Upgrade PHP to 5.5, 5.6 or 7.0
Bash
0
9
2562
Bash - Print a man page
Bash
0
1
1331
Installing Apache, PHP and MySQL (LAMP) on Ubuntu Desktop/Server
Bash
0
0
659
Speed up npm install for CI in one single line
Bash
0
9
1525
jquery.load remote url via data attribute
Bash
0
9
1625
Bash - Run Vagrant SSH then execute a command without exiting
Bash
0
3
1692
Ubuntu: block external outgoing ip address
Bash
0
8
1817
Bash - Git - Checkout Branch
Bash
0
9
1593
Bash - Set active Terminal Tab and Window names
Bash
0
1
1417
Drupal 7 custom theme generator
Bash
0
9
1239
Prevent text to be copied and selected by cursor
Bash
0
7
1374
Copy a website using wget
Bash
0
8
1044
Bash - Git - Undo last commit, preserving local changes
Bash
0
1
1573
Bash - Git - Undo last commit, without preserving local changes
Bash
0
2
1651
Bash - Git - Undo non-pushed commits
Bash
0
1
1337
Bash - Git - Create a tag
Bash
0
4
1517
Bash - Git - Push a tag
Bash
0
9
1597
Bash - Git - See differences in a file, between the current state and a branch
Bash
0
1
1437
Bash - Git - See differences between the current state and a branch
Bash
0
1
1423