background preloader

BrandColors — a collection of major brand color codes

BrandColors — a collection of major brand color codes

Ruby Programming Ruby is an interpreted, object-oriented programming language. Its creator, Yukihiro Matsumoto, a.k.a “Matz,” released it to the public in 1995. Its history is covered here. Its many features are listed here. The book is currently broken down into several sections and is intended to be read sequentially. Table of Contents[edit] Getting started[edit] Overview Installing Ruby Ruby editors Notation conventions Interactive Ruby Mailing List FAQ Basic Ruby[edit] Hello world Strings Alternate quotes Here documents Encoding Introduction to objects Ruby basics Data types — numbers, strings, hashes and arrays Writing methods Classes and objects Exceptions Ruby Semantic reference[edit] See also some rdoc documentation on the various keywords. Built in Classes[edit] This is a list of classes that are available to you by default in Ruby. Available Standard Library Modules[edit] These are parts of Ruby that you have available (in the standard library, or via installation as a gem). Other Libraries[edit] GUI Libraries[edit]

Strategy Game Programming These pages intend to give a comprehensive overview of the elements of a computer program which can play two-player strategy games like tic-tac-toe, connect four, checkers and chess. I will always assume the players to be called 'white' and 'black', with 'white' being the one to move first in the game. Evaluations will be given from white's point of view. Code fragments are written in C. I have organized this tutorial in five parts: I will develop a C skeleton for strategy games to which only game-specific code will have to be added, but which takes care of the rest of the strategy game playing part. Perhaps you wonder whether you should read this stuff. Most computer programs nowadays use a brute-force approach to games - this is also called the Shannon-A strategy, named after Claude Shannon, a computer science pioneer. Comments and questions are welcome! [ Author homepage | Introduction | Part I | Part II | Part III | Part IV | Part V ]

Ten Ways to Find Free Textbooks Online Going to university is expensive, and textbooks can make the bill go even higher. However, you don't have to break the bank to finance a good education; there are plenty of places on the Web where you can find and download free online books for nearly any class available. Here are ten sources on the Web you can use to find free content for many college classes, all freely available to either download and print offline or view online in your browser. 1. Use Google The first place to start when looking for a textbook is Google, using the filetype command. filetype:pdf "history of anthropology" If you don't have any luck with the book's title, try the author (again, surrounded by quotes), or, you can also look for another type of file: PowerPoint (ppt), Word (doc), etc. 2. Open Culture, a fascinating repository of some of the best content on the Web, has assembled an ongoing database of free texts ranging in subject from Biology to Physics. 3. 4. 5. 6. 7. 8. 9. 10.

23 Go To Resources for Finding Great Code English | Español | Français About Us Menu ≡ home > resources > articles > 23 go to resources for finding great code 23 Go To Resources for Finding Great Code As a developer, you are probably writing most of your own code. These 23 websites are for those times. Take a look and add them to your programming tool belt: CodeGuru CodeGuru is a free website where you can find tips, tricks, and other pieces of useful code. The Free Country This website is a collection of free programming, but also webmasters’ and security resources, and free utilities. Hot Scripts HotScripts.com is a large Internet directory that compiles and disseminates Web programming-related resources. Script Dungeon Script dungeon is a free directory offering hundreds of free scripts, tools, and utilities. CGI Resource Index Cgi.resourceindex.com is a free directory containing over 2,700 programs and CGI scripts written in Perl, C, C++, and other languages. PHP Resource Index Dynamic Drive Fat Scripts Open Source Scripts JavaScript Kit

Become a Programmer, Motherfucker If you don't know how to code, then you can learn even if you think you can't. Thousands of people have learned programming from these fine books: Learn Python The Hard Way Learn Ruby The Hard Way Learn Code The Hard Way I'm also working on a whole series of programming education books at learncodethehardway.org. Learn C The Hard Way Learn SQL The Hard Way Learn Regex The Hard Way Graphics Programming Language Agnostic NerdDinner Walkthrough Assembly Language Bash Clojure Clojure Programming ColdFusion CFML In 100 Minutes Delphi / Pascal Django Djangobook.com Erlang Learn You Some Erlang For Great Good Flex Getting started with Adobe Flex (PDF) Forth Git Grails Getting Start with Grails Haskell Java JavaScript JavaScript (Node.js specific) Latex The Not So Short Introduction to LATEX (perfect for beginners) Linux Advanced Linux Programming Lisp Lua Programming In Lua (for v5 but still largely relevant)Lua Programming Gems (not entirely free, but has a lot of free chapters and accompanying code) Maven Mercurial Nemerle Nemerle

