Welcome To Snipplr


Everyone's Recent Snippets Tagged c



« Prev 1 2 3 4 5 6
Install GPM using installer such as apt or dnf All you have to do is save code with mouse.c file name and compile it : gcc -o mouse mouse.c -lgpm and you got a "mouse" program that executes l.sh on left, r.sh on right and m.sh on middle mouse...
0 3807 posted 8 years ago by xyzeugene
https://www.chrisjmendez.com/2016/10/21/swift-get-random-boolean/
0 4064 posted 9 years ago by chrisaiv
These are the basic commands to use Mutex Threads in C
0 3465 posted 9 years ago by msicode
Hey Guys, This is a short and straightforward article (or let’s say „tip” or „mini-review”) that presents how to send SMS messages from your own C++ (Cpp / C plus plus) application through HTTP. You will see, it is gonna be really easy....
0 4905 posted 10 years ago by Gupta86
If you are using c++/cli or UnmanagedExports, this is a useful way to share enum int values between c++ and c# code/DLLs without worrying about duplicated code going out of date.
0 1915 posted 10 years ago by xXxPizzaBreakfastxXx
Código final de la asignatura Microprocesadores y Microcontroladores de Tecnun - Universidad de Navarra (España). Curso 2013-2014. 3º Ingeniería en Sistemas de Telecomunicación.
0 3722 posted 11 years ago by eiger_824
0 3794 posted 13 years ago by mlecho
This piece of code will read a hex argument such as: ff or ab from your command line and stores it as a integer
0 5146 posted 13 years ago by vdevos
Two versions of binary search -- one recursive, one iterative -- for an array of strings. Both assume that your array index fits within an integer.
0 1554 posted 13 years ago by rtperson
How to make Global Variables (Singleton) in Objective-C
1 2910 posted 13 years ago by neoline
Accessing Method from other Classes Objective-C
1 2754 posted 14 years ago by neoline
How to add multiple Language localization to an App.
1 2692 posted 14 years ago by neoline
Because there is no way to use object extenders in vb.net here is an example of how you can get similar functionality. See the C# example for further info.
0 3484 posted 14 years ago by bryanlyman
0 1784 posted 14 years ago by streamt
0 3250 posted 14 years ago by FArcellier
you may not want to use the buggy apt version. just compile it yourself
0 1179 posted 14 years ago by abstraktor
0 1383 posted 14 years ago by the_coder
The General Hash Functions Library has the following mix of additive and rotative general purpose string hashing algorithms. * RS Hash Function A simple hash function from Robert Sedgwicks Algorithms in C book. I've added some simple optimization...
0 4509 posted 14 years ago by davince
Check that a given integer consists only of elements of a given set. It does a linear search through the set, so the assumption is that the set to search is relatively small. If you're chewing through a particularly large set of digits, you may want...
0 3439 posted 14 years ago by rtperson
.net 3.0+, To create stability in your code, you must check all inputs into a method to make sure they are valid . Often people overlook this step because of laziness, or because they aren't convinced that exceptions and assertions are actually in pl...
0 1434 posted 14 years ago by bryanlyman
This snippet is "extension method" for IDataReader. You can use this snippet below ; I assume you have datareader like that SqlDataReader dataReader = command.ExecuteReader(); if (dataReader.IsColumnExists("columnName")) { //do something...
0 2038 posted 14 years ago by emregulcan
A implementation for itoa with c. itoa is function that convert a integer to a string.
0 3639 posted 14 years ago by vikiyou
0 1701 posted 14 years ago by streamt
1 1693 posted 14 years ago by streamt
1 1592 posted 14 years ago by streamt
duratrans printing
0 1211 posted 14 years ago by leida011
« Prev 1 2 3 4 5 6