ge
When hosting our web applications, we often have one public IP
address (i.e., an IP address visible to the outside world)
using which we want to host multiple web apps. For example, one
may wants to host three different web apps respectively for
example1.com
, example2.com
, and example1.com/images
on
the same machine using a single IP address.
How can we do that? Well, the good news is Internet browsers
❯ npm cache clean; and rm -rf node_module
❯ yarn
yarn install v0.15.1
info No lockfile found.
[1/4] 🔍 Resolving packages...
warning gulp-environments > gulp-if > gulp-match > [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
warning gulp-sass-bulk-import > glob > [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
warning gulp-csscomb > csscomb > csscomb-core > [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
```bash | |
sota at Sotas-MacBook-Pro in ~/Documents/workspace/dotgames-server on feature/show-campagin-spot [?] | |
❯ npm cache clean; and rm -rf node_module 20:07 | |
sota at Sotas-MacBook-Pro in ~/Documents/workspace/dotgames-server on feature/show-campagin-spot [?] | |
❯ yarn 7s 122ms | |
yarn install v0.15.1 | |
info No lockfile found. | |
[1/4] 🔍 Resolving packages... | |
warning gulp-environments > gulp-if > gulp-match > [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue |
.hll { background-color: #ffffcc } | |
.c { color: #408080; font-style: italic } /* Comment */ | |
.err { border: 1px solid #FF0000 } /* Error */ | |
.k { color: #008000; font-weight: bold } /* Keyword */ | |
.o { color: #666666 } /* Operator */ | |
.ch { color: #408080; font-style: italic } /* Comment.Hashbang */ | |
.cm { color: #408080; font-style: italic } /* Comment.Multiline */ | |
.cp { color: #BC7A00 } /* Comment.Preproc */ | |
.cpf { color: #408080; font-style: italic } /* Comment.PreprocFile */ | |
.c1 { color: #408080; font-style: italic } /* Comment.Single */ |
# For fish shell | |
# it helps you win at npm | |
function clean -d "Clean npm global modules" | |
# ~/.config/fnm 下は例外 | |
end |
I understand why ECSS make CSS be isolated but I have a question. Here is two modal components and I cannnot same components. There are buttons which rules are same in each component. According to ECSS I should write same code but I think it is redundant. what would you do in this situation ? Thaks in advance. 😄
components # Presentational Components
.
├── foo-modal
<?php | |
function hide_cursor($stream = STDOUT) { | |
fprintf($stream, "\033[?25l"); // hide cursor | |
register_shutdown_function(function() use($stream) { | |
fprintf($stream, "\033[?25h"); //show cursor | |
}); | |
} |
This is a set up for projects which want to check in only their source files, but have their gh-pages branch automatically updated with some compiled output every time they push.
You want a script that does a local compile to e.g. an out/
directory. Let's call this compile.sh
for our purposes, but for your project it might be npm build
or gulp make-docs
or anything similar.
The out/
directory should contain everything you want deployed to gh-pages
. That almost always includes an index.html
.