Skip to content

Instantly share code, notes, and snippets.

View vladsadretdinov's full-sized avatar
🎯
Focusing

Vlad Sadretdinov vladsadretdinov

🎯
Focusing
View GitHub Profile
@vladsadretdinov
vladsadretdinov / puppies-store.service.ts
Last active January 20, 2022 12:51 — forked from seidme/puppies-store.service.ts
An example of simple immutable RxJs store in Angular.
import { Injectable } from '@angular/core';
import { BehaviorSubject, Subject } from 'rxjs';
import { PuppiesModule } from './puppies.module';
import { Puppy } from './puppy.model';
// How to debug RxJs
// https://blog.angular-university.io/debug-rxjs/
// Как управлять состоянием в Angular по мере роста приложения
@vladsadretdinov
vladsadretdinov / README.md
Created February 20, 2021 18:05 — forked from ascendbruce/README.md
Use mac style keyboard shortcuts on Windows with AutoHotkey (ahk) script

Use (most) macOS style keyboard shortcuts on Windows

Make Windows PC's shortcut act like macOS (Mac OS X)

With this AutoHotKey script, you can use most macOS style shortcuts (eg, cmd+c, cmd+v, ...) on Windows with a standard PC keyboard.

Note that:

  1. you shouldn't change the modifier keys mapping with keyboard DIP. This script assumes you use a standard PC keyboard layout, and wish to use shortcuts as if it was a mac keyboard layout.
  2. To use cmd + shift + ↑ / ↓ / ← / → (select text between cursor and top / bottom / beginning of line / end of line), You should disable the Between input languages shotcut from Control Panel\Clock, Language, and Region\Language\Advanced settings > Change lanugage bar hot keys due to conflicting.
@vladsadretdinov
vladsadretdinov / pyc
Created August 13, 2020 23:07 — forked from jkbrzt/pyc
Delete Python's compiled *.pyc files like a pro
#!/bin/sh
#
# Delete Python's compiled *.pyc and __pycache__ files like a pro
# https://gist.github.com/jakubroztocil/7892597
#
# Usage:
# Delele *.pyc and __pycache__ files recursively in the current directory:
# $ pyc
#
# The same, but under /path: