Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Working

SquadWuschel squadwuschel

💭
Working
View GitHub Profile
View npmcheatsheet.md

Aktuelle npm Version ausgeben

npm -v

npm selbst aktualisieren

npm install npm -g

oder mit

@squadwuschel
squadwuschel / systemjs.config.js
Last active May 19, 2018
Angular 2.1.1 SystemJs.Config.js
View systemjs.config.js
/**
* System configuration for Angular samples
* Adjust as necessary for your application needs.
*/
(function (global) {
System.config({
paths: {
// paths serve as alias
'npm:': 'node_modules/'
},
@squadwuschel
squadwuschel / Assembly.ReflectionOnlyLoadFrom.cs
Last active Oct 24, 2017
Laden von Assemblies und Manuelles nachladen der Abhängigkeiten.
View Assembly.ReflectionOnlyLoadFrom.cs
class Program
{
static void Main(string[] args)
{
//Handler registrieren, für den die
AppDomain.CurrentDomain.ReflectionOnlyAssemblyResolve += CurrentDomain_ReflectionOnlyAssemblyResolve;
var alleAssemblies = LoadAssemblies(@"C:\Test\DemoPageProxyGenerator");
}
@squadwuschel
squadwuschel / webpack.common.js
Last active Jul 7, 2017
webpack.common.js in der die BaseUrl angepasst wird
View webpack.common.js
module.exports = function (options) {
isProd = options.env === 'production';
console.log("Webpack Common Options");
console.log(options);
if(options["appname"] !== undefined) {
METADATA.baseUrl = options.appname;
}
@squadwuschel
squadwuschel / webpack.prod.js
Created Jul 7, 2017
webpack.prod.js erweitern und die environment Variable erweitern
View webpack.prod.js
...
module.exports = function (env) {
console.log("Übergabe Parameter")
console.log(env);
var environment = { env : ENV };
if(env !== undefined && env["appname"] !== undefined) {
environment.appname = env.appname;
}
@squadwuschel
squadwuschel / stringInterpolation.cs
Last active May 29, 2017
String Interpolation C# 6
View stringInterpolation.cs
for (int i = 0; i < 10; i++)
{
Console.WriteLine($"Der Aktuelle Index: {i}");
}
@squadwuschel
squadwuschel / package.json
Last active May 16, 2017
Angular 4.0.3 - package.json
View package.json
{
"dependencies": {
"@angular/common": "4.0.3",
"@angular/compiler": "4.0.3",
"@angular/core": "4.0.3",
"@angular/forms": "4.0.3",
"@angular/http": "4.0.3",
"@angular/platform-browser": "4.0.3",
"@angular/platform-browser-dynamic": "4.0.3",
"@angular/router": "4.0.3",
@squadwuschel
squadwuschel / child.ts
Last active May 15, 2017
[(name)] two-way-databinding
View child.ts
//Dekorator Definition
@Input() name : string;
@Output() nameChange = new EventEmitter<string>();
//Aufruf
<my-child [(name)]="firstname"></my-child>
@squadwuschel
squadwuschel / child2.ts
Created May 15, 2017
two-way-databinding Angular
View child2.ts
//Dekorator Definition
@Input() age : string;
@Output() ageChanged = new EventEmitter<string>();
//Aufruf
<my-child [age]="alter" (ageChanged)="alter = $event"></my-child>
@squadwuschel
squadwuschel / child.component.ts
Created May 15, 2017
two-way-databinding Angular
View child.component.ts
import { Component, Input, Output, EventEmitter } from '@angular/core';
@Component({
selector: 'my-child',
template: `<p>V1 Childvalue Name: "{{name}}"<br/><input [(ngModel)]="name" (keyup)="onNameChanged()"> <br/><br/>
<p>V2 Childvalue Age: "{{age}}"<br/><input [(ngModel)]="age" (keyup)="onAgeChanged()"> <br/></p>`
})
export class ChildComponent {
@Input() name : string;
@Output() nameChange = new EventEmitter<string>();
You can’t perform that action at this time.