Skip to content

Instantly share code, notes, and snippets.

View trungvose's full-sized avatar
πŸ‡ΈπŸ‡¬

Trung Vo trungvose

πŸ‡ΈπŸ‡¬
View GitHub Profile
@trungvose
trungvose / event-loop.md
Created January 4, 2021 12:16 — forked from jesstelford/event-loop.md
What is the JS Event Loop and Call Stack?

Regular Event Loop

This shows the execution order given JavaScript's Call Stack, Event Loop, and any asynchronous APIs provided in the JS execution environment (in this example; Web APIs in a Browser environment)


Given the code

import { ComponentFactoryResolver, ComponentRef, Directive, EventEmitter, Input, Type, ViewContainerRef } from '@angular/core';
import { Subscription } from 'rxjs';
@Directive({
selector: '[lazyComp]'
})
export class LazyCompDirective {
private _inputs;
private _outputs;
private subscription = new Subscription();
@trungvose
trungvose / codersX-culture.md
Created June 18, 2020 02:58 — forked from nartc/codersX-culture.md
Văn hoÑ CodersX team

Văn hoÑ CodersX

CodersX lΓ  mα»™t. ChΓΊng ta hoαΊ‘t Δ‘α»™ng vΓ¬ mα»™t mα»₯c Δ‘Γ­ch duy nhαΊ₯t: Thay Δ‘α»•i thαΊΏ giα»›i mα»™t cΓ‘ch tΓ­ch cα»±c, bαΊ―t Δ‘αΊ§u bαΊ±ng việc tαΊ‘o nΓͺn mα»™t nền giΓ‘o dα»₯c miα»…n phΓ­.

Vision

  1. Thay Δ‘α»•i thαΊΏ giα»›i ← 2. CΓΉng nhau lΓ m cΓ‘c startup cΓ³ αΊ£nh hưởng tΓ­ch cα»±c tα»›i cuα»™c sα»‘ng xung quanh ← 1. LΓ m mα»›i hệ thα»‘ng giΓ‘o dα»₯c ← 0. GiΓΊp tαΊ₯t cαΊ£ mọi người tiαΊΏp cαΊ­n vα»›i lαΊ­p trΓ¬nh

GiΓΊp Δ‘α»‘ cΓ‘c thΓ nh viΓͺn trong team

Mα»™t team chỉ mαΊ‘nh khi tαΊ₯t cαΊ£ mọi người support lαΊ«n nhau, vΓ  cΓΉng nhau lΓ m việc vΓ¬ mα»™t mα»₯c tiΓͺu duy nhαΊ₯t. NαΊΏu chỉ nghΔ© Δ‘αΊΏn bαΊ£n thΓ’n thΓ¬ mα»™t lΓΊc nΓ o Δ‘Γ³ team sαΊ½ tan rΓ£ (nαΊΏu nhiều người cΓΉng nghΔ© về bαΊ£n thΓ’n), hoαΊ·c tα»± loαΊ‘i mΓ¬nh ra khỏi team.

NghΔ© tα»›i người xung quanh

@trungvose
trungvose / gist:e11965a61c9624265ca82769009e1d51
Created June 12, 2020 12:01 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue:
@trungvose
trungvose / youtube-vimeo-url-parser.js
Created February 3, 2019 07:49 — forked from yangshun/youtube-vimeo-url-parser.js
YouTube Vimeo URL Parser
function parseVideo (url) {
// - Supported YouTube URL formats:
// - http://www.youtube.com/watch?v=My2FRPA3Gf8
// - http://youtu.be/My2FRPA3Gf8
// - https://youtube.googleapis.com/v/My2FRPA3Gf8
// - Supported Vimeo URL formats:
// - http://vimeo.com/25451551
// - http://player.vimeo.com/video/25451551
// - Also supports relative URLs:
// - //player.vimeo.com/video/25451551
@trungvose
trungvose / any.component.html
Created December 18, 2018 09:57 — forked from arniebradfo/any.component.html
Angular *ngFor recursive list tree template
<h1>Angular 2 Recursive List</h1>
<ul>
<ng-template #recursiveList let-list>
<li *ngFor="let item of list">
{{item.title}}
<ul *ngIf="item.children.length > 0">
<ng-container *ngTemplateOutlet="recursiveList; context:{ $implicit: item.children }"></ng-container>
</ul>
</li>
</ng-template>
@trungvose
trungvose / ngrxintro.md
Created March 28, 2017 08:43 — forked from btroncone/ngrxintro.md
A Comprehensive Introduction to @ngrx/store - Companion to Egghead.io Series

#Comprehensive Introduction to @ngrx/store By: @BTroncone

Also check out my lesson @ngrx/store in 10 minutes on egghead.io!

Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!

Table of Contents

@trungvose
trungvose / introrx.md
Created March 1, 2017 07:01 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@trungvose
trungvose / SCSS.md
Created February 17, 2017 07:43 — forked from jareware/SCSS.md
Advanced SCSS, or, 16 cool things you may not have known your stylesheets could do

⇐ back to the gist-blog at jrw.fi

Advanced SCSS

Or, 16 cool things you may not have known your stylesheets could do. I'd rather have kept it to a nice round number like 10, but they just kept coming. Sorry.

I've been using SCSS/SASS for most of my styling work since 2009, and I'm a huge fan of Compass (by the great @chriseppstein). It really helped many of us through the darkest cross-browser crap. Even though browsers are increasingly playing nice with CSS, another problem has become very topical: managing the complexity in stylesheets as our in-browser apps get larger and larger. SCSS is an indispensable tool for dealing with this.

This isn't an introduction to the language by a long shot; many things probably won't make sense unless you have some SCSS under your belt already. That said, if you're not yet comfy with the basics, check out the aweso

Comparison of ASP.NET and Node.js for Backend Programming

We will compare ASP.NET and Node.js for backend programming.
Source codes from examples.

Updates

This document was published on 21.09.2015 for a freelance employer. Some changes since then (14.02.2016):

  1. Koa.js no longer uses co-routines, it has switched to Babel's async/await. yield and await are used almost in the same way, so I see no point to rewrite the examples.