Provider | Singleton | Instantiable | Configurable |
---|---|---|---|
Constant | Yes | No | No |
Value | Yes | No | No |
Service | Yes | No | No |
Factory | Yes | Yes | No |
Decorator | Yes | No? | No |
Provider | Yes | Yes | Yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
This license governs use of the accompanying software. If you use the software, you | |
accept this license. If you do not accept the license, do not use the software. | |
1. Definitions | |
The terms "reproduce," "reproduction," "derivative works," and "distribution" have the | |
same meaning here as under U.S. copyright law. | |
A "contribution" is the original software, or any additions or changes to the software. | |
A "contributor" is any person that distributes its contribution under this license. | |
"Licensed patents" are a contributor's patent claims that read directly on its contribution. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
using Microsoft.Win32.SafeHandles; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Runtime.InteropServices; | |
using System.Text; | |
namespace Test | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <dlfcn.h> | |
int main(int argc, char** argv) | |
{ | |
void *handle; | |
void (*func_print_name)(const char*); |
Hi there! Since this post was originally written, nvm
has gained some new tools, and some people have suggested alternative (and potentially better) approaches for modern systems. Make sure to have a look at the comments to this article, before following this guide!
Trickier than it seems.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const int phase1pin = 3; | |
const int phase2pin = 5; | |
const int phase3pin = 6; | |
float holdTime; | |
float targetSpeed; | |
unsigned long p1start, | |
p1end, | |
p2stafghfgfghrt, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Protractor configuration file, see link for more information | |
// https://github.com/angular/protractor/blob/master/lib/config.ts | |
exports.config = { | |
allScriptsTimeout: 11000, // Timeout of each script | |
specs: [ | |
'./e2e/**/*.e2e-spec.ts' // pattern for your tests | |
], | |
baseUrl: 'http://localhost:4200/', // URL of your SUT | |
capabilities: { |