Smipple is a social service for saving, storing, organizing, and sharing snippets of code with your friends and coworkers. Make friends. Improve your coding skills. Earn bragging rights.

Find out more

Recent Code Snippets

Title User Language Tags Description Date
JSF :: Bean method executed before JSF page is rendered - (PreRenderViewEvent) Forero Java java java ee jsf Use the JSF System Event "javax.faces.event.PreRenderViewEvent" in a Facelet to perform custom task... 13 hours ago
JSF::Base backing bean utility class Forero Java java java ee jsf A JSF Managed Bean @RequestScoped with a set of very convenient methods that can be used anywhere in... 13 hours ago
VBA :: Protect and unprotect Excel sheets and workbook Forero VB.net excel vb vb excel vba Use VBA, VB for applications, to write two Excel macros: (1) Protect (2) Unprotect A passw... 13 hours ago
VB.net::Read a SQL Server table into a RecordSet Forero VB.net vb vb.net Use VB.net to read a table from a SQL Server DB into a RecordSet 13 hours ago
VBScript :: Write a line in a text file Forero VB.net vb vbscript Use VBScript to add a line to a text file. You can use this to write in a log finle. 13 hours ago
VBScript :: Create or open a file (text file) Forero VB.net vb vbscript Use VBScript to create or open a text file. You can use this to write a log file. 13 hours ago
groupby in julia with DataFrames tlamadon Matlab DataFrame julia run a for loop on a groupby 22 hours ago
Select statement sent out as an HTML Email from SQL Server Skitter SQL HTML SQL email select This snippet enables an HTML formatted query to be sent as an HTML email. Fields are separated by H... 1 days ago
Save Windows credential jhwoo C++ credential credwrite windows Save a credential for auto-login to remote desktop server using CredWrite() 2014-04-17
Set Group Policy jhwoo C++ grouppolicy registry windows Change Windows group policy settings programmatically. 2014-04-17

Popular Code Snippets

Title User Language Tags Description Date
Center a DIV with CSS feippe CSS center css div How to put a div in the middle of the window. 2011-03-10
Simple CSS reset netnoise CSS css minimal reset A simpler CSS reset by Russ Weakley <http://www.maxdesign.com.au/articles/css-reset/> 2010-05-04
Common @media queries joost.kiens CSS css3 Most common @media queries for handheld devices and desktops 2011-02-08
Print the url after your links bramloquet CSS css media paper print url Easy way to print the url after your links wit CSS 2010-04-22
Email Validate navjotjsingh PHP email php validate validate PHP code to validate email addresses. 2009-10-31
CSS3 box-shadow with page curl effect joost.kiens HTML box-shadow css3 CSS3 Box-shadow with a nice effect. Found on http://matthamm.com/box-shadow-curl.html 2010-12-07
New bulletproof @fontface syntax joost.kiens CSS @fontface Use a '?' to create a query string, this fixes a bug in the src attribute for <IE9. Works for Andr... 2011-02-07
Rounded Corners Nicki CSS css3 rounded CSS Rounded Corners 2010-08-30
jQuery animated scroll mrkstudios JavaScript jquery scrolling jQuery animated scroll 2010-12-31
Transparency for ie, firefox and safari Alex CSS browser fix ie mozilla safari transparency transparent Have a transparent element / background in IE, safari and firefox 2009-07-21