Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Working

SquadWuschel squadwuschel

💭
Working
View GitHub Profile
@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 / 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>();
@squadwuschel
squadwuschel / parent.component.ts
Created May 15, 2017
two-way-databinding Angular
View parent.component.ts
import { Component } from '@angular/core';
@Component({
selector: 'my-app',
template: `<p>V1 Parentvalue Name: "{{firstname}}"<br/><input [(ngModel)]="firstname" > <br/><br/>
V2 Parentvalue Age: "{{alter}}" <br/><input [(ngModel)]="alter"> <br/><br/>
<my-child [(name)]="firstname" [age]="alter" (ageChanged)="alter = $event"></my-child></p>`
})
export class AppComponent {
@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>
View poe
this.StartStop = !this.StartStop;
var nextChangeId = "";
while (StartStop)
{
using (WebClient wc = new WebClient())
{
var url = "http://www.pathofexile.com/api/public-stash-tabs";
if (!string.IsNullOrEmpty(nextChangeId))
{
@squadwuschel
squadwuschel / npmcheatsheetproxyundregistry.md
Last active Apr 10, 2017
npm cheatsheet proxy und registry
View npmcheatsheetproxyundregistry.md

Proxy eintragen über den npm gehen soll für HTTP Anfragen

npm config set proxy http://proxyadresse

Proxy eintragen über den npm gehen soll für HTTPS Anfragen

npm config set https-proxy http://proxyadresse

Den aktuell verwendeten HTTP Proxy auf der Konsole ausgeben (wenn keiner gesetzt ist wird "null" ausgegeben)

View npmcheatsheet.md

Aktuelle npm Version ausgeben

npm -v

npm selbst aktualisieren

npm install npm -g

oder mit

You can’t perform that action at this time.