Skip to content

Instantly share code, notes, and snippets.

View factor5's full-sized avatar

Svilen Velikov factor5

  • Sirma Solutions
View GitHub Profile
@LironHazan
LironHazan / oz_gonen_store.ts
Created October 8, 2020 10:08
rxjs_snippets_for_blog_post
import {BehaviorSubject, Observable} from 'rxjs';
export class StoreService<T> {
private readonly state$: BehaviorSubject<T>;
protected get state(): T {
return this.state$.getValue();
}
constructor(initialState: T) {
this.state$ = new BehaviorSubject<T>(initialState);
}
protected getState(): Observable<T> {
@bradtraversy
bradtraversy / docker-help.md
Last active May 4, 2026 04:04
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@paulallies
paulallies / gist:0052fab554b14bbfa3ef
Last active March 31, 2026 18:26
Remove node_modules from git repo
#add 'node_modules' to .gitignore file
git rm -r --cached node_modules
git commit -m 'Remove the now ignored directory node_modules'
git push origin <branch-name>
@mbreit
mbreit / font-awesome.css.sass
Last active December 20, 2025 09:31
Using Font Awesome with SASS and mixins for adding icons to semantic HTML
$fontawesome_path: "." !default
@font-face
font-family: 'FontAwesome'
src: font-url('#{$fontawesome_path}/fontawesome-webfont.eot')
src: font-url('#{$fontawesome_path}/fontawesome-webfont.eot?#iefix') format("embedded-opentype"), font-url('#{$fontawesome_path}/fontawesome-webfont.woff') format("woff"), font-url('#{$fontawesome_path}/fontawesome-webfont.ttf') format("truetype")
font-weight: normal
font-style: normal
@mixin icon($icon)