background preloader

Code Snippets - Snipplr Social Snippet Repository

Code Snippets - Snipplr Social Snippet Repository

Lambda the Ultimate | Programming Languages Weblog GNU Emacs Lisp Reference Manual This variable is set by major modes, as a buffer-local variable, to specify how to fontify text in that mode. The value should look like this: The first element, , indirectly specifies the value of font-lock-keywords. It can be a symbol, a variable whose value is the list to use for font-lock-keywords. The second element, , specifies the value of the variable font-lock-keywords-only. The third element, , specifies the value of font-lock-case-fold-search. If the fourth element, , is non-nil, it should be a list of cons cells of the form ( . ). The fifth element, , specifies the value of font-lock-beginning-of-syntax-function (see below). All the remaining elements (if any) are collectively called .

Writer's Café fiction writing software - novels - screenwriting - short stories - creative fun cPlusPlus The essential tools needed to follow these tutorials are a computer and a compiler toolchain able to compile C++ code and build the programs to run on it. C++ is a language that has evolved much over the years, and these tutorials explain many features added recently to the language. Therefore, in order to properly follow the tutorials, a recent compiler is needed. It shall support (even if only partially) the features introduced by the 2011 standard. Many compiler vendors support the new features at different degrees. See the bottom of this page for some compilers that are known to support the features needed. If for some reason, you need to use some older compiler, you can access an older version of these tutorials here (no longer updated). What is a compiler? Computers understand only one language and that language consists of sets of instructions made of ones and zeros. A single instruction to a computer could look like this: Console programs What is a compiler? Console programs

GCC, the GNU Compiler Collection Python Programming Language – Official Website Using CSS in HTML Emails: The Real Story Should you be sending HTML emails at all? This is surely a debated issue, but ultimately I say if you have a message you feel would benefit from a nicely designed email you should go for it. If you just want to do it because everyone else on your block is doing it too, don't. If you decide to do it, these are what I consider to be the five golden rules of HTML emails: Only send email to people that opted to receive them.Make sure to create it so that it looks the best it possibly can in all email clients.Don't overdo it. WRITE your email before you design it The first thing you should do is to write the plain-text version of your email. Couple quick tips for your plain-text email: Hard-wrap your lines at 60 characters and write out full URL's instead of using anchor tags. Design for the lowest common denominator first. After the plain text version of your email is done, then start thinking about design. What you CAN'T do: Include a <head> section with styles. What you CAN do. Help! Quick tips!

Boost C++ Libraries Hackerspace Activities[edit] Many hackerspaces participate in the use and development of free software, open hardware, and alternative media. They are often physically located in infoshops, social centers, adult education centers, public schools, public libraries or on university campuses, but may relocate to industrial or warehouse space when they need more room. Hackerspaces with open membership became common within Germany in the 90s in the orbit of the German Chaos Computer Club, with the C-base being probably the most impressive example. In 2006, Paul Bohm came up with a fundraising strategy based on the Street Performer Protocol to build Metalab in Vienna, Austria, and became its founding director. Most recently the advent of crowdfunding and Kickstarter have put the tools required to build hackerspaces within reach of an even wider audience. Facilities[edit] The specific tools and resources available at hackerspaces vary from place to place. Organization[edit] Ethic[edit] Difficulties[edit]

How to Code HTML Email Newsletters Article This article was first published in 2006, then re-edited in 2011 — and it’s still one of our most popular posts. If you’re keen to learn more about styling HTML email campaigns, head to our recent post on creating email signatures. HTML email newsletters have come a long way since this article was first published back in 2006. In some ways, coding HTML email has become easier — several email software providers, such as Google Mail, have improved their support for CSS. Other advances in HTML email in the last couple of years include the formation of the Email Standards Project, which aims to test the compliance of email software to HTML and CSS standards and to lobby for improvements; the emergence of services for testing how HTML email renders in various desktop and web-based email applications; and the availability of HTML email templates that you can either use “as is” or customize to your preferences. HTML Email Fundamentals Step 1: Use HTML Tables for Layout Go to page: 1 | 2 | 3

10 Programming Proverbs Every Developer Should Know | Kevin William Pang Proverbs are used to express universal truths or life lessons in a short and memorable fashion. I find that they are a great way to keep things in perspective, both in life and in work. Because of this, I have assembled 10 programming proverbs that every developer needs in their arsenal. 1. Relax. Poorly designed code tends to manifest itself through some common tell-tale signs. Giant classes and/or functionsLarge blocks of commented out codeDuplicated logicDeeply nested if/else blocks Developers often refer to these as code smells, but personally, I think the term "code smoke" or "code fumes" is more appropriate as it implies a higher sense of urgency. 2. Ok, I'm convinced Toyota's assembly line of the 1980s was famously efficient due to its revolutionary approach towards defect prevention. Developers often make the faulty assumption that productivity = cranking out code quickly. 3. In other words, what happens if you suddenly lost a key member of your team? 4. 5. Sound familiar? 6. 7.

Related: