Skip to content

Instantly share code, notes, and snippets.

@nkovacs
nkovacs / runtime.js
Created November 2, 2016 11:40
runtime.js
define([], function() {
function Runtime( strictNumberSign ) {
this.setStrictNumber( strictNumberSign );
}
/** Utility function for `#` in plural rules
*
* Will throw an Error if `value` has a non-numeric value and `offset` is
* non-zero or {@link MessageFormat#setStrictNumberSign} is set.
@nkovacs
nkovacs / compiler.js
Created November 2, 2016 11:37
compiler.js
define([
"../core",
"messageformat-parser",
"reserved-words"
], function( Globalize, Parser, reserved ) {
/** Creates a new message compiler.
*
* @class
* @param {object} context - Context (this) for formatter functions
@nkovacs
nkovacs / git.nanorc
Created September 5, 2016 14:51
Git syntax highlighting for nano
# This code is free software; you can redistribute it and/or modify it under
# the terms of the new BSD License.
#
# Copyright (c) 2010, Sebastian Staudt
# A nano configuration file to enable syntax highlighting of some Git specific
# files with the GNU nano text editor (http://www.nano-editor.org)
#
# Save this file to a directory of your choice and add it to your nanorc using
# include ${PATH_TO_THE_FILE}/git.nanorc
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',
@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
@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 / 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
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: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
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);