Pug - это препроцессор HTML и шаблонизатор, который был написан на JavaScript для Node.js.
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| # Install Time Machine service on CentOS 7 | |
| # http://netatalk.sourceforge.net/wiki/index.php/Netatalk_3.1.7_SRPM_for_Fedora_and_CentOS | |
| # http://confoundedtech.blogspot.com/2011/07/draft-draft-ubuntu-as-apple-time.html | |
| yum install -y rpm-build gcc make wget | |
| # install netatalk | |
| yum install -y avahi-devel cracklib-devel dbus-devel dbus-glib-devel libacl-devel libattr-devel libdb-devel libevent-devel libgcrypt-devel krb5-devel mysql-devel openldap-devel openssl-devel pam-devel quota-devel systemtap-sdt-devel tcp_wrappers-devel libtdb-devel tracker-devel | |
| yum install -y bison docbook-style-xsl flex dconf |
| #!/usr/bin/env node | |
| var fs = require('fs'); | |
| var path = require('path'); | |
| var sass = require('node-sass'); | |
| var ENV = process.env.SASS_ENV || 'development'; | |
| var file = 'variables.scss'; | |
| //if in dev, directly pass file to sass | |
| if (ENV === "development") { |
https://gist.github.com/dancheskus/365e9bc49a73908302af19882a86ce52
В результате будет 2 react проекта на 1 сервере доступных по разным ссылкам
This is the source code of one of my blog post. To read the full blog post please click here.
| import aiohttp | |
| import asyncio | |
| import logging | |
| import time | |
| from pyppeteer import launch | |
| from urllib.parse import urlparse, parse_qs | |
| from bs4 import BeautifulSoup |
First, find the right Intel Controller (this may be different on your machine):
root@macmini:~# lspci | grep LPC
00:1f.0 ISA bridge: Intel Corporation HM65 Express Chipset Family LPC Controller (rev 05)
Next, look up the datasheet for that controller. In this case, it's https://www.intel.com/content/dam/www/public/us/en/documents/datasheets/6-chipset-c200-chipset-datasheet.pdf
Read it. I wanted the AFTERG3_EN bit in the "GEN_PMCON_3 - General PM Configuration 3 Register", which documented on pp.510-513.
Offset Address is A4h and Size: 16-bit.
First, find the right Intel Controller (this may be different on your machine):
root@macmini:~# lspci | grep LPC
00:1f.0 ISA bridge: Intel Corporation HM65 Express Chipset Family LPC Controller (rev 05)
Next, look up the datasheet for that controller. In this case, it's https://www.intel.com/content/dam/www/public/us/en/documents/datasheets/6-chipset-c200-chipset-datasheet.pdf
Read it. I wanted the AFTERG3_EN bit in the "GEN_PMCON_3 - General PM Configuration 3 Register", which documented on pp.510-513.
Offset Address is A4h and Size: 16-bit.