SimplePrograms
Please note that these examples are written in Python 2, and may need some adjustment to run under Python 3. 1 line: Output print 'Hello, world!' 2 lines: Input, assignment name = raw_input('What is your name? 3 lines: For loop, built-in enumerate function, new style formatting friends = ['john', 'pat', 'gary', 'michael'] for i, name in enumerate(friends): print "iteration {iteration} is {name}".format(iteration=i, name=name) 4 lines: Fibonacci, tuple assignment parents, babies = (1, 1) while babies < 100: print 'This generation has {0} babies'.format(babies) parents, babies = (babies, parents + babies) 5 lines: Functions def greet(name): print 'Hello', name greet('Jack') greet('Jill') greet('Bob') 6 lines: Import, regular expressions import re for test_string in ['555-1212', 'ILL-EGAL']: if re.match(r'^\d{3}-\d{4}$', test_string): print test_string, 'is a valid US local phone number' else: print test_string, 'rejected' 7 lines: Dictionaries, generator expressions 9 lines: Opening files
77 Resources to Simplify Your Life as a Web Designer << Vandelay Website Design
As a web designer, achieving efficiency in your workflow will have a significant impact on your success. Fortunately, there are a number of great resources that have been created with the intent of making your life easier and your work quicker and more effective. Color Tools Choosing the right color combination can be a difficult task. For more color-related tools, see Find the Perfect Colors for Your Website. Free CSS Navigation Menus CSS-based navigation menus are used by most websites now, but they don’t need to be created from scratch. DHTML Navigation Menus Xtreeme DHTML Menu Studio is a great tool for quickly creating dynamic navigation menus (cost: $49). Photos for Your Website Quality images greatly enhance the look and appearance of a website. Stock.Xchng – free stock photos.Stock Expert – Low cost stock photography.iStockphoto – Low cost stock photography.Big Stock Photo – Low cost stock photography. Icons Blank WordPress Templates CSS-Based Design Templates Eric Meyer’s CSS Sculptor
Form Elements: 40+ CSS/JS Styling and Functionality Techniques
Aug 17 2008 Designing effective web forms isn’t easy, as we need to figure out more practical styling and functionality techniques to provide a great user experience. Recently there have been a number of noteworthy techniques such as styling different form fields, live validation, Context highlighting, trading options from field to another, slider controls and more – using CSS and different Javascript libraries. You might be interested to check other CSS related posts: 1-Styling dropdown select boxes- To style a dropdown select box is heavy work. 2-<select> Something New, Part 1-With a little DOM scripting and some creative CSS, you too can make your <select>s beautiful… and you won’t have to sacrifice accessibility, usability or graceful degradation. 3-Styling even more form controls-There are a lot of controls that can be used in an HTML form. 6-Masked Input Plugin- A masked input plugin for the jQuery javascript library. 38-Select box manipulation Homepage
HTML.it
QuickRef
Fluid 960 Grid System | 16-column Grid
Article Heading Subheading Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Heading 3 Heading 4 Heading 5 Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Heading 6 Epsum factorial non deposit quid pro quo hic escorol.
10 Tips to Create a More Usable Web
Whether it’s your portfolio, a blog, a marketing web site, or a collection of games, we all want to attract visitors to our website and to ensure that they have a pleasant experience. Usability measures the level of a user’s experience and can be characterized by how easily a given task can be completed; whether it’s done with prior knowledge, or by having the user learn a new way to interact. I think Jakob Nielson probably explained it best when he said: “Usability is a quality attribute that assesses how easy user interfaces are to use. The word “usability” also refers to methods for improving ease–of–use during the design process.” In this article I hope to give you some form of a usability checklist, covering topics from form design to simple navigation tips that you can apply to any Web project. 1. Letting the user know what section of the site they’re in, or what category they’re navigating through can be give a huge usability boost to any site. 2. 3. 4. 5. 6. 7. 8. 9. 10.
List of HTTP headers
HTTP header fields are components of the message header of requests and responses in the Hypertext Transfer Protocol (HTTP). They define the operating parameters of an HTTP transaction. General format[edit] Field names[edit] A core set of fields is standardized by the Internet Engineering Task Force (IETF) in RFC 2616 and other updates and extension documents (e.g., RFC 4229), and must be implemented by all HTTP-compliant protocol implementations. Additional field names and permissible values may be defined by each application. The permanent registry of headers and repository of provisional registrations are maintained by the IANA. Non-standard header fields were conventionally marked by prefixing the field name with X- .[2] However, this convention became deprecated in June 2012 due to the inconveniences it caused when non-standard headers became standard.[3] A prior restriction on use of Downgraded- has also since been lifted.[4] Field values[edit] Size limits[edit] Requests[edit] [edit]