I hereby claim:
- I am yoojene on github.
- I am yoojene (https://keybase.io/yoojene) on keybase.
- I have a public key ASDYeL5If2N8HygWAROdrgJknlLhVg1oV87NjTDkdmMbHgo
To claim this, I am signing this object:
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.4.3/angular.min.js"></script> | |
<script src="script.js"></script> | |
<link href="style.css" type="text/css" rel="stylesheet"> |
/** | |
* NACHS (LCH) Calculator | |
* | |
* @param mbo | |
* Primary mbo on which to run the NACHS (LCH) Calculator. In essence this is either INCIDENT or WORKORDER.ORIGTICKET[0] depending on if this is called from the button or onSave rule | |
* | |
* @return lch | |
*/ | |
I hereby claim:
To claim this, I am signing this object:
<label class="item item-radio" ng-repeat="nb in data.notebooks"> | |
<input type="radio" ng-model="nb.isSelected" ng-value="$index" ng-click="data.selectNb(nb, $index)" id="dci_Main_InputRadio_Select_{{$index}}"> | |
<div class="item-content" ng-class="{'newton-my-health-mood-modal-radio-selected' : nb.isSelected === data.selected.idx }"> | |
{{nb.attributes.name}} | |
</div> | |
</label> |
var activeEvents = []; | |
activeEvents = res.filter(function (v) { | |
return v.isActive = true; | |
}); |
// items | |
// [{:url:"www.mysite.com"}, {description: "Here's a link to my site"}] | |
let flatItems = items.reduce((acc, i) => Object.assign({}, acc, i), {}); | |
// flatItems | |
// {url:"www.mysite.com", description: "Here's a link to my site"} |
onRemove(group, index) { | |
this.removed.emit( {group, index} ) | |
} | |
// Creates new object with values and properties same as passed arguments | |
// { group: group, index: index } |
/* | |
form = | |
[{"slot":"email","value":"eugene.cross@gmail.com"},{"slot":"password","value":"12345"},{"slot":"repeatPassword","value":"12345"},{"slot":"designationName","value":"Yoojene"},{"slot":"firstName","value":"Eugene"},{"slot":"lastName","value":"Cross"},{"slot":"municipality","value":"London"},{"slot":"workplace","value":"Home Office"}] | |
*/ | |
let flattened = {}; | |
form.forEach(el => { | |
flattened[el.slot] = el.value; | |
}); | |
/* | |
flattened |
# Node | |
node_modules/* | |
npm-debug.log | |
# TypeScript | |
src/*.js | |
src/*.map | |
src/*.d.ts | |
# Python |
const record = [ | |
{id: 1,age:30, name:"Steph Curry",date: "14/03/18 13:07"}, | |
{id: 2,age:28, name:"Klay Thompson",date: "08/02/18 16:30"}, | |
{id: 3,age:29, name:"Kevin Durant",date: "29/09/18 12:34"} | |
]; | |
// Using native new Date(), convert to miliseconds and subtract from one another. | |
record.sort((a, b) => { | |
return new Date(a.date).getTime() - new Date(b.date).getTime() |