Skip to content

Instantly share code, notes, and snippets.

Rock On & Code

Gregor Woiwode GregOnNet

Rock On & Code
Block or report user

Report or block GregOnNet

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
GregOnNet / component-object.ts
Created Jul 18, 2019
Component Object simplifying testing for Angular Components
View component-object.ts
import { ComponentFixture } from '@angular/core/testing';
import { Predicate, DebugElement } from '@angular/core';
import { ValueSetter } from '../company-create/';
export class ComponentObject<T> {
constructor(private fixture: ComponentFixture<T>) {}
get componentInstance(): T {
return this.fixture.componentInstance;
GregOnNet /
Created Feb 3, 2019
Git | Basic Aliases
# Staging
alias s="git status"
alias a="git add"
alias aa="git add --all"
# Commit
alias cim="git commit --message"
alias cima="git commit --all --message"
alias aac="git add --all && git commit --all --message"
GregOnNet / cloudSettings
Last active Feb 10, 2020
Visual Studio Code Settings Sync Gist
View cloudSettings
GregOnNet /
Created Feb 1, 2018
using typescript paths in @angular/cli projects
"extends": "../tsconfig.json",
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@utilities/*": ["./app/utilities/*"]
"outDir": "../out-tsc/app",
"module": "es2015",
"types": []
GregOnNet / loadtest.d.ts
Created Feb 13, 2017
Typings for loadtest
View loadtest.d.ts
declare namespace loadtest {
export function loadTest(options: LoadTestOptions, err: Function): void;
export interface LoadTestOptions {
url: string;
concurrency?: number;
maxRequests?: number;
maxSeconds?: number;
timeOut?: number;
cookies?: string[];
GregOnNet /
Created Feb 16, 2016
Fetches commits of a pull request
git fetch origin pull/1/head:<target-branch>
GregOnNet / FreeStockCharts-full-width.css
Created Jan 17, 2016
Nutzt rechte Spalte der Werbebanner für die Charts
View FreeStockCharts-full-width.css
/* In Stylish einfügen */
#SilverlightControl1 {
width: 100% !important;
View WindsorContainerDynamicArguments.cs
public override void OnBeginRequest(HttpContextBase context, IWindsorContainer container)
var parameters = new Arguments(new
response = context.Response,
pdfFormatter = container.Resolve<IFormatPdfResponse>()
View jquery.promise.sample.js
(function($) {
'use strict';
// 1. Zwei requests parallel abstimmen
// 2. Für jedes Request ein callback auslösen
// 3. Wenn beide callbacks abgeschlossen sind, soll ein drittes ausgelöst
// werden.
var rq1 = firstRequest()
# Usage
# workOnIssue <issue-number>
# Sample
# workOnIssue issue-999
function workOnIssue() {
You can’t perform that action at this time.