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
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/company-create.component.spec.co';
export class ComponentObject<T> {
constructor(private fixture: ComponentFixture<T>) {}
get componentInstance(): T {
return this.fixture.componentInstance;
}
@GregOnNet
GregOnNet / git-aliases.sh
Created Feb 3, 2019
Git | Basic Aliases
View git-aliases.sh
# 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
GregOnNet / cloudSettings
Last active Feb 10, 2020
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2020-02-10T09:19:05.383Z","extensionVersion":"v3.4.3"}
@GregOnNet
GregOnNet / tsconfig.app.json
Created Feb 1, 2018
using typescript paths in @angular/cli projects
View tsconfig.app.json
{
"extends": "../tsconfig.json",
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@utilities/*": ["./app/utilities/*"]
},
"outDir": "../out-tsc/app",
"module": "es2015",
"types": []
@GregOnNet
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
GregOnNet / pull-request.sh
Created Feb 16, 2016
Fetches commits of a pull request
View pull-request.sh
git fetch origin pull/1/head:<target-branch>
@GregOnNet
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>()
});
container.Resolve
<IDispatchPdfReponses>(parameters)
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()
View git-commit-prefixin.sh
#!/bin/sh
#
# Usage
# workOnIssue <issue-number>
#
# Sample
# workOnIssue issue-999
#
function workOnIssue() {
You can’t perform that action at this time.