Skip to content

Instantly share code, notes, and snippets.

@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
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
<!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; }
@nkovacs
nkovacs / SassMeister-input.scss
Created November 13, 2014 12:41
Generated by SassMeister.com.
// ----
// libsass (v3.0.1)
// ----
$categories: "test1", "test2";
@for $i from 0 to length($categories) {
$name: unquote(nth($categories, $i + 1));
.transaction-category-#{$name} span {
background-image: url(../img/@1x/icons/category/transaction-category-#{unquote(nth($categories, $i + 1))}.png);
@nkovacs
nkovacs / SassMeister-input.scss
Created November 13, 2014 12:43
Generated by SassMeister.com.
// ----
// libsass (v3.0.1)
// ----
$categories: "test1", "test2";
@for $i from 0 to length($categories) {
$name: unquote(nth($categories, $i + 1));
.transaction-category-#{$name} span {
background-image: url(../img/@1x/icons/category/transaction-category-#{$name}.png);
@nkovacs
nkovacs / SassMeister-input.scss
Last active August 29, 2015 14:09
Generated by SassMeister.com.
// ----
// libsass (v3.0.1)
// ----
$categories: "test1", "test2";
@for $i from 0 to length($categories) {
$name: unquote(nth($categories, $i + 1));
.transaction-category-#{$name} span {
background-image: url("../img/@1x/icons/category/transaction-category-#{unquote(nth($categories, $i + 1))}.png");
@nkovacs
nkovacs / SassMeister-input.scss
Created November 13, 2014 12:51
Generated by SassMeister.com.
// ----
// libsass (v3.0.1)
// ----
$categories: "test1", "test2";
@for $i from 0 to length($categories) {
$name: unquote(nth($categories, $i + 1));
.transaction-category-#{$name} span {
background-image: url("../img/@1x/icons/category/transaction-category-#{unquote(nth($categories, $i + 1))}.png");
@nkovacs
nkovacs / SassMeister-input.scss
Created November 13, 2014 13:15
Generated by SassMeister.com.
// ----
// libsass (v3.0.1)
// ----
$categories: "test1", "test2";
@for $i from 0 to length($categories) {
$name: unquote(nth($categories, $i + 1));
.transaction-category-#{$name} span {
background-image: url(img/1x/icons/category/transaction-category-#{unquote(nth($categories, $i + 1))}png);
@nkovacs
nkovacs / zerrors_linux_arm.go
Created March 5, 2016 16:18
zerrors_linux_arm.go
// mkerrors.sh
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
// +build arm,linux
// Created by cgo -godefs - DO NOT EDIT
// cgo -godefs -- _const.go
package unix
var Globalize = require('globalize');
var globalizeCompiler = require('globalize-compiler');
function loadGlobalData() {
var data = [
'cldr-data/supplemental/likelySubtags.json',
'cldr-data/supplemental/numberingSystems.json',
'cldr-data/supplemental/timeData.json',
'cldr-data/supplemental/weekData.json',
'cldr-data/supplemental/plurals.json',