Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This is a simple HTML5 CSS3 website template you can customize it according to your needs. It has a clean and modular code and css. No fancy stuff just basic elements presents like : slideshow, social icons and a navigation bar. Its cross browser com...
0
1176
posted 12 years ago by flanker
This is a code snippet that retrieves the signatures from a pdf document and the reason for them. It does that in approximately 200ms for one signature.
0
1008
posted 12 years ago by alexedy
The Command pattern aims to encapsulate method invocation, requests or operations
into a single object and gives you the ability to both parameterize and pass method calls
around that can be executed at your discretion. In addition, it enables you...
0
716
posted 12 years ago by timsommer
In software engineering, a mediator is a behavioral design pattern that allows us to
expose a unified interface through which the different parts of a system may communicate. If it appears a system may have too many direct relationships between modu...
0
726
posted 12 years ago by timsommer
This class is used to store global information for general access throughout the application.
0
766
posted 12 years ago by ryantxr
The module pattern was originally defined as a way to provide both private and public encapsulation for classes in conventional software engineering.
In JavaScript, the module pattern is used to further emulate the concept of classes in such a way t...
0
683
posted 12 years ago by timsommer
In object literal notation, an object is described as a set of comma-separated name/
value pairs enclosed in curly braces ({}). Names inside the object may be either strings or identifiers that are followed by a colon. There should be no comma used...
0
603
posted 12 years ago by timsommer
In conventional software engineering, the singleton pattern can be implemented by
creating a class with a method that creates a new instance of the class if one doesn't In conventional software engineering, the singleton pattern can be implemented b...
1
791
posted 12 years ago by timsommer
In conventional software engineering, the singleton pattern can be implemented by
creating a class with a method that creates a new instance of the class if one doesn't exist. In the event of an instance already existing, it simply returns a referen...
1
839
posted 12 years ago by timsommer
iconv -l to show all available encodes, replace xxx with you file ext
0
817
posted 12 years ago by rabc
I am using git and working on master branch. This branch has a file called app.js .
I have an experiment branch in which I made a bunch of changes and tons of commit. Now I want to bring all the changes done only to app.js from experiment to maste...
0
1125
posted 12 years ago by satie83
You have a schedule table (period, day, subject, room) with a primary key period,day to avoid duplicate bookings. You wish to display the schedule as periods, subjects and rooms in rows, and days of the week in columns.
0
843
posted 12 years ago by cahyadsn
Given a birthdate in @dob, here are two simple formulae for age in years :
(the second formulae is for age in years to two decimal places, ignoring day of month)
0
638
posted 12 years ago by cahyadsn
Function to prevent sql injection in Like queries, where the characters '_' and '%' can be dangerous.
0
1105
posted 12 years ago by TimoZachi
Load latest version of jQuery from Google Libraries API and de-register Wordpress version
0
1360
posted 12 years ago by i-am-andy
This is a callback example that can be used to conditionally display blocks on specific pages. In this example, I load all nodes with a specific field and return false if the value of that field is equal to the user id of the logged in user. The sni...
0
762
posted 12 years ago by chasecrawford
A little a small amount of neatest suff sold in Playstation Mobile network? PSN Card Language is actually expect to see those aspire. In the event the needing PSN Note Constraints in which will run you totally nothing accompanied by continue reading...
0
988
posted 12 years ago by peaceheart
I have a Git repository with few branches and dangling commits. I would like to search all such commits in repository for a specific string.
0
993
posted 12 years ago by satie83