Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 197 198 199 200 201 ... 554
0 1026 posted 14 years ago by stephcode
Needed this to have the index.php or main blog page show the full content for the first two posts and then just the excerpt for the rest and still have pagination working.
2 1168 posted 14 years ago by rliverman
0 1178 posted 14 years ago by Turek
Template for a Object Literal Architecture in javascript, in this case jQuery
0 980 posted 14 years ago by athanassiadis
Place script into Automator (select "Run Shell Script" choose /usr/bin/ruby as the shell). You'll need to create a bit.ly account which will give you your API key for authentication.
0 1027 posted 14 years ago by insanedreamer
This snippet could be useful if you use an div based design eg. with a slider or something similar. it grabs variables from the base url splitted by "#". So you can browse to your site like "http://www.example.com/#1#2" and use the first and secon...
0 1311 posted 14 years ago by disas
Make sure Jackson core and Mappers are on classpath. So who can explain why userImage has a size of 7. I assume the byte-Array is encoded. What format?
0 1121 posted 14 years ago by hansamann
0 901 posted 14 years ago by JohnnyGamba
Generates random hex values ("You know, these guys: #0afec0, #c9f2d0, #9b923e")
1 1203 posted 14 years ago by mike_fowler
Custom sorting for events based on a custom field needs to be added to navigation-links.php requires plugin: http://wordpress.org/extend/plugins/ambrosite-nextprevious-post-link-plus/
0 1251 posted 14 years ago by hussong
After transferring a magento databse or restoring one, you'll most likely have to run this code to correct a few IDs that change automaticly.
0 880 posted 14 years ago by JustMadMike
Built for german numbers.
0 1122 posted 14 years ago by bionickid
Same as my other snippet of XHTML to test with for CSS, but also have included message code for different types of messages. Perfect for building and styling applications.
1 3307 posted 14 years ago by smoothdzion
0 1144 posted 14 years ago by dmertl
I'm using this out of laziness. PHP is slowing things down here, since it's not as close to C as XPath. A better solution would be to have an attribute specifically for search purposes (either in upper or lowercase).
0 1223 posted 14 years ago by iroybot
simple one minute, you must have whois on your system
1 853 posted 14 years ago by exu
Returns a list of the number of connections by IP.
0 2130 posted 14 years ago by klovera
1 1427 posted 14 years ago by cesarkohl
The regular expression must be in non-literal notation; so replace all backslashes with two backslashes (e.g. ^\w+$ -> ^\\w+$). All searches are case insensitive; you can change this by removing the ‘i’ flag in the plugin.
1 1249 posted 14 years ago by aelesbao
1 ... 197 198 199 200 201 ... 554