Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Get the text in between more text in a string. Accepts $content,$start,$end & $is_string as parameters.
1
1768
posted 13 years ago by o0110o
It's a 3 part process, first is the PHP that you need to run, which includes the appropriate scripts and styles into the admin header, then you need an html button and input field to put the stored value in, then you need some jQuery to open the popu...
0
1785
posted 13 years ago by FatFolderDesigner
Set the desired date within the function.
Make some images and label them "1.jpg, 2.jpg, 3.jpg, etc...".
That's how it's done.
1
2701
posted 13 years ago by o0110o
As portrayed by the example found in the [Advanced Bash Scripting guide](http://tldp.org/LDP/abs/html/here-docs.html) this demonstrates a few techniques
0
2663
posted 13 years ago by symsec
As portrayed by the example found in the [Advanced Bash Scripting guide](http://tldp.org/LDP/abs/html/here-docs.html) this demonstrates a few techniques
0
2566
posted 13 years ago by symsec
Snippet obtained from Stackoverflow courtesy of [Loki Astari](http://stackoverflow.com/a/130428)
0
3989
posted 13 years ago by symsec
This function will force a file to be downloaded. It accepts $_path as a parameter.
1
2871
posted 13 years ago by o0110o
This function performs several checks to make sure it's getting the correct IP address.
1
3249
posted 13 years ago by o0110o
A handy function to get the contents of a file with curl. Accepts $_path as a parameter.
1
3107
posted 13 years ago by o0110o
This function will use curl to see if a file exists at the location it's provided. It accepts $_path as a parameter.
1
3400
posted 13 years ago by o0110o
A function to get a files size via curl. Accepts $_path, $_unit, $_float, $_username & $_password; In the listed order.
1
3373
posted 13 years ago by o0110o
This is a function to retrieve the mime-type of a file by checking the header response with curl. It accepts the file-path as a parameter & it also has a fallback for empty returns.
1
3909
posted 13 years ago by o0110o
How to remap a value to another inside a mysql query select.
0
1991
posted 13 years ago by ginoplusio
Here is a function that read the number of times a url is shared on twitter.
1
2160
posted 13 years ago by ginoplusio
Examples of use of Enum type, like how to iterate its items.
1
1668
posted 13 years ago by denakitan
Utility class that abstracts the creation of a Excel spreadsheet through Interop, and helps on adding and format its contents.
1
2645
posted 13 years ago by denakitan
Cuando se da el caso que tienes 2 servidores diferentes y el ServiceName de oracle es el mismo...En el momento de crear un dblink hay que especificar bien la cadena de coneccion para que se direccione al otro servidor y no escoja el serviceName del e...
0
1376
posted 13 years ago by thescorpion
Recursively ignore files matching the defined pattern starting from the current directory
0
3741
posted 13 years ago by claudiodev
Installs drupal using the provided database credentials with the provided localization, creates admin account with the given name and password
0
1405
posted 13 years ago by klickreflex
Tool to download youtube videos with STDIN (PIPE) support for playlist parsers like umph or youParse
(PYTHON3+)
0
2741
posted 13 years ago by pantuts
This allows you to change the logo, title text, and url for the login logo in wordpress.
1
1725
posted 13 years ago by bitsculptor
Example of the usage of Directory IO class and the parsing of strings to DateTime.
1
1908
posted 13 years ago by denakitan
Snippet to illustrate how to bind a ComboBox to a Dictionary.
0
2072
posted 13 years ago by denakitan
Any valid json object will be recursively traversed building a nested unordered list of its properties and their values. This example parses the json entered in the text area into an object that is passed to the json_tree() function. I use the twit...
0
2067
posted 13 years ago by halk