Shineyrock web design & consultancy

Shineyrock

Gezocht op: "test" / 634 gevonden

A Beginner’s Guide to HTTP and REST

…test/' would return '/test/'. Let's first attempt to determine which URL has been called. We only consider URLs starting with 'clients'. All others are invalid. $resource = array_shift($paths); if ($resource == 'clients') { $name = array_shift($paths); if (empty($name)) { $this->handle_base($method); } else { $this->handle_name($method, $name); } } else { //…


Developing Google Chrome Extensions

…test, debug, and preview our extensions in Chrome. Create a manifest file, where we'll share with Chrome everything about our extensions in Chrome. Some of these versions will point to our JavaScript Chrome extension. Add flag icons when we develop our Chrome extension. Create a popup menu when developing a…


Build a Complete MVC Website With Express

…test for it later. Here is the /config/index.js file: const config = { local: { mode: 'local', port: 3000 }, staging: { mode: 'staging', port: 4000 }, production: { mode: 'production', port: 5000 } } module.exports = function(mode) { return config[mode || process.argv[2] || 'local'] || config.local; } There are…


How to Collaborate on GitHub

…testing and patching, or even simple syntax errors and grammar issues (like this one from GitHub user mzgol). These kinds of tasks are a good way to get your foot in the door as a contributor to the project without trying to take on more than you can handle. Sign…


16 Terminal Commands That Will Boost Your Productivity

…test command, use !!; the usual use case given for this is adding sudo to the front of a command. For the latest argument, use !$; with this, moving into a new folder is probably the common example. In both these cases, the shell will print out the full command…


Working With LESS and the Chrome DevTools

…test (1.5.1 at the time of this writing) version of LESS through NPM (Source Maps arrived in 1.5.0): $ npm install -g less $ lessc -v lessc 1.5.1 (LESS Compiler) [JavaScript] At this point, you can run the LESS compiler in your terminal using the lessc command. Create a new…


Validation and Exception Handling: From the UI to the Backend

…tests, a password composed of plain letters. However we want to enforce a combination of letters and numbers. This is a case for validation, a rule we want to impose.On the other hand, exceptions are cases when our system may function in an unpredicted way, wrongly, or not at all…


Creating Brackets Extensions

…test updates to the extension API.Getting StartedI’m going to assume you read my last article and are already familiar with the extension manager. This provides a simple, one click method of installing extensions. One of the best ways you can learn to write extensions is by looking at the work…


JavaScript Tools of the Trade: JSBin

…test version of your favorite libraries, downloading them and including them in your codeCreating your stylesheetConfiguring your webserverThat seems like an awful lot of work just do do some simple code testing. Thankfully there are tools that make this type of work trivial.In this tutorial, I’d like to go over…


Refactoring Legacy Code: Part 5 - Game’s Testable Methods

…tested our Runner functions. In this lesson, it is time to continue where we left off by testing our Game class. Now, when you start with such a big chunk of code like we have here, it is tempting to start to test in a top-down manner, method by method.…


Verfijn zoekopdracht

Bewaar deze zoekopdracht

Bewaarde zoekopdrachten

Je hebt nog geen bewaarde zoekopdrachten.