Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 12 13 14 15 16 ... 552
IIFE - Immediately Invoked Function Expression. http://gregfranko.com/jquery-best-practices/#/7 http://gregfranko.com/jquery-best-practices/#/8
0 2243 posted 11 years ago by Waltem
Array.prototype.forEach You can't break forEach. So use "some" or "every". Array.prototype.some some is pretty much the same as forEach but it break when the callback returns true. Array.prototype.every every is almost identical to some except i...
0 4297 posted 11 years ago by Waltem
A plugin that adds widget functionality to a third-party video modal plugin. The widget accepts a YouTube video ID and a thumbnail URL of the user's choice. It then generates a thumbnail link that launches a video modal via the third-party plugin. Op...
0 3137 posted 11 years ago by julian90
Button pulse animation (scale up and down)
0 4293 posted 11 years ago by envane21
This is code you put in a CSS file. It queries the size of the screen using the parameters passed in. If its true, it then applies the CSS
0 2452 posted 11 years ago by heathbo
JQUERY READY EVENT BEST PRACTICE
0 2104 posted 11 years ago by SmellWing
feed class with baseUrl and endpoint curling the target and caching on memcache
0 2013 posted 11 years ago by ramirog89
Copy files recursively in Windows
0 4236 posted 11 years ago by wesleydepoorter
If you syndicate your content with an RSS feed it can help to drive additional traffic to the content pages.
0 3321 posted 11 years ago by COBOLdinosaur
define ur thumbx
0 1655 posted 11 years ago by ramirog89
Using underscore.js, you could combine .findWhere with .without Although, since you are creating a new array in this case anyway, you could simply use _.filter or the native Array.prototype.filter function (just like shown in the other question)....
0 7535 posted 11 years ago by Balamir
// create a variable to toggle debugging // to use it, just call debug(with,any,optional,parameters) debug(x,y,z); // it will try to guess what type of message to log, or you can specify in the first parameter debug("error",x,y,z);
1 4436 posted 11 years ago by brandonjp
Nice little Face in for long text (slightly modified)
0 4331 posted 11 years ago by designermedia
Really, this is part of a set of classes that is stored in a Git repository and under MIT license. The function I'll expose is Circunscription::distributeSeats().
0 3987 posted 11 years ago by garciacarmonaam
The basic structure of making a page responsive
0 2212 posted 11 years ago by envane21
A simple left-right animation
0 2130 posted 11 years ago by envane21
Add class .green to class .payment-container and make it flash every 3 seconds
0 3094 posted 11 years ago by envane21
Submit function for Foundation framework
0 3005 posted 11 years ago by envane21
Used to automatically scroll up the page so that it is focused on user entry (mobile devices)
0 3014 posted 11 years ago by envane21
Wordpress Loop - WP_Query
0 2077 posted 11 years ago by alanyoshida
First you need to write your script. In your theme folder create a folder called something like 'js'. Create a file in that folder for your javascript. E.g. your-script.js. Add your jQuery script to that file (you don't need <script> tags in a .js fi...
0 3118 posted 11 years ago by designermedia
I have been trying to solve my problems on stackoverflow, but none seems to help. Hopefully someone here could help me.
0 3550 posted 11 years ago by raymondeu
Configure program for CalAmp lmu-800 and skypatrol nitro gps avl , (works with every device who support AT Command)
0 4065 posted 11 years ago by hidroxido
Allows for forname.o'[email protected]
0 2449 posted 11 years ago by flatearthcomms
Using cURL to get webpage DOM
0 1689 posted 11 years ago by mos666
This is a simple PHP class that can be used to produce nicely formatted reports from unorganized data.
0 3276 posted 11 years ago by COBOLdinosaur
This source code contains two files: 1) result.php is a php webpage which expects a post request and renders some static results 2) mycurl.php uses curl to post programmatically some data to the result.php and after rendering the result is being re...
1 3846 posted 11 years ago by pligor
Snippet for a parent page to list child pages with excerpts.
0 3282 posted 11 years ago by hussong
I can't say I can rely on mb_detect_encoding(). Had some freaky false positives a while back. The following code will detect when you need to enconde or decode it.
1 3169 posted 11 years ago by fackz
1 ... 12 13 14 15 16 ... 552