Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="node_modules/leaflet/dist/leaflet.css" />
<script src="node_modules/leaflet/dist/leaflet-src.js"></script>
<script src="node_modules/jquery/dist/jquery.js"></script>
<style>
html { height: 100%; }
body { height: 100%; margin: 0; }
Directory
returns false from isFile()
returns true from isDirectory()
when the contents of the directory change on disk
triggers 'contents-changed' event handlers
when the directory unsubscribes from events
no longer triggers events
@nkovacs
nkovacs / gist:e70f105e68e79bf0260d
Created June 7, 2014 11:13
Yii 2 framework phpcs errors
FILE: /home/nkovacs/htdocs/yii2/yii2/framework/web/Request.php
--------------------------------------------------------------------------------
FOUND 3 ERROR(S) AFFECTING 2 LINE(S)
--------------------------------------------------------------------------------
673 | ERROR | Opening parenthesis of a multi-line function call must be the
| | last content on the line
682 | ERROR | Only one argument is allowed per line in a multi-line function
| | call
682 | ERROR | Closing parenthesis of a multi-line function call must be on a
| | line by itself