Skip to content

Instantly share code, notes, and snippets.

Björn Wilmsmann BjoernKW

Block or report user

Report or block BjoernKW

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
@BjoernKW
BjoernKW / gist:c2581ab5a6a4c5f92cfffd4fcbe25ff9
Created Mar 30, 2019
Angular CLI command for building an app with base href
View gist:c2581ab5a6a4c5f92cfffd4fcbe25ff9
ng build --base-href /ROOT_DIRECTORY/ --deploy-url /ROOT_DIRECTORY/ --prod
@BjoernKW
BjoernKW / using-angular2-logger-in-production.md
Created Aug 17, 2018
Using angular2-logger in production
View using-angular2-logger-in-production.md
import { Logger, Options } from 'angular2-logger/core';

...

{
  provide: Options,
  useValue: {
    store: false
  }
@BjoernKW
BjoernKW / angular-unit-tests-specs-dependency-management.md
Last active Aug 15, 2018
Dependency management for Angular unit tests using TestModuleMetadata
View angular-unit-tests-specs-dependency-management.md

some.component.spec.ts:

import { TestModuleMetadata } from '@angular/core/testing';
import { createOtherTestModuleMetadata } from 'other.component.spec';
import { compileTestModuleMetadata } from 'app.module';

...

export function createSomeComponentTestModuleMetadata(): TestModuleMetadata {
View gist:a2360e8004fe28bbb2ea802954f47128
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-activemq</artifactId>
</dependency>
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-broker</artifactId>
</dependency>
View gist:f9d0239ae187536f90f1dcda06859e8e
import static org.springframework.data.mongodb.core.FindAndModifyOptions.options;
import static org.springframework.data.mongodb.core.query.Criteria.where;
import static org.springframework.data.mongodb.core.query.Query.query;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoOperations;
import org.springframework.data.mongodb.core.query.Update;
import org.springframework.stereotype.Service;
import com.model.CustomSequences;
View PublisherServiceTests
@RunWith(SpringRunner.class)
@SpringBootTest
public class PublisherServiceTests {
@Mock
private PublisherService publisherService;
@Before
public void setup() {
List<Publisher> publishers = new ArrayList<>();
View gist:a0e40daaba04fef5e5a948f93d1c1fad
@RunWith(SpringRunner.class)
@SpringBootTest
public class SimpleBookControllerTests {
private MockMvc mockMvc;
@Mock
private BookService bookService;
@InjectMocks
View gist:4b294fa76eae07ce45bb
Verifying that +bjoernkw is my blockchain ID. https://onename.com/bjoernkw
View keybase.md

Keybase proof

I hereby claim:

  • I am BjoernKW on github.
  • I am bjoernkw (https://keybase.io/bjoernkw) on keybase.
  • I have a public key whose fingerprint is 6222 87E1 DE98 9114 AED0 2999 B658 5F6F 4206 A142

To claim this, I am signing this object:

View gist:5032614
MacPro:1.0.1c willy$ cat /Users/willy/.rvm/log/ruby-1.9.3-p392/make.log
[2013-02-25 20:17:29] make
CC = /opt/local/bin/gcc-apple-4.2
LD = ld
LDSHARED = /opt/local/bin/gcc-apple-4.2 -dynamic -bundle
CFLAGS = -O3 -ggdb -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=shorten-64-to-32 -Werror=implicit-function-declaration -pipe
XCFLAGS = -include ruby/config.h -include ruby/missing.h -fvisibility=hidden -DRUBY_EXPORT
CPPFLAGS = -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I/Users/willy/.rvm/usr/include -I. -I.ext/include/x86_64-darwin11.4.2 -I./include -I.
DLDFLAGS = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -Wl,-flat_namespace
SOLIBS =
You can’t perform that action at this time.