I hereby claim:
- I am ducdigital on github.
- I am ducdigital (https://keybase.io/ducdigital) on keybase.
- I have a public key ASAm1gtlkSBej7EAUJ1j7W9SDWLaaLmHNKRXbnbweT0RiAo
To claim this, I am signing this object:
var index, pppClient, currencyPrice; | |
pppClient = _.find(menu.fixedPriceMapClient, function (price) { | |
return price.from <= 6 && price.to >= 6; | |
}); | |
currencyPrice = menuPrices[menu.currency]; | |
if (!!pppClient) { | |
index = _.findIndex(currencyPrice, function (v,index) { | |
if (typeof currencyPrice[index+1] === 'undefined') { |
/* | |
* @file Mongoose inherit sub-schemas components test | |
* @copyright Copyright (c) LaBelleAssiette 2015. All rights reserved. | |
*/ | |
'use strict'; | |
var expect = require('chai').expect; | |
var should = require('chai').should(); | |
var mongoose = require('mongoose'); | |
var _ = require('lodash'); |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"/> | |
<title>Dont start by the end #jsbench #jsperf</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script> | |
<script src="./suite.js"></script> | |
</head> | |
<body> | |
<h1>Open the console to view the results</h1> |
I hereby claim:
To claim this, I am signing this object:
let Component = {}; | |
_.flowRight([ | |
function helpers(extradata) { | |
return function (Component) { | |
console.log('helpers component', Component); | |
Component.helpers = 'passedHelpers'; | |
Component.extradata = extradata; | |
return Component; |
class SampleCancellableAjax extends Component { | |
constructor(props) { | |
super(props); | |
/* Ajax handlers */ | |
this._cancelToken = CancelToken.source(); | |
} | |
componentDidUpdate() { |
#!/bin/bash | |
isLocked=false | |
macaddress=00:00:00:00:00:00 | |
while true; do | |
connected=$(bluetoothctl connect $macaddress) | |
if [[ $connected == *"org.bluez.Error.Failed"* ]]; then | |
if $isLocked; then | |
sleep 5 |