Getting started with AngularJS It's an exciting time to be a JavaScript developer. Modern JavaScript frameworks including Backbone, Knockout, AngularJS, and others have brought a level of maturity and sophistication to the creation of HTML-based rich web applications that has been sorely needed. Although differing greatly in their approaches, these frameworks share a common goal: make it simpler for developers to build robust applications with HTML, CSS, and JavaScript. This tutorial explores the AngularJS framework by Google. Note: You can follow along with the tutorial using the Plunker links provided. The AngularJS philosophy is based on embracing and extending HTML, while meeting the needs of both new and experienced developers. Enhanced HTML HTML works well when used to describe static documents, but it falls short when used to describe the "views" of a rich web application. Simple yet scalable Code for AngularJS applications is always organized into models, views, controllers, and (optionally) services.

30 game scripts you can write in PHP, Part 1: Creating 10 fundamental scripts Getting started As both a game master/storyteller and a developer, I frequently find myself writing little utilities and scripts to help me when running, planning, and playing games. Sometimes I need a quick idea. Other times, I just need a whole pile of names for Non-Player Characters (NPCs). Occasionally, I need to geek out on numbers, work out some odds, or integrate some word puzzles into a game. Many of these tasks become more manageable with a little bit of script work ahead of time. This article will explore 10 fundamental scripts that can be used in various types of games. We will blaze through these scripts pretty quickly. Back to top A basic die roller Many games and game systems need dice. In many cases, that would be more or less fine. Listing 1. function roll () { return mt_rand(1,6); } echo roll(); Then we can pass the type of die we want to roll as a parameter to the function. Listing 2. Random name generator Listing 3. Listing 4. Listing 5. Scenario generator Listing 6. Summary

Free Online Computer Science and Programming Books, Textbooks, and Lecture Notes :: FreeTechBooks.com Invent Your Own Computer Games with Python Chapter 1 Read online: Chapter 1 - Installing Python Videos: Chapter 2 Read online: Chapter 2 - The Interactive Shell Chapter 3 Read online: Chapter 3 - Strings Download source: hello.py Copy source to clipboard: Use the online diff tool to find typos in your code: hello.py Chapter 4 Read online: Chapter 4 - Guess the Number Download source: guess.py Use the online diff tool to find typos in your code: guess.py Chapter 5 Read online: Chapter 5 - Jokes Download source: jokes.py Use the online diff tool to find typos in your code: jokes.py Chapter 6 Read online: Chapter 6 - Dragon Realm Download source: dragon.py Use the online diff tool to find typos in your code: dragon.py Chapter 7 Read online: Chapter 7 - Using the Debugger Chapter 8 Read online: Chapter 8 - Flow Charts Chapter 9 Read online: Chapter 9 - Hangman Download source: hangman.py Use the online diff tool to find typos in your code: hangman.py Chapter 10 Read online: Chapter 10 - Tic Tac Toe Download source: tictactoe.py Chapter 11 Download source: bagels.py

HowStuffWorks "The Basics of C Programming" 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;

C++ QUICK REFERENCE Matt Mahoney, mmahoney@cs.fit.edu // Comment to end of line /* Multi-line comment */ #include <stdio.h> // Insert standard header file #include "myfile.h" // Insert file in current directory #define X some text // Replace X with some text #define F(a,b) a+b // Replace F(1,2) with 1+2 #define X \ some text // Line continuation #undef X // Remove definition #if defined(X) // Condional compilation (#ifdef X) #else // Optional (#ifndef X or #if !defined(X)) #endif // Required after #if, #ifdef 255, 0377, 0xff // Integers (decimal, octal, hex) 2147483647L, 0x7fffffffl // Long (32-bit) integers 123.0, 1.23e2 // double (real) numbers 'a', '\141', '\x61' // Character (literal, octal, hex) '\n', '\\', '\'', '\"' // Newline, backslash, single quote, double quote "string\n" // Array of characters ending with newline and \0 "hello" "world" // Concatenated strings true, false // bool constants 1 and 0 Function parameters and return values may be of any type. STDIO.H, CSTDIO (Input/output)

6 Steps to Becoming a Software Developer Deciding to become a software developer is a great initial step, congrats! The job opportunities are growing quickly and in just about every industry that you can imagine. The best part is that you do not necessarily have to go to a four year university to become a great software developer to lock down one of these jobs. The web has all the resources you'll need to interact, learn, get support and finally find a job as a software developer. Let's go through some of them! 0. Codecademy - JavaScript coursesCode School - Rails, jQuery, CoffeeScriptTryRuby - Really fun way to spend 15 minutes learning some RubyTreehouse - Web design (CSS, CSS3, HTML, HTML5, Responsive Design), web development (HTML5, JavaScript, and Intro to Programming), and iOS (build iPhone and iPad apps) 1. University CoursesNon-University Resources Books 2. 3. 4. [Bonus] 5. Hacker School - once you're quite good at what you do, the next level is to attend hacker school and become even better at it!

Related: