Welcome To Snipplr


Everyone's Recent Snippets Tagged c



Value converters allow ease of converting code-behind values to dependency property values
0 1684 posted 16 years ago by davidsi
Read the [best article on the subject - Exploring Secrets of Persistent Application Settings](http://www.devx.com/dotnet/Article/33944/1954) - and then the following links if desired. (Note, I recommend reading [this forum post about settings not bei...
0 3066 posted 16 years ago by pckujawa
You can change your dynamic binding eval text with this method. This method should be in same codebehind
0 1696 posted 16 years ago by emregulcan
Loop through the ListView Control within 2nd level collection. 2nd level means it's within another control (ie table html generic control).
0 2352 posted 16 years ago by the_menace
Snippet out of my C# KNN implementation. Uses leave-one-out cross validation tuning with our given K to find our nearest neighbors.
0 1728 posted 16 years ago by ahawker
0 1157 posted 16 years ago by fredblogs
Another common task when working with strings is to replace a set of characters with a set of escape sequences. Sometimes the replacement is very easy - you only have to place a backslash (or another character) before every occurrence of an escaped c...
0 2431 posted 16 years ago by quangnd
Example code to exercise a Crystalfontz 533 display from a 8051 using Keil C51.
0 2092 posted 16 years ago by jimfred
From Keil C51 examples, TEST.C: ISD51 Demo for TI MSC 1210. Polled (non-interrupt) mode. Work-around for dropped-characters related to stop-bit problem: Clear SCON1.5 (or SM2_1).
0 1924 posted 16 years ago by jimfred
This class uses static methods to create html controls on the fly in .NET
2 2043 posted 16 years ago by mpcircuitry
0 1483 posted 16 years ago by wearetherock
This program show two columns of temperature. In left - t of celsius, in right - t. of fahr.
0 1507 posted 16 years ago by iLLUMIN
0 1313 posted 16 years ago by wearetherock
The original string (str) will be changed after calling this function, so if you need it make a copy of it.
0 1947 posted 16 years ago by Menda
bash 3-line shell script for visualization of java class dependencies with graphviz. Please see my blog post for details and leave comments there.
0 1657 posted 16 years ago by benjamin
bash 3-line shell script for visualization of c++ class dependencies with graphviz. Please see my blog post for details and leave comments there.
0 1671 posted 16 years ago by benjamin
This code is a demonstration of how to do fast scientific computation in mex functions using the armadillo library. See my blog post for details and leave comments there.
0 1960 posted 16 years ago by benjamin
0 1390 posted 16 years ago by vas3k
1 1813 posted 16 years ago by jasonseney
A style of code reuse. Breaking methods (in this case MVC controller) into very small reusable atomic chunks that either perform an operation then return an ActionResult OR return null, then using with the null-coalescing operator.
0 1737 posted 16 years ago by jmcd
0 1827 posted 16 years ago by tandouri
CGI
0 1449 posted 16 years ago by renatoelias
<pre> To compile $ gcc -lXtst -lX11 Util_KeyPressSimulator.c To create shared library $ gcc -lXtst -lX11 -c Util_KeyPressSimulator.c -o Util_KeyPressSimulator.o $ gcc -lXtst -lX11 -shared -o Util_KeyPressSimulator.so Util_KeyPressSimulator.o...
0 1808 posted 16 years ago by wearetherock
Compile, put exe in cgi-bin folder, and post form data to it.
0 1644 posted 16 years ago by Zufolek
Useful in cases where the object author has specified their own serialization that doesn't work for you.
1 2124 posted 16 years ago by rengber
Definitely falls into the category of "simple thing I shoulda memorized years ago", but whatever:
0 1792 posted 16 years ago by rengber