Skip to content

Instantly share code, notes, and snippets.

View squadwuschel's full-sized avatar
💭
Working

SquadWuschel squadwuschel

💭
Working
  • Relaxdays
  • Germany
View GitHub Profile
@squadwuschel
squadwuschel / Assembly.ReflectionOnlyLoadFrom.cs
Last active October 24, 2017 18:05
Laden von Assemblies und Manuelles nachladen der Abhängigkeiten.
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 July 7, 2017 21:00
webpack.common.js in der die BaseUrl angepasst wird
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 July 7, 2017 20:48
webpack.prod.js erweitern und die environment Variable erweitern
...
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 19:51
two-way-databinding Angular
//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 19:42
two-way-databinding Angular
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 19:41
two-way-databinding Angular
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 19:52
[(name)] two-way-databinding
//Dekorator Definition
@Input() name : string;
@Output() nameChange = new EventEmitter<string>();
//Aufruf
<my-child [(name)]="firstname"></my-child>
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 April 10, 2017 08:06
npm cheatsheet proxy und registry

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)

@squadwuschel
squadwuschel / npmcheatsheet.md
Last active September 28, 2020 08:38
npm cheat sheet

Aktuelle npm Version ausgeben

npm -v

npm selbst aktualisieren

npm install npm -g

oder mit