background preloader

Introduction to Algorithms (2005) - Download free content from MIT

Introduction to Algorithms (2005) - Download free content from MIT

Java Interfaces Java includes a concept called interfaces. A Java interface is a bit like a class, except you can only declare methods and variables in the interface. You cannot actually implement the methods. Interfaces are a way to achieve polymorphism in Java. I will get back to this later in this text. Java Interface Example Here is a simple Java interface example: public interface MyInterface { public String hello = "Hello"; public void sayHello(); } As you can see, an interface is declared using the Java keyword interface. The interface contains one variable and one method. System.out.println(MyInterface.hello); The method, however, needs to be implemented by some class, before you can access it. Implementing an Interface Before you can really use an interface, you must implement that interface in some class. public class MyInterfaceImpl implements MyInterface { public void sayHello() { System.out.println(MyInterface.hello); } } Interface Instances You cannot create instances of an interface by itself.

50 Fascinating Things I've Read Lately Pretty simple. When I read something I like, I try to write it down. In no particular order, here are 50 things I've read lately that, for one reason or another, caught my attention. "Today, of Americans officially designated as 'poor,' 99 percent have electricity, running water, flush toilets, and a refrigerator; 95 percent have a television, 88 percent a telephone, 71 percent a car and 70 percent air conditioning. Cornelius Vanderbilt had none of these." "As late as the 1950s, New York's garment industry was the nation's largest manufacturing cluster. "If everyone worldwide had the same chance of becoming a billionaire, you'd expect the chance of a billionaire child having a billionaire parent to be one out of 9.3 million. "Two married 66-year-olds with roughly average earnings over their lives will end up paying about $110,000 in dedicated Medicare taxes through the payroll tax, including the portion their employers pay. "Don't have $7.5 million?

Compilers Course Coursera This course will discuss the major ideas used today in the implementation of programming language compilers, including lexical analysis, parsing, syntax-directed translation, abstract syntax trees, types and type checking, intermediate languages, dataflow analysis, program optimization, code generation, and runtime systems. As a result, you will learn how a program written in a high-level language designed for humans is systematically translated into a program written in low-level assembly more suited to machines. Along the way we will also touch on how programming languages are designed, programming language semantics, and why there are so many different kinds of programming languages. The course lectures will be presented in short videos. An optional course project is to write a complete compiler for COOL, the Classroom Object Oriented Language. Why Study Compilers?

AK's Guide to Suits Machine Learning - Download Free Content from Stanford What Type of Shoe is That? | SOLETOPIA We decided it was time to update Soletopia’s Guide to Shoe Terminology with a Dappered-inspired infographic. This was made as a rough guide to help people understand the shoe terms that get thrown around. We’ve covered the Oxford, Blucher, Derby, Balmoral, Saddle, Austerity, Brogue (half, full and quarter), Monk, Spectator & more. We also look at the different toe cap terms such as, the Cap Toe, Medallion & Perforated. More after the break:

Programming Methodology - Download Free Content from Stanford Style it your way | Mavericks Laces Start Start by lacing into 5th eyelets from above Jump up Jump the shoe and lace into 4th eyelets from underneath Cross Under Make your first cross lacing into the 3rd eyelet from underneath Repeat Same again - make sure you go in from underneath Cross Over Repeat the cross, this time lace in from above Cross, again lacing through from the top Jump up the shoe and loop into 1st eyelets End Tie off and go enjoy being a Maverick. Start by lacing into fourth eyelets from the top in a straight line across Cross down two eyelets and lace trhough from the top Head down one eyelet and feed back up from beneath Jump up again Croos up the shoe to the eyelets directly beneath the straight and feed through from the top Cross again Cross the laces to the second top eyelets - be sure to feed them underneath all other laces Head straight down the shoe the the eyelets below Final Cross Cross upward to top eyelets Tie off. after adjusting laces from bottom of shoe to tighten Start by lacing into bottom eyelets from beneath

Programming Abstractions - Download Free Content from Stanford The 100 Greatest Free Fonts for 2014 Here we are, once again, with our now-famous selection of the top 100 free fonts for 2014. This year we have only selected fonts published or updated in late 2013 and 2014, giving you one of the most up-to-date lists around. The majority are completely free with licenses for commercial use; the odd few available for personal use only have extended license options at a very reasonable price. The free font list comprises both entire font families and single weight downloads; either way, there is something for everyone and we think you'll love the ones we have picked out for you. Font Selection We have selected all kinds of typefaces which can be seamlessly integrated into any design: Sans Serif, Slab Serif, Rounded, Decorative, Display, Art Deco, Geometric, Futuristic, and many more besides. We have categorized the typefaces to help you browse more efficiently. Sans-Serif Typefaces Display and Decorative typefaces Serif Typefaces Script, Calligraphic and Hand-drawn

C++ Programming In the first unit, we will learn the mechanics of editing and compiling a simple program written in C++. We will begin with a discussion of the essential elements of C++ programming: variables, loops, expressions, functions, and string class. Next, we will cover the basics of object-oriented programming: classes, inheritance, templates, exceptions, and file manipulation. We will then review function and class templates and the classes that perform output and input of characters to/from files. This course will also cover the topics of namespaces, exception handling, and preprocessor directives. This course contains a number of sample programs and review exercises. Learning Outcomes Upon successful completion of this course, students will be able to: Compile and execute code written in C++ language. More info:

Related: