Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 36 37 38 39 40 ... 553
A python IP generator works randomly. This project was made out of boredom. Have fun! For non obfuscated code, contact me at [email protected]
1 2528 posted 12 years ago by madfedora
More details here: https://communities.sas.com/ideas/1084
0 3880 posted 12 years ago by webonomic
Get all custom taxonomies that are attached to posts that have another custom taxonomy. Like fetching all categories that are attached to products that have the brand taxonomy "Nike".
0 1693 posted 12 years ago by JoshChris
Doing the echo with multiple concatenated bits of strings was very error prone and I was always getting parsing errors. The toggle format where you flip PHP on and off throughout the HTML is less error prone but is a real pain in the ass if you have...
0 2441 posted 12 years ago by COBOLdinosaur
Thanks to Stephen Harris for this > http://wordpress.stackexchange.com/questions/50425/show-current-navigation-path-from-menu
1 2008 posted 12 years ago by adambundy
With this script a new user gets created and gets his own VirtualHost and database. The username is used for building the domain, so the username "test" leads to the domain test.local. The password for the MySQL account used for creating the datab...
1 1737 posted 12 years ago by derbenni
Change the Views Slideshow pager items in <li> elements so that they are easier to style
0 1436 posted 12 years ago by mktimes5
Determine the minimum number of coins for change Given any number between 1 and 99, determine how to give change with the minimum number of coins. You can assume that the coins are 1c, 2c, 5c, 10c, 20c and 50c.
1 2577 posted 12 years ago by rnavanee
Calculate The Second Highest Frequency Write a method that accepts a String and returns the character with the second highest frequency. For example "aabbbc" would return 'a'. If the string contains spaces, they can be disregarded from the count.
1 2507 posted 12 years ago by rnavanee
0 1330 posted 12 years ago by larscmagnusson
0 1246 posted 12 years ago by larscmagnusson
Find a key from a list of values​​. parameters: sbValues​​: List of Values 'A;B;C;D' sbToken: Key 'B' sbSeparator: ',' or any defined sbValues Example: select FSBFINDTOKEN('A;B;C;D','B',';') from DUAL; ------------------- Y
0 3579 posted 12 years ago by ceduard0
A little snippet that I use to hide or show text using jquery
1 1516 posted 12 years ago by TwistedEinstein
1 1306 posted 12 years ago by MrBlaise
Shows an example of what a closure is. Result: Counter=1 Counter= 2
1 1298 posted 12 years ago by venu1729
Genius stuff right here from https://gist.github.com/BronsonQuick
1 2912 posted 12 years ago by JoshChris
Create new user account programmatically - drupal 7
0 1387 posted 12 years ago by pictonio
http://sortwithprimes.webs.com/ Deeper description on how it works.
0 1462 posted 12 years ago by Henkish_92
How would you validate the number of days in a given month?
0 2958 posted 12 years ago by satie83
Include any external text file within html; HTML, CSS and Javascript all work.
0 2511 posted 12 years ago by nshakin
The first thing you might notice is that I am not using nested lists to layout the menu. That is an old XHTML layout technique. I am using the more semantically correct HTML5 <nav> tag. Menus are not lists, they are navigation so using the more moder...
0 2921 posted 12 years ago by COBOLdinosaur
If you know a libref or fileref, the PATHNAME function can be used to return the physical location. If the libref refers to more than one physical location, all of those locations will be returned, in quotes, separated by spaces, with the whole li...
0 3734 posted 12 years ago by webonomic
Increase server memory limit in wp-config.php
0 1364 posted 12 years ago by fweeeb
Self updating javascript copyright date
0 2378 posted 12 years ago by nshakin
Check if current post type is a custom post type – WordPress. Returns a true/false-statement. Can be used outside The Loop.
0 4014 posted 12 years ago by jonasethomsen
Works in SP2013 (and I believe 2010). Provides site collection URL without trailing "/"
0 2635 posted 12 years ago by rumremix
Simple function to include in your script to enable multi-line text-overflow. See the jsfiddle (http://jsfiddle.net/eAyyL/) for details on the necessary CSS and HTML layout.
0 2675 posted 12 years ago by JoshChris
0 1795 posted 12 years ago by misnoul
A simple way of displaying a random list item. Could be used to randomly display anything. Demo: jsfiddle.net/uRd6N/ (keep clicking run)
0 2900 posted 12 years ago by i-am-andy
1 ... 36 37 38 39 40 ... 553