Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 331 332 333 334 335 ... 554
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 1675 posted 15 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 743 posted 15 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 950 posted 15 years ago by cyberhobo
I include this in anything I'm developing, so I can easily inspect the contents of arrays and objects.
0 1162 posted 15 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 1308 posted 15 years ago by eddequincey
0 1256 posted 15 years ago by wumbrath
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 1420 posted 15 years ago by ginoplusio
[Источник](http://sreznikov.blogspot.com/2010/01/supplant.html)
0 936 posted 15 years ago by vissper
1 1127 posted 15 years ago by adrianparr
Use this to detect key presses and respond to them.
0 909 posted 15 years ago by adrianparr
0 1065 posted 15 years ago by Monferno
To config Terminal do move (left and right) word-by-word: - Esc + b (left) - Esc + f (right) To configure it to Alt + left and right: - Open Terminal preferences (command + ,); - At Keyboard tab, select "control cursor left (or right)" and...
0 2953 posted 15 years ago by nalmeida
0 820 posted 15 years ago by kerpunk
Dropdown navigation is fairly inaccessible as it depends on hover events in 99.9% of cases. Tabbing through the navigation with the keyboard fails to reveal the dropdowns leaving those navigation items virtually inaccessible. Worse, each of the hidde...
0 2328 posted 15 years ago by chrisdpratt
0 835 posted 15 years ago by sismevu
0 2036 posted 15 years ago by mracoker
0 1057 posted 15 years ago by mracoker
1 1102 posted 15 years ago by fonnesbeck
0 916 posted 15 years ago by karmacode
1 878 posted 15 years ago by prudnikov
Requires TidyATL library for .NET - http://www.devx.com/dotnet/Article/20505/1763/page/2
0 1991 posted 15 years ago by tclancy
1 980 posted 15 years ago by sennesaelium
0 1115 posted 15 years ago by Ethyde
0 1257 posted 15 years ago by Ethyde
Here is a function you can use to automatically set up a complex folder structure with a specified file mode. All you have to do is create the "root" directory and pass an array describing the folder structure you would like to create in it. If the d...
0 956 posted 15 years ago by chlab
1 ... 331 332 333 334 335 ... 554