Example:
HTML:
<form id="myForm">
<label for="PermissionsWrite">Write</label>
<input id="PermissionsWrite" type="checkbox" name="data[Permissions][]" value="Write" checked />
Read
interface SomeInterface { | |
(a : string, b : number, c : boolean) : void | |
} | |
function SomeFunction : SomeInterface() { | |
} | |
// Would be the same as |
var readline = require('readline'); | |
function Scope(variables, parent) { | |
this.variables = variables || {}; | |
this.parent = parent; | |
} | |
Scope.prototype.find = function(name) { | |
return this.variables.hasOwnProperty(name) ? | |
this.variables[name] : |
define(['knockout', 'clamp'], function(ko, $clamp) { | |
'use strict'; | |
var textKey = 'originalClampText'; | |
ko.bindingHandlers.clamp = { | |
update: function(element, valueAccessor, allBindings) { | |
var defaultText; |
.no-select, .no-select * { | |
-webkit-user-select: none; | |
} | |
.selectable, .selectable * { | |
-webkit-user-select: all: | |
} |
Example:
HTML:
<form id="myForm">
<label for="PermissionsWrite">Write</label>
<input id="PermissionsWrite" type="checkbox" name="data[Permissions][]" value="Write" checked />
Read
/// <reference path="./typings/node/node.d.ts" /> | |
import http = require('http'); | |
/** | |
* Takes a value from one middleware, and passes it to the next. | |
* | |
* If there is no next middleware, it returns the value to the middleware consumer | |
*/ | |
interface MiddlewareDoneFunction<T> { |
<?php | |
/** | |
* | |
* Nathaniel Higgins | |
* | |
* Add some easy helpers for adding named routes | |
* | |
* Use as follows: | |
* | |
* get('/', named('home', 'HomeController@index')); |
class Greeter { | |
name; | |
constructor(name) { | |
this.name = name; | |
} | |
greet() { | |
return `Hello, ${this.name}`; | |
} |
var obj = { | |
child : { | |
a : '0', | |
b : '2' | |
} | |
}; | |
var extra = { | |
b : '3' | |
}; |
{ | |
"Aberavon": [ | |
{ | |
"name": "(LAB)", | |
"votes": 15416, | |
"share": 0.48 | |
}, | |
{ | |
"name": "(UKIP)", | |
"votes": 4971, |