Movatterモバイル変換


[0]ホーム

URL:


Skip to content
Search Gists
Sign in Sign up

Instantly share code, notes, and snippets.

View thangngoc89's full-sized avatar

Khoa Nguyen thangngoc89

View GitHub Profile
@thangngoc89
thangngoc89 /index.tsx
CreatedMay 26, 2022 16:27— forked fromm5r/index.tsx
bullmq job queue in Remix
importnotifierQueuefrom"~/queues/notifier.server.ts";
exportconstloader=async()=>{
awaitnotifierQueue.add("test",{emailAddress:"mokhtar@remixtape.dev"});
returnnull;
};
@thangngoc89
thangngoc89 /machine.js
Last activeNovember 10, 2019 17:53
Generated by XState Viz:https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@thangngoc89
thangngoc89 /machine.js
CreatedNovember 5, 2019 20:58
Generated by XState Viz:https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@thangngoc89
thangngoc89 /App.re
CreatedAugust 6, 2018 12:23— forked frommhallin/App.re
Async import pattern
PageModule.fetchModule("./MyComponent")
|>Js.Promise.then_(m=> send(SetRootElement(m())));
@thangngoc89
thangngoc89 /keybase.md
CreatedJune 21, 2018 11:32
keybase.md

I hereby claim:

  • I am thangngoc89 on github.
  • I am thangngoc89 (https://keybase.io/thangngoc89) on keybase.
  • I have a public key ASAGw1gNieyFrHGx5uYkdpPcM8kx1iUCbaEc65OSRnXHFQo

To claim this, I am signing this object:

@thangngoc89
thangngoc89 /vpn.md
CreatedFebruary 14, 2018 05:56— forked fromjoepie91/vpn.md
Don't use VPN services.

No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.

Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.

(A Russian translation of this article can be foundhere, contributed by Timur Demin.)

Why not?

@thangngoc89
thangngoc89 /db.js
CreatedJune 2, 2017 13:45— forked fromsoldair/db.js
backup a running node levelup process
varlevelup=require('level')
varzlib=require('zlib')
varfs=require('fs')
varthrough=require('through')
//hot backup
db=levelup(...)
varbackingup=false
@thangngoc89
thangngoc89 /msconvert.js
CreatedDecember 30, 2015 20:41— forked fromremino/msconvert.js
#"text" tabindex="0" role="region" aria-label="msconvert.js content, created by thangngoc89 on 08:41PM on December 30, 2015." >
functionconvertMS(ms){
vard,h,m,s;
s=Math.floor(ms/1000);
m=Math.floor(s/60);
s=s%60;
h=Math.floor(m/60);
m=m%60;
d=Math.floor(h/24);
h=h%24;
return{d:d,h:h,m:m,s:s};
$categories = array(
'Xe' => array(
'Xe máy',
'Xe ô tô',
),
'Điện thoại, Viễn thông' => array(
'Điện thoại',
'Linh kiện, phụ kiện',
),
);
NewerOlder

[8]ページ先頭

©2009-2025 Movatter.jp