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
@xgqfrms-GitHub
xgqfrms-GitHub / prism.css
Last active October 14, 2016 16:29
prism.css
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;

great post! but here still some little bugs!

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

# 2
<del>const accountnumber = '825242631RT0001';</del>

What the hell is going on ?

@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');

new server with correct path!

# html
 <base href="/">
<script type="text/javascript" src="inline.bundle.js"></script>

# router
# /  > /dist/index.html
cache[0] = fs.readFileSync( __dirname + '/dist/index.html');