Snippets Tag
text javascript markdown PHP php python JavaScript sh CSS html ActionScript 3 c_cpp java HTML jQuery css sql C# csharp Bash Objective C Other Ruby scss json SQL Python swift golang typescript xml powershell Java vbscript Apache yaml ASP MySQL dart r C ActionScript kotlin objectivec batchfile Rails abap ruby sqlserver apache_conf liquid ini Regular Expression XML XHTML Perl VB.NET DOS Batch jsx Groovy tsx mysql iPhone sass Visual Basic TYPO3 dockerfile C AppleScript Windows Registry gitignore Windows PowerShell handlebars pgsql SVN less groovy twig Lua XSLT jade ColdFusion latex SASS autohotkey Django makefile rust stylus lua Haskell ejs properties Emacs Lisp R fortran html4strict elixir pascal scala snippets MXML diff glsl svg SAS Smarty d haskell matlab perl toml MatLab applescript clojure html_ruby jsp nix verilog TCL coffee AutoIt Awk LaTeX PL/SQL smarty textile Assembler Delphi Symfony assembly_x86 jsoniq mel HAML Makefile Pascal Textpattern asciidoc dot eiffel io razor rst tex Clojure Processing Prolog Pseudocode Scala Scheme VHDL actionscript c9search cirru coldfusion django eZ Publish elm erlang forth haml haxe livescript plain_text scheme space swig vala vb vhdl vproperties xquery

[php] - Whois query

A little function to query some NIC databases.

[php] - Is older than

This function helps you checking a UNIX timestamp with
human readable time formats like 1m, 2d or 4y.
[ (s)econds, (m)inutes, (d)ays, (y)ears ]

[php] - Read and write tab seperated files

Two simple functions to read an write tab seperated files (like CSV files, etc).
(BTW: The files are good readable for humans ;-)

[php] - Path get last argument

This function returns the last argument (filename or directory name) of an given path.

[csharp] - Random helper class

A simple class that provides often needed methods like creating random strings, numbers, colors and booleans. Ready to copy and paste :)

[csharp] - How to work with hexadecimal colors

This example shows how you can convert hexadecimal colors like they are used in HTML to a .NET color object and vice versa.

[csharp] - Focus a control of a Windows Form

Shows how to focus a control in a Windows Form.
If you are working with Web forms it is very simple, you just use "WebControl.Focus()" but this does not work for Windows Forms...

[php] - FTP file upload example

Shows how to upload a single file to a FTP server.

[php] - Random string

Generates a random string

[php] - Randomize SQL query results

There are many ways to get random database results, here I explain two of them.