Welcome To Snipplr


Everyone's Recent Snippets Tagged c



« Prev 1 2 3 4 5 6
  1. FAV

    C Program to read mouse in console via GPM

    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...
    Pascal 0 views posted 2 years ago by xyzeugene
  2. FAV

    Swift: Get Random Boolean

    This function will help you get a random true or false boolean value.
    Objective C 5 views posted 3 years ago by chrisaiv
  3. FAV

    Mutex Threads with C

    These are the basic commands to use Mutex Threads in C
    C 1 views posted 3 years ago by msicode
  4. FAV

    C++ SMS source code on how to send SMS text messages using HTTP

    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....
    C++ 6 views posted 5 years ago by Gupta86
  5. FAV

    C#/C++ Shared enum

    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.
    C# 6 views posted 5 years ago by xXxPizzaBreakfastxXx
  6. FAV

    Programación en C de una ATM en un módulo GLCD con la placa de evaluación EasyLV18F

    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.
    C 3 views posted 5 years ago by eiger_824
  7. FAV

    Date format in C

    C 11 views posted 7 years ago by mlecho
  8. FAV

    Read hexadecimal argument from command line

    This piece of code will read a hex argument such as: ff or ab from your command line and stores it as a integer
    C 6 views posted 7 years ago by vdevos
  9. FAV

    Two Binary Search Functions in C

    Two versions of binary search -- one recursive, one iterative -- for an array of strings. Both assume that your array index fits within an integer.
    C 14 views posted 8 years ago by rtperson
  10. FAV

    Global Variables in Objective-C (Singleton)

    How to make Global Variables (Singleton) in Objective-C
    Objective C saved by 2 people 19 views posted 8 years ago by neoline
  11. FAV

    Use function from another class

    Accessing Method from other Classes Objective-C
    Objective C saved by 2 people 7 views posted 8 years ago by neoline
  12. FAV

    Localized Language Tutorial

    How to add multiple Language localization to an App.
    Objective C saved by 2 people 6 views posted 8 years ago by neoline
  13. FAV

    Global System Object extensions for easier conditionals (VB.net example)

    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.
    VB.NET 3 views posted 8 years ago by bryanlyman
  14. FAV

    iOS Show Full Screen

    Objective C 1 views posted 8 years ago by streamt
  15. FAV

    Add / remove view controllers to tab bar controller

    Objective C 1 views posted 8 years ago by FumarMata
  16. FAV

    Add a single UIViewController controller to tabBarController

    Objective C 0 views posted 8 years ago by FumarMata
  17. FAV

    Get Key information with GTK

    C 2 views posted 8 years ago by FArcellier
  18. FAV

    uncrustify c-like sourcecode

    you may not want to use the buggy apt version. just compile it yourself
    Bash 0 views posted 8 years ago by abstraktor
  19. FAV

    Register Autostart Application

    C 3 views posted 8 years ago by the_coder
  20. FAV

    Hashing function for C

    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...
    C 8 views posted 8 years ago by davince
  21. FAV

    C puzzler for software developer role

    C 5 views posted 8 years ago by adino
  22. FAV

    Digit Check in C

    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...
    C 2 views posted 8 years ago by rtperson
  23. FAV

    System Object extensions for easier conditionals (Extending Base Object Types)

    .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...
    C# 1 views posted 8 years ago by bryanlyman
  24. FAV

    Check SqlDataReader Column Is Exists (extension method)

    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...
    C# 1 views posted 8 years ago by emregulcan
  25. FAV

    itoa implement for c

    A implementation for itoa with c. itoa is function that convert a integer to a string.
    C 2 views posted 8 years ago by vikiyou
  26. FAV

    Create UITableView

    Objective C 3 views posted 8 years ago by streamt
  27. FAV

    Show Modal Dialog

    Objective C saved by 1 person 3 views posted 8 years ago by streamt
  28. FAV

    Show UIPopoverController

    Objective C saved by 2 people 1 views posted 8 years ago by streamt
  29. FAV

    digital C printing New York

    duratrans printing
    HTML 0 views posted 9 years ago by leida011
  30. FAV

    WPF to/from WindowsForms colors conversion

    C# saved by 2 people 0 views posted 9 years ago by dzr_gregory
« Prev 1 2 3 4 5 6