Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Working

SquadWuschel squadwuschel

💭
Working
View GitHub Profile
@squadwuschel
squadwuschel / LoggerAspect.cs
Created Mar 4, 2016
PostSharp - OnExceptionAspect
View LoggerAspect.cs
[Serializable]
public class LoggerAspect : OnExceptionAspect
{
private static ILog logger = LogManager.GetLogger("MeinLogger");
//Meldung die Angezeigt werden soll
private string ExceptionMessage { get; set; }
private Type HandleThisExceptionType { get; set; }
public LoggerAspect(string exceptionMessage, Type handleThisExceptionType = null)
@squadwuschel
squadwuschel / csproj.xml
Last active May 22, 2016
Visual Studio 2015 TypeScript Settings inkl. Setting zum deaktivieren von Kompilations
View csproj.xml
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
<TypeScriptTarget>ES5</TypeScriptTarget>
<TypeScriptJSXEmit>None</TypeScriptJSXEmit>
<TypeScriptCompileOnSaveEnabled>True</TypeScriptCompileOnSaveEnabled>
<TypeScriptNoImplicitAny>False</TypeScriptNoImplicitAny>
<TypeScriptModuleKind />
<TypeScriptRemoveComments>False</TypeScriptRemoveComments>
<TypeScriptOutFile />
<TypeScriptOutDir />
<TypeScriptGeneratesDeclarations>False</TypeScriptGeneratesDeclarations>
@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 / gulpfile.js
Last active Jun 22, 2016
Angular 2 RC1 Gulp File to copy some js modules to the Scripts path
View gulpfile.js
/// <binding AfterBuild='moveToLibs' />
var gulp = require('gulp');
gulp.task('moveToLibs', function (done) {
gulp.src([
'node_modules/core-js/client/shim.min.js',
'node_modules/zone.js/dist/zone.js',
'node_modules/reflect-metadata/Reflect.js',
'node_modules/systemjs/dist/system.src.js'
]).pipe(gulp.dest('./Scripts/'));
@squadwuschel
squadwuschel / vs.xml
Last active May 22, 2016
Angular 2 RC1 TypeScript 1.8.x Settings in vsproj
View vs.xml
<TypeScriptTarget>ES5</TypeScriptTarget>
<TypeScriptJSXEmit>None</TypeScriptJSXEmit>
<TypeScriptCompileOnSaveEnabled>True</TypeScriptCompileOnSaveEnabled>
<TypeScriptNoImplicitAny>False</TypeScriptNoImplicitAny>
<TypeScriptModuleKind>CommonJS</TypeScriptModuleKind>
<TypeScriptRemoveComments>False</TypeScriptRemoveComments>
<TypeScriptOutFile />
<TypeScriptOutDir />
<TypeScriptGeneratesDeclarations>False</TypeScriptGeneratesDeclarations>
<TypeScriptNoEmitOnError>True</TypeScriptNoEmitOnError>
@squadwuschel
squadwuschel / boot.ts
Last active Feb 28, 2017
Angular 2 RC1 boot.js
View boot.ts
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from "./app.module";
platformBrowserDynamic().bootstrapModule(AppModule);
@squadwuschel
squadwuschel / app.component.ts
Last active Oct 31, 2016
Angular 2.1.1 app.component.ts
View app.component.ts
import { Component } from '@angular/core';
@Component({
selector: 'my-app',
template: '<h1 class="well well-sm text-center">Hello World to - {{name}}</h1>'
})
export class AppComponent {
public name : string = "SquadWuschel";
constructor() {
}
@squadwuschel
squadwuschel / index.html
Last active Jun 22, 2016
Angular 2 RC1 index.html
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>My ASP.NET Application</title>
@Styles.Render("~/Content/css")
<!-- Polyfill(s) for older browsers like IE -->
<script src="~/Scripts/shim.min.js"></script>
<!-- 1. Load libraries -->
<script src="~/Scripts/zone.js"></script>
@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 / block.xml
Created May 22, 2016
Blocking TypeScript Compile
View block.xml
<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>
You can’t perform that action at this time.