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++
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
Apply
Reset
most liked
HTML Form
HTML
2
16
1095
HTML/CSS/JavaScript: Simple timer
HTML
0
16
3055
SCSS: Correct use "em" with "rem" without "px"
SCSS
0
16
11379
How to call another controller in Yii
PHP
0
15
1185
MySQL string replace
MySQL
0
15
1501
.HTACCESS - Force HTTPS for WordPress
Bash
0
15
1646
WordPress only search posts.
PHP
0
15
1421
JavaScript / jQuery Load JSON from URL
jQuery
1
15
3107
Simple Pure JavaScript Masonry Alternative
JavaScript
0
15
2036
WordPress: Shortcode for Listing Categories
PHP
0
15
1706
WordPress: Remove Emojis
PHP
0
15
1561
invisible e-mail pre-header
HTML
0
15
1256
Email PHP errors instead of displaying it
PHP
0
14
1559
Send a SMS to a cell phone using the TextMagic API
PHP
1
15
3010
Simple C++
C++
1
15
1537
Separate Images & Paragraphs in WordPress
PHP
0
15
2366
Smooth Scroll
jQuery
1
15
5998
getLocationHTML5
JavaScript
0
15
1277
Font Smoothing
CSS
0
15
2482
Replace text in a string with jQuery
HTML
0
14
18997
Tic-Tac-Toe game in Python
Python
0
14
5208
Using bluetooth on Android
Java
0
14
1807
Send HTTP request and fetch data in Java
Java
0
14
1926
Using collections.Counter in Python
Python
0
14
1886
Group CSV rows by a given key in Python
Python
0
14
1824
Make web design and debug easier by modifying content directly in browser
ES6
0
14
1397
WP: Add custom post type to admin dropdown to be able to chose it as homepage
PHP
0
14
1439
Social Links with colors
HTML
0
14
1274
Bash - Optimize JPG Image
Bash
0
14
1615
TP Coletto
C#
0
14
1114
WordPress - Customize Login Page
PHP
0
14
1050
Bash - Git - Remove from repository all locally deleted files
Bash
0
14
1564
Check URL on PHP
PHP
0
14
1367
Git - Show Pretty Log Graph of Commits
Bash
3
14
2418
[JQuery] Get true width,height of image
JavaScript
0
14
1280
Classic Hello world in Haskell
Haskell
0
14
2163
Use Attribute Selectors with Empty Links
CSS
0
14
1580
CSS Text Label
CSS
0
14
1622
el / Simple Callout Box Flat / CSS
CSS
3
14
1257
WordPress Refresh on Update
JavaScript
3
14
2882