Skip to content

Instantly share code, notes, and snippets.

View xgqfrms-GitHub's full-sized avatar
🌴
On vacation

anonymous xgqfrms-GitHub

🌴
On vacation
View GitHub Profile

great post! but here still some little bugs!

# 1
<del>flightNumber.endsWith(jz)</del>
flightNumber.endsWith(`jz`)

# 2
<del>const accountnumber = '825242631RT0001';</del>
@xgqfrms-GitHub
xgqfrms-GitHub / express-static-server.md
Last active October 5, 2023 15:40
express static server (Node.js HTTP Server)

Node.js HTTP Server

/**
* express static server for react build/dist test!
*/ 

// simple express server for HTML pages!
// ES6 style

windows CMD terminal setting for sublime text 3!

{
    "terminal": "C:\\Windows\\System32\\cmd.exe",
    "start": ["/START", "%CWD%"],
    "title": ["/TITLE", "Hacker's Bash"],
    "keys": ["ctrl+shift+t"],
 "command": "open_terminal"
// only for Angular2 dist
//
// # SimpleServer
//
// A simple chat server using Socket.IO, Express, and Async.
//
var http = require('http');
var path = require('path');
var async = require('async');
// only for Angular2 dist & firwbase hosting
//
// # SimpleServer
//
// A simple chat server using Socket.IO, Express, and Async.
//
var http = require('http');
var path = require('path');
var async = require('async');
@xgqfrms-GitHub
xgqfrms-GitHub / internationalization & Localization.js
Created December 18, 2016 11:22
JavaScript Globalization : JavaScript Implement Internationalization (i18n) & Localization ( L10n)
/**
* https://github.com/ufo-github/globalize/tree/master/Tutorial
*/
let x = new Date();
// window (super global scope variable)
window.Intl.DateTimeFormat('en-US').format(x);
Intl.DateTimeFormat('en-US').format(x);
@xgqfrms-GitHub
xgqfrms-GitHub / 前端知识汇总.md
Created December 21, 2016 07:43
前端知识汇总