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
JavaScript snippets by Luis Lopez
Sheetsu POST API usage
JavaScript
0
2
1699
Vanilla JavaScript $.getJSON version with callback
JavaScript
0
3
4524
Real time search result rendering
JavaScript
0
3
1642
Epileptic Stroboscope Fun
JavaScript
0
0
1377
ROT13 Encoder/Decoder
JavaScript
0
0
2754
Opening a Tweet text window
JavaScript
0
0
1406
Simple Restful API with Express (Cloud9 Compatible)
JavaScript
0
0
1941
Consuming JSONP APIs Vanilla Javascript
JavaScript
0
1
3214
Calculate maximum and minimum in array (Helper)
JavaScript
0
1
1473
Flatten a multidimensional array (Helper)
JavaScript
0
0
1929
Shuffle the contents of an array (helper)
JavaScript
0
0
1513
Capitalize a phrase (helper)
JavaScript
0
2
1439
Get a random number between a range (helper)
JavaScript
0
1
1742
Toggle boolean attributes in DOM elements
JavaScript
0
1
1587