Welcome To Snipplr


Everyone's Recent Snippets



1 ... 59 60 61 62 63 ... 566
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 360 posted 9 years ago by symsec
Snippet obtained from Stackoverflow courtesy of [Loki Astari](http://stackoverflow.com/a/130428)
0 484 posted 9 years ago by symsec
Get the absolute webroot URL.
1 425 posted 9 years ago by o0110o
This function will force a file to be downloaded. It accepts $_path as a parameter.
1 422 posted 9 years ago by o0110o
This function performs several checks to make sure it's getting the correct IP address.
1 592 posted 9 years ago by o0110o
A handy function to get the contents of a file with curl. Accepts $_path as a parameter.
1 483 posted 9 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 558 posted 9 years ago by o0110o
A function to get a files size via curl. Accepts $_path, $_unit, $_float, $_username & $_password; In the listed order.
1 599 posted 9 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 608 posted 9 years ago by o0110o
How to remap a value to another inside a mysql query select.
0 504 posted 9 years ago by ginoplusio
Here is a function that read the number of times a url is shared on twitter.
1 468 posted 9 years ago by ginoplusio
Basic examples on the usage of the DateTime objects.
1 418 posted 9 years ago by denakitan
Examples of use of Enum type, like how to iterate its items.
1 419 posted 9 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 664 posted 9 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 275 posted 9 years ago by thescorpion
Basic examples on using information stored as Resources.
1 388 posted 9 years ago by denakitan
Recursively ignore files matching the defined pattern starting from the current directory
0 348 posted 9 years ago by claudiodev
Delete a defined number of rows from a db2 database table
0 345 posted 9 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 311 posted 9 years ago by klickreflex
javascript arrays up and down
2 342 posted 9 years ago by kutyadog
Example of how to build and call a class or object
0 474 posted 9 years ago by kutyadog
Tool to download youtube videos with STDIN (PIPE) support for playlist parsers like umph or youParse (PYTHON3+)
0 448 posted 9 years ago by pantuts
This allows you to change the logo, title text, and url for the login logo in wordpress.
1 455 posted 9 years ago by bitsculptor
Example of the usage of Directory IO class and the parsing of strings to DateTime.
1 440 posted 9 years ago by denakitan
Snippet to illustrate how to bind a ComboBox to a Dictionary.
0 628 posted 9 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 510 posted 9 years ago by halk
Emulates the StringBuilder() function found in .NET Languages
0 257 posted 9 years ago by jswaringen
this is how to instantiate a dropdown shadow using js code, works in IE10 and windows store apps. Important for when you want use templates.
0 603 posted 9 years ago by Syllogism
raty named jquery plugin for star rating
0 339 posted 9 years ago by ggmittal
This gives the code for creating a custom post type with all the necessary labels and even custom message support, and it gives the code for a custom taxonomy with that post type.
0 458 posted 9 years ago by bitsculptor
1 ... 59 60 61 62 63 ... 566