background preloader

Programming

Facebook Twitter

Javascript

YUI Library. 750+ Free Online Courses from the Best Colleges | AcademicEarth.org. The Magic of XOR. Introduction In mathematics, inclusive OR is given preference to exclusive OR (also called XOR). For example, when you write p V q which is read "p OR q", this is inclusive OR. This statement is true when p is true, or q is true, or both p and q is true. Inclusive OR is used as the default meaning of OR, and works more often in logic than exclusive OR. We often see XOR used in sentences. You would think XOR wouldn't be that interesting an operator.

But it is! Various Views of XOR You can think of XOR in many ways. Parity Check People often use XOR as a means of doing a parity check. This can often be used to verify data sent across a network, where there's some probability a bit may be corrupted. How can you determine whether the bytes were sent correctly? If N was 10, and you're transmitting 10 bytes, then create an 11th byte where bi is the XOR of all 10 bytes ith bit. Clearly the system could have errors. Properties of XOR Here are several useful properties of XOR. Bitwise XOR Summary. Free Online IDE and Terminal. Is there a "code academy" of sorts for CS interview questions? : cscareerquestions. Archived Problems - Project Euler. Take part in our programming challenges - Codility. Problems | LeetCode OJ. Utopian Tree : Challenge | Warmup | Algorithms | HackerRank.

Overview | CMake. CMake is an extensible, open-source system that manages the build process in an operating system and in a compiler-independent manner. Unlike many cross-platform systems, CMake is designed to be used in conjunction with the native build environment. Simple configuration files placed in each source directory (called CMakeLists.txt files) are used to generate standard build files (e.g., makefiles on Unix and projects/workspaces in Windows MSVC) which are used in the usual way. CMake can generate a native build environment that will compile source code, create libraries, generate wrappers and build executables in arbitrary combinations. CMake supports in-place and out-of-place builds, and can therefore support multiple builds from a single source tree. CMake also supports static and dynamic library builds. Another nice feature of CMake is that it generates a cache file that is designed to be used with a graphical editor.

Nested IF-THEN-ELSE-END IF. Sorting - The fastest way to sort 3 values Java. How to end C++ code. Bubble Sort in C++ with Examples - HellGeeks. We will see the working and operations of bubble sort in C++ with proper examples by the sorting of arrays. Sorting of Arrays:- The process of arranging the arrays in some order is called sorting of arrays. There are two types of orders first one is ascending order and the second one is descending order. In normal routine, two types of sorting techniques are used in C++. 1. Selection sort. 2. Bubble Sort:- Bubble sorting is the very commonly and widely used sorting technique in C++ programming. 1. 2. 3. 4.

Let’s take a look towards the following example which will illustrate and completely describe the use, working and operations of bubble sort in C++. Example of Bubble Sort:- Example of Bubble Sort Explanation:- Now this program will be explained with proper example. Just consider the array entered by the user is: Now the program will use a nested loop to perform sorting. At the beginning when the loop begins, the value of i=0, Therefore first pass is started.

First Pass: Iteration no. 1: C++ Programming/Exercises/Iterations. Iterations[edit] Solutions requirements Solutions must: Use only standard C++.Be compilable.Be in accordance to general coding practices. (no esoteric demonstrations are required) and should: Handle error situations, even if behavior is not defined. Please do not add solutions that are 99% similar to another that is already present, if it is an improvement just add it to the existing solution. EXERCISE 1[edit] Write a program that asks the user to type an integer and writes "YOU WIN" if the value is between 56 and 78 (both included). Int main() {int i; cout << "Type all numbers between 58 and 73: " << endl; cin>>i; if (i>=58 && i<=78) { cout << "YOU WIN" << i << endl; else cout<<"YOU LOSE! " EXERCISE 2[edit] Write a program that asks the user to type all the integers between 8 and 23 (both included) using a for loop.

Solution Alternative solution by Bartosz Radwanski Alternate solution Solution in C Another alternate solution Failed solutions (correct them as an extra exercise) EXERCISE 3[edit] Programminghelporg. ProgrammingKnowledge. C#, C-Sharp, Programming, Tutorial, Beginners , Basic Syntax, Data Types, Variables, Constants, Operators, Decision Making, Loops, Methods, Arrays, Strings, Struct, Enums, File I/O, Classes, Interfaces, Inheritance, Namespaces, Polymophism, Operator Overloading, Encapsulation, Reflection, Attributes, Properties, Indexes, Delegates, Events, Collections, Generics, Preprocessor Directives, Multithreading, Regular Expression, and Exception Handling.

Jesse Dietrichson. Programminghelporg. C++ Tutorial for Beginners. C9 Lectures: Stephan T. Lavavej - Core C++ C++11 Concurrency. Derek Banas. Get Images, Sounds & Code : Unity Book : my videos on Patreon : Every Game Project is Available Here for Free : In this video I finally start my How to Make Video Games tutorial series. I'm going to start off with Pong so that we can completely understand the Unity 5.6 interface, Sprites, Scenes, Physics, Keyboard Input, Collision Detection, Sound Effects, User Interfaces, Splash Screens, and so much more.

I already have games based on Space Invaders, Asteroids, Pac Man, Mario, Tetris, etc. ready to go. I also plan on making 2D Tower Defense and other popular games over the course of this series. Thank you to Patreon supporters like the following for helping me make this video. FAQ: How to test whether integer is even or odd. Algorithm - Complexity of a code. Learn C++, Tutorial for Beginners. Computation Structures - Part 1: Digital Circuits. CS50: Introduction to Computer Science. This is CS50, Harvard University's introduction to the intellectual enterprises of computer science and the art of programming for majors and non-majors alike, with or without prior programming experience. An entry-level course taught by David J. Malan, CS50 teaches students how to think algorithmically and solve problems efficiently. Topics include abstraction, algorithms, data structures, encapsulation, resource management, security, software engineering, and web development. Languages include C, PHP, and JavaScript plus SQL, CSS, and HTML.

Problem sets inspired by real-world domains of biology, cryptography, finance, forensics, and gaming. Students who earn a satisfactory score on 9 problem sets (i.e., programming assignments) and a final project will receive a certificate from HarvardX. HarvardX pursues the science of learning. Audit this Course Audit this course for free and have complete access to all the course material, activities, tests, and forums. Earn Harvard Credit. Our Titles. The Healthy Programmer (audio book) To keep doing what you love, you need to maintain your own systems, not just the ones you write code for. Regular exercise and proper nutrition help you learn, remember, concentrate, and be creative—skills critical to doing your job well.

Learn how to change your work habits, master exercises that make working at a computer more comfortable, and develop a plan to keep fit, healthy, and sharp for years to come. Adapted Audio Book; m4b (iTunes), mp3 and ogg formats. Also available in paperback and ebook formats. Listen to an excerpt. Read the Slashdot review here. Read the IT World review here. This book is intended only as an informative guide for those wishing to know more about health issues. Real World Haskell - O'Reilly Media. As a consequence some concepts are not formally explained until later in the book, like Monads. Instead the book shows you how to use Haskell's I/O facilities, without an understanding of Monads, first. For some this approach is probably very practical but I found myself at times wanting the material to be presented in a different order. However, I am still giving this book 5 stars because of the sheer breadth and quality of the content and examples.

And the later chapters really do tie all the concepts together with some non-trivial examples. The first four chapters and chapter six lay the foundation for the rest of the book. I found that a good understanding of this material was crucial for later chapters, where they combine different features of the language in more complicated ways. Overall, I learned a ton of new things from reading this book even thought the material is quite challenging in places, and found myself wondering why more people don't use Haskell. Learn You a Haskell for Great Good! - O'Reilly Media. C++ faq - The Definitive C++ Book Guide and List. Radix sort. In computer science, radix sort is a non-comparative integer sorting algorithm that sorts data with integer keys by grouping keys by the individual digits which share the same significant position and value.

A positional notation is required, but because integers can represent strings of characters (e.g., names or dates) and specially formatted floating point numbers, radix sort is not limited to integers. Radix sort dates back as far as 1887 to the work of Herman Hollerith on tabulating machines.[1] Most digital computers internally represent all of their data as electronic representations of binary numbers, so processing the digits of integer representations by groups of binary digit representations is most convenient.

Two classifications of radix sorts are least significant digit (LSD) radix sorts and most significant digit (MSD) radix sorts. LSD radix sorts process the integer representations starting from the least digit and move towards the most significant digit. Efficiency[edit] Welcome to Python.org. How to Think Like a Computer Scientist — How to Think like a Computer Scientist: Interactive Edition. This interactive book is a product of the Runestone Interactive Project at Luther College, led by Brad Miller and David Ranum. There have been many contributors to the project. Our thanks especially to the following: This book is based on the Original work by: Jeffrey Elkner, Allen B.

Downey, and Chris MeyersActivecode based on SkulptCodelens based on Online Python TutorMany contributions from the CSLearning4U research group at Georgia Tech.ACM-SIGCSE for the special projects grant that funded our student Isaac Dontje Lindell for the summer of 2013.NSF The Runestone Interactive tools are open source and we encourage you to contact us, or grab a copy from GitHub if you would like to use them to write your own resources. Prakhar1989/awesome-courses. Programmr | Your Online Code Lab. Language for Knowledge-Based Programming.

CodeCombat - Learn how to code by playing a game. Code Hunt. Developer Network. Programming | Computer Science. Programmr | Get Better At Programming. <Code/Racer> - Battle it out and learn the code... Brought to you by Treehouse.

Demos. Learn Regex The Hard Way Scanning And Parsing Text Without Going Insane. The Regex Coach - interactive regular expressions. Abstract The Regex Coach is a graphical application for Windows which can be used to experiment with (Perl-compatible) regular expressions interactively. It has the following features: It shows whether a regular expression matches a particular target string.

It can also show which parts of the target string correspond to captured register groups or to arbitrary parts of the regular expression. It can "walk" through the target string one match at a time. It can simulate Perl's split and s/// (substitution) operators. Contents Download and installation The Regex Coach together with this documentation can be downloaded from You should use Windows 2000 or Windows XP with all updates and service packs installed.

You also must have the Microsoft runtime library msvcr80.dll installed. If you have a previous version (0.8.5 or earlier) of The Regex Coach installed, uninstall it first before you install the new version! Older versions, Linux, FreeBSD, Mac. Business & money. 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. These are works in progress, and feedback is welcome. Learn C The Hard Way Learn SQL 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 Maven Mercurial Nemerle Nemerle NoSQL Oberon Programming in Oberon (PDF) Objective-C The Objective-C Programming Language OCaml Oracle Server Oracle PL/SQL Vim.

Yet another insignificant Programming Notes. Learn Programming, Free Programming Classes Online, How to write programs, C Programming for beginners. Code Year. W3Schools Online Web Tutorials. Here's a list of 43 free online programming/CS courses (MOOCs) with feedback(i.e. exams/homeworks/assignments) that you can start this month (October 2013) : learnprogramming.

Learn Programming, Free Programming Classes Online, How to write programs, C Programming for beginners. Learn Code The Hard Way -- Books And Courses To Learn To Code.