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
Responsive CSS Lightbox with No JavaScript
HTML
6
66
19526
Display desktop notifications | Javascript
JavaScript
8
50
10294
My Favorite JavaScript Helper Functions
JavaScript
4
32
10071
Both Horizontally and Vertically Centering
CSS
2
29
6938
Media Queries
CSS
1
29
7936
Script for menu
jQuery
0
26
6588
Slider
jQuery
0
25
6504
how to check user's session/login are start are not
PHP
0
25
32147
My Minimum HTML5 Template
HTML
1
24
7768
Rename a branch locally and remotely in Git
Other
2
24
6263
Load JSON file locally using JavaScript
JavaScript
1
23
6873
insert a record
PHP
2
24
6154
Update the required record through query
PHP
0
24
5446
Delete any record from database
PHP
5
24
5804
How to connect to Database
PHP
0
23
6416
Sending email by SMTP with Python
Python
0
22
6623
Send an Email Alert When Your Disk Space Gets Low
Bash
1
23
7200
Detect device type using JavaScript
JavaScript
2
21
6524
how to end the session
PHP
0
21
5350
HTML/CSS: Simple way to make table responsive
HTML
1
21
6205
PHP Arrays
PHP
0
21
15096
Scrape emails from web page
Python
0
19
2563
Perfect Full Page Background Image
CSS
4
19
3103
Install Docker script for Ubuntu 14.04
Bash
1
18
3820
Temporary fix GPS for CM-13.0(msm8916, samsung I9195I)
C++
0
18
1231
Example of Lambda on Python
Python
0
18
1548
Disable any right click event
ES6
0
18
1655
Useful WordPress MySQL Snippets
MySQL
1
18
2715
CSS Filters
CSS
3
18
3281
Sistema de votación por municipios
C++
0
17
1536
Call, Apply and Bind in JavaScript
ES6
0
17
1956
Vertically-Center Anything
CSS
1
17
1695
Whois query using PHP
PHP
0
17
2396
Conversor de cantidades a letra (SPANISH)
Java
8
17
2877
Dans Game
Python
0
16
1050
Find My Public IP Address From Linux Command Line
Bash
2
16
1597
Fun Trump CSS
CSS
1
16
1638
Sticky navigation on scroll
jQuery
1
16
1485
Detect location by IP in PHP
PHP
0
16
2609
JavaScript Form Validation
JavaScript
1
16
1206