Code Snippets Timeline
|Longest Word in String - 16 lines source = Whopping 23K Executable!||MalcolmX86||Pascal||String||
I compiled this 16 line program with freepascal , and it was 23K ! Zouhair Tele asked : Count the number of words in a given string. Word is a sequence of characters separated by spaces or punctuation marks (dot, comma, semicolon, colon). For example: the string “abc d, efg,..hijkl.mno” - 5 Working with Strings please can you help me with this
|22 hours ago|
|Add dated records to MSSQL using while loop||kidmizere||SQL||records||
This loop adds a bunch of records to your database with a date field pre-populated. Works well for pre-populating a table for filling out daily by a form
|22 hours ago|
|PrestaShop Product Quick Look Module||AlastairBrian||PHP||
This Prestashop module provides instant view of products on home and category pages without going on product page.
|Pad left with a give character||demiusza||SQL||
Left pads a string with the given character
|video.js simultaneous videos playing - pause or stop other videos HTML5 flash||darith||ActionScript 3||pause||
stop other videos playing, HTML5 and flash
|PHP Installation file issue||PLATANIUM||PHP||php||
I created myself an install file using PHP. What this file does is creates folders and puts in each folder the corresponding file from the zip. Afterwards these files are moved to other folders which are already created or will be created by the install file. (I know this might sound as a stupid procces instead of just moving the files to the folders the first place but theres a reason for this).
The problem is that when I install the zip it creates the folders with the files and creates the newer folders where the files are supposed to be move but I have to install the zip two or three times for all of the proccess to be done properly.
Why could this be?
Here is the file I have and hopefully I have explained myself :).
|Using Tiles with Spring MVC||tedg||Scala||
The way to tell Spring MVC to resolve logic view names to Tiles "definition" name is, in a DispatcherServlet configuration file, define a bean of type UrlBasedViewResolver with viewClass org.springframework.web.servlet.view.tiles2.TilesView
Hover events can be irrelevant on mobile devices relying on touch events. This script switches the classical hover events for desktop browsers to touch events.
|Resize Drawable Image||cruddell001||Java||Monday|
|Hard iOS7 overlapping fix||cruddell001||Objective C||Monday|
|Download Image from URL||cruddell001||Objective C||Monday|
|Easy iOS7 overlapping fix||cruddell001||Objective C||Monday|
|post data to script for Android 3.0||cruddell001||Java||Monday|