background preloader

Unnamed pearl

Unnamed pearl

Peity • progressive <canvas> pie charts Peity (sounds like deity) is a jQuery plugin that converts an element's content into a <svg> mini pie 2/5 donut 5,2,3 line 5,3,9,6,5,9,7,3,5,2 or bar chart 5,3,9,6,5,9,7,3,5,2 and is compatible with any browser that supports <svg>: Chrome, Firefox, IE9+, Opera, Safari. Download version 3.2.1 Uncompressed 8.7Kb jquery.peity.js Minified 3.6Kb (+gzipped 1.7Kb) jquery.peity.min.js Source github.com/benpickles/peity Pie Charts Call peity("pie") on a jQuery selection. You can also pass delimiter, fill, height, radius and width options. <span class="pie">1/5</span><span class="pie">226/360</span><span class="pie">0.52/1.561</span><span class="pie">1,4</span><span class="pie">226,134</span><span class="pie">0.52,1.041</span><span class="pie">1,2,3,2,2</span> JavaScript $("span.pie").peity("pie") Donut Charts Donut charts are the same as pie charts and take the same options with an added innerRadius option which defaults to half the radius. $('.donut').peity('donut') Line Charts $(".line").peity("line") Events

Learning How to Code Has Never Been Easier - StumbleUpon Programming isn’t just a niche specialization anymore, rather a necessity for tech-professionals regardless of the industry in which they work. Thankfully for them, it couldn’t be any easier.As such, there’s a big push lately to make coding literacy more widespread among the general populace. Even Mayor Bloomberg is getting in on the act, pledging to learn basic coding in 2012 as his New Year’s resolution. For those who want to learn to code, there are a number of online school coding programs that can guide them through the process. Codecademy Probably the most popular website at the moment for those looking to learn coding is Codecademy, a platform that emphasizes doing while learning. Treehouse Though it doesn’t have the name recognition of Codecademy just yet, Team Tree House is nevertheless a powerful way to learn coding. Code Year Rounding out the pack is Code Year, which is actually offered by the same folks behind Codecademy. Final Thoughts

Initializr - HTML5 Boilerplate project configurator jQuery: The Write Less, Do More, JavaScript Library Html Color Codes LESS - Dynamic CSS JavaScript Garden Function Declarations and Expressions Functions in JavaScript are first class objects. That means they can be passed around like any other value. One common use of this feature is to pass an anonymous function as a callback to another, possibly an asynchronous function. The function Declaration function foo() {} The above function gets hoisted before the execution of the program starts; thus, it is available everywhere in the scope it was defined, even if called before the actual definition in the source. foo(); // Works because foo was created before this code runsfunction foo() {} The function Expression var foo = function() {}; This example assigns the unnamed and anonymous function to the variable foo. foo; // 'undefined'foo(); // this raises a TypeErrorvar foo = function() {}; Due to the fact that var is a declaration that hoists the variable name foo before the actual execution of the code starts, foo is already declared when the script gets executed. Named Function Expression How this Works

HowStuffWorks &The Basics of C Programming& - StumbleUpon The previous discussion becomes a little clearer if you understand how memory addresses work in a computer's hardware. If you have not read it already, now would be a good time to read How Bits and Bytes Work to fully understand bits, bytes and words. All computers have memory, also known as RAM (random access memory). For example, your computer might have 16 or 32 or 64 megabytes of RAM installed right now. float f; This statement says, "Declare a location named f that can hold one floating point value." While you think of the variable f, the computer thinks of a specific address in memory (for example, 248,440). f = 3.14; The compiler might translate that into, "Load the value 3.14 into memory location 248,440." There are, by the way, several interesting side effects to the way your computer treats memory. int i, s[4], t[4], u=0; for (i=0; i<=4; i++) { s[i] = i; t[i] =i; } printf("s:t\n"); for (i=0; i<=4; i++) printf("%d:%d\n", s[i], t[i]); printf("u = %d\n", u); s[1000000] = 5;

KNACSS, mini framework CSS Get Started With HTML5: Tips, Showcases, And Coding Samples HTML5 is gaining more popularity and starting to evolutionise the entire web interface. Even some web developers quoted that HTM5 elements and visual effects are comparable to Flash. The new scripting style is easy to understand and capabilities to enhance the web interface is limitless. This article is intended to give readers an insight on what you should know about the HTML5 and most importantly some tips & tricks on creating lightweight, attractive, and interactive HTML5 pages. 1. Before we begin any further of this topic in HTML5, it will be good to check your current browser first. Here’s a quick tips to check your browser compatibility. To understand further the limitation of certain browser, you may refer to here. 2. Basic shadow effect on text This is the simplest one string code that transform your ordinary headline into a cool-looking text. Text on advance fire-like effect The next tip is to show you on how the HTML5 coding can be tweaked into a even cooler-looking text. 3. 4.

HTML5 and CSS3 Web Page Tutorials | Design Reviver - StumbleUpon This post is a roundup of latest free web design resources released during the month of March. This collection includes patterns, icons, themes, and… Continue Reading → These days many artists are collaborating with big brands in order to reach a mass market. As well as interiors, artists and designers are… Continue Reading → This post is a roundup of latest free web design resources released during the month of February. Continue Reading →

Mastering recursive programming For new computer science students, the concept of recursive programming is often difficult. Recursive thinking is difficult because it almost seems like circular reasoning. It's also not an intuitive process; when we give instructions to other people, we rarely direct them recursively. For those of you who are new to computer programming, here's a simple definition of recursion: Recursion occurs when a function calls itself directly or indirectly. A classic example of recursion The classic example of recursive programming involves computing factorials. An interesting property of a factorial is that the factorial of a number is equal to the starting number multiplied by the factorial of the number immediately below it. Listing 1. int factorial(int n) { return n * factorial(n - 1); } The problem with this function, however, is that it would run forever because there is no place where it stops. Listing 2. int factorial(int n) { if(n == 1) { return 1; } else { return n * factorial(n - 1); } }

CSS3 tooltips - Red Team Design If your icon or button has insufficient text or none at all, or it just needs some additional explanation, then you surely need a CSS3 tooltip for it. Why’s that? Because, as they have proved till now, they can help you improve your website usability. Having said that, in this article you’ll learn how to create your own CSS3 tooltips: no images, no javascript. View demo “Do I really need them?” The HTML title attribute is the default additional info you can use. How it’s made The method might be familiar to you, a relative positioned element who wraps an absolute positioned one. Below you can see the proper structure, note the two pointers (made using :before and :after pseudo-elements ) who overlap: How the “bordered” pointer is made Here are the **ingredients **that were used to create them: <a href="#" class="tooltip"> your text <span>Your custom description</span></a> Why an anchor? Just for compatibility reasons. Browser support

Distort Linear Gradients in Envelope Distorts in Illustrator I came across this trick randomly and decided to post about to get your opinion. It seems like a pretty cool little trick, but honestly, I haven’t found a great use for it. It is fun to play around with and great for experimenting, but can you see yourself using this trick for anything in particular? Envelope Distortion First, it might be helpful to give you a little background on Envelope Distortions. Make With Top Object In this method, the top most vector shape acts as the envelope for the artwork below.To apply this distort, select your top most vector shape, the artwork you want to distort, and go Object > Envelope Distort > Make with Top Object (Command Option C). Make With Mesh In this method, Illustrator creates the shape for you with editable mesh point to control how the distortion affects the artwork.To apply this distort, select your artwork and go Object > Envelope Distort > Make with Mesh (Command Option M). Make With Warp Distort Linear Gradient Option

Related: