Snippets of the day – Tuesday, January 20, 2015

Posted on Leave a commentPosted in Snippets

Here are some of the most recently published snippets! Alert Dialog How to create an alert dialog with AlertDialog class Open the snippet Author: Tech_JA IOS display the “No data is currently available. Please pull down to refresh.” message. how to display the “No data is currently available. Please pull down to refresh.” message. Open […]

Snippets of the day – Monday, November 24, 2014

Posted on Leave a commentPosted in Snippets

Here are some of the most recently published snippets! Sending email via AuthMailer service using PHP Sending email via AuthMailer service using PHP Open the snippet Author: JackLatanis Calculate the occurrences of words in Rss feed Creates a dictionary with keys=words and values=occurrences of that word in the given Rss (specified by the URL). The […]

Snippets of the day Monday – November 03, 2014

Posted on Leave a commentPosted in Snippets

Here are some of the most recently published snippets! Using promise() with JQuery animate With jQuery 1.5 the $.ajax implements the Promise interface. So you can use done() fail() and always() on the returned promise object returned from the ajax call. You can do the same when invoking the animate() function. The animate function returns […]

Snippets of the day – Thursday, October 09, 2014

Posted on Leave a commentPosted in Snippets

Here are some of the most recently published snippets! field base sample array Drupal 7 programmatically-added field base array Open the snippet Author: bertelsen.kyle map, reduce, flter….. MY WAY funky functions that operate iteratively against an array or something similar Open the snippet Author: sTiLL-iLL Java: read from USB using RXTX library This is a […]

Story of a snippet: manipulating strings and more with Swift

Posted on Leave a commentPosted in Snippets

Swift is a new programming language for iOS and OS X app development, combining many parts, types and concepts of C and Objective-C languages. In this post we will have a quick look of some basic concepts like manipulating strings, declaring and looping arrays, using switches for checking conditions. We want to thank our user marksimon232 for […]

Snippets of the day – Monday, July 26, 2014

Posted on Leave a commentPosted in Snippets

Here are some of the most recently published snippets! Java SWT: Combobox with AutoSuggestion feature “This component can be safely used when you want to have a combobox with the capability to display automatic filtered suggestions based on the text already entered. It uses a couple of callback actions so that the caller can specify […]

Story of a snippet: how to avoid complicated “IF” statements

Posted on Leave a commentPosted in Snippets

Today we want to focus on the very nice snippet proposed by our user Miklós Prisznyák (mprisznyak): “how to avoid complicated “IF” statements”. The snippet code is available at the following link. As you can see, Miklós provides an effective and good programming technique example to avoid too many nested and complicated “IF” statements. In a typical […]

Story of a snippet: Linux one liner bash code to detect file or directory from a given list

Posted on 3 CommentsPosted in Snippets

Today we want to go deep into a snippet posted by one of the most active users on snip2code: lbottaro. We’ll let him to explain how to use his snippet. Obviously, we used the Snip2Code embed feature to include the code in this post. 🙂 [iframe id=”embedFrame” style=”width: 600px; height: 120px;” src=”http://www.snip2code.com/Embed/27077/Linux-one-liner-bash-code-to-detect-file”] In Linux OS developers […]