Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
I modified this excellent Perl script, created by John Watson (http://www.watson-net.com) to be used with TextMate to reformat your HTML for easier readability. Here's how to use it:
1. In TextMate > Bundles > Bundle Editor > Show Bundle Editor...
1
2028
posted 16 years ago by rareyman
link to plugin http://projects.exvoto.org/jquery-extjsoncookie/
1
1769
posted 16 years ago by almazom
A simple, non-recursive function that I use to return the first element with an ID that contains a certain ID string.
Sometimes, APS.NET appends the Naming Container ID to the IDs of controls, and in instances where the ClientID of a control you wa...
0
1327
posted 16 years ago by erintechspired
PowerShell script.
Get all installed in system COM objects.
0
1896
posted 16 years ago by AlexLocust
This is a sound manager class for a small project I've been working on for the past two days. Nothing really major or new, but just some simple functionality including play/stop/forward/previous functions that may help prove useful to someone. If you...
1
2178
posted 16 years ago by alvincrespo
C#
Obfuscating .NET code so as to hide implementation details from public view (using BabelObfuscator)
If you weren't already aware, you can use a product like [Reflector.NET](http://www.red-gate.com/products/reflector/) to see all of the source code (that's right, the code) of a .NET assembly (DLL, EXE, etc). This is a real problem when your code is...
1
2327
posted 16 years ago by pckujawa
C#
Get the network interface card (NIC) from a known MAC address (and get the IP addresses on that NIC)
The code shows how to take a known MAC (e.g. "00:00:00:11:22:33") and locate the NIC which has that MAC. Note that the built-in MAC class for .NET is called PhysicalAddress (in System.Net.NetworkInformation). PhysicalAddress.Parse can take a string,...
0
3056
posted 16 years ago by pckujawa
default.aspx?id=5
queryString('id') will return 5
Also this will convert to lower case. IIS / ASP.net is not case sensitive so my function isn't either.
0
1423
posted 16 years ago by derekholmes
Use this code in a WordPress template with the Geo Mashup plugin (see URL) to include a global map within a post or page, centered on that post or page's location, with marker highlighted.
0
1801
posted 16 years ago by cyberhobo
I include this in anything I'm developing, so I can easily inspect the contents of arrays and objects.
0
1973
posted 16 years ago by joshuamilford
There has to be a better way to do this rather than using regular expressions to remove the various namespaces within the ATOM feed. Also variables could be reused (currently used for teaching so helpful to explain process). Based on:
http://www.r...
2
2027
posted 16 years ago by eddequincey
Function to fix char set and collation on mysql tables, see [this link](http://www.barattalo.it/2010/02/11/php-function-to-fix-collation-on-database-fields-of-mysql/ "Fix encoding on db")
for examples and more infos.
1
2560
posted 16 years ago by ginoplusio
[ИÑточник](http://sreznikov.blogspot.com/2010/01/supplant.html)
0
1628
posted 16 years ago by vissper