The absolute minimum of NPM scripts required for a React app to be build by TeamCity.
{
...
scripts: {
...
"build": "XXX: builds a deployable version in dev mode",
"lint": "XXX: lints the code",
The goal is to collect and list useful aricles/blogs for functional programming.
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Input - detect changes in the text</title> | |
</head> | |
<body> | |
<input id="dateinput" /> | |
<script> | |
const startMatchIndex = (origin = "", candidate = "") => { |
# Should we support infinite date range | |
## Competitors | |
### AngularJS Material | |
They do have virtualized scrolling but does not support infinite min/max date range. When set to null, | |
the lowest date is still the default one (1880-0-1) | |
Demo: http://codepen.io/anon/pen/KaZvxo |
protected change(candidate: any, isCustom: boolean = false): void { | |
const currentValue: any = Util.getter(this.value, this.valueField); | |
this.open = false; | |
if (isCustom) { | |
this.handleCustomValue(candidate, currentValue); | |
} else { | |
this.handleValue(candidate, currentValue); | |
} |
collision: | |
{ | |
'fit', //fits the popup position if it is not fully visible in the view-port | |
'flip' //flips the popup position if it is not fully visible in the view-port | |
} |
horizontal: | |
{ | |
'left', //use 'left' pivot point of the element | |
'center', //use 'center' pivot point of the element | |
'right' //use 'right' pivot point of the element | |
} | |
vertical: | |
{ | |
'top', //use 'top' pivot point of the element |
(function($) { | |
var kendo = window.kendo; | |
var globalize = window.Globalize; | |
function expandNumberFormat(numberFormat) { | |
numberFormat.groupSizes = numberFormat.groupSize; | |
numberFormat.percent.groupSizes = numberFormat.percent.groupSize; | |
numberFormat.currency.groupSizes = numberFormat.currency.groupSize; | |
} | |
kendo.culture = function (cultureName) { |
$rules = array(); | |
$rules["~"] = new \Kendo\JavaScriptFunction('/[+-]/'); | |
$phone_number = new \Kendo\UI\MaskedTextBox('phone_number'); | |
$phone_number->rules($rules); |
<% | |
Map<String,Object> map = new HashMap<String,Object>(); | |
String rule = "/[+-]/"; | |
map.put("~", new Function(rule)); | |
String rule2 = "function (char) {" + | |
"return char ==='*';" + | |
"}"; |