Skip to content

Instantly share code, notes, and snippets.

View Nazar32's full-sized avatar
💻

Nazar Nazar32

💻
  • PlayHQ
  • Kyiv
View GitHub Profile

Keybase proof

I hereby claim:

  • I am nazar32 on github.
  • I am razanm (https://keybase.io/razanm) on keybase.
  • I have a public key ASB5993WzarUHaA5wBBJn4tKEYD_lquVrsLVVzo5HYjRngo

To claim this, I am signing this object:

const chokidar = require('chokidar');
const watcher = chokidar.watch('.', {
ignored: '/\\.(png|jpg|gif|svg)$/',
});
watcher.on('ready', () => {
console.log('ready');
watcher.on('all', (event, path) => {
console.log(`all ${path}`);
Object.keys(require.cache).forEach((id) => {
  1. Install php 7.0
curl -s http://php-osx.liip.ch/install.sh | bash -s 7.0
  1. Add php bins to .bash_profile
echo 'export PATH=/usr/local/php5/bin:/usr/local/php5/sbin:$PATH' >>~/.bash_profile
  1. Create config files for php-fpm
function heightDetect() {
$(".main_head").css("height", $(window).height());
}
heightDetect();
$(window).resize(function() {
heightDetect();
})