(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
import { createConnection, getConnection, Entity, getRepository } from "typeorm"; | |
import { PrimaryGeneratedColumn, Column } from "typeorm"; | |
@Entity() | |
export class MyEntity { | |
@PrimaryGeneratedColumn() | |
id?: number; | |
@Column() | |
name?: string; |
public static Task BasicHttpServer(string url, string outputHtml) | |
{ | |
return Task.Run(() => | |
{ | |
HttpListener listener = new HttpListener(); | |
listener.Prefixes.Add(url); | |
listener.Start(); | |
// GetContext method blocks while waiting for a request. | |
HttpListenerContext context = listener.GetContext(); |
const mockService: MyService = mock(MyService); | |
when(mockService.someFunction()).thenReturn('some value'); | |
const mockServiceInstance: MyService = instance(mockService); |
const mockProvider = <T>( | |
toMock: Type<T>, | |
setupMock: (m: T) => void | |
): { | |
provide: Type<T>; | |
useFactory: () => T; | |
} => { | |
const m = mock(toMock); | |
setupMock(m); | |
return { provide: toMock, useFactory: () => instance(m) }; |
Instructions to obtain ZSH on a windows environment, without the input funny business presented by some other attempted solutions.
The final result is ZSH running on a mintty terminal, emulated by cygwin, and being handled by the popular cmder.
For the benefit of myself and others. I've already followed these instructions twice. It took me hours to figure all this out, maybe someone else can save a few.
# In karma conf | |
customLaunchers: { | |
Chrome_from_lxss: { | |
base: 'Chrome', | |
chromeDataDir: 'C:\\Temp\\karma-' + Date.now() | |
} | |
} | |
# In .zshrc |
SSH_ENV="$HOME/.ssh/environment" | |
function start_agent { | |
echo "Initialising new SSH agent..." | |
/usr/bin/ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}" | |
echo succeeded | |
chmod 600 "${SSH_ENV}" | |
. "${SSH_ENV}" > /dev/null | |
/usr/bin/ssh-add; | |
} |