<div>
<p class="rose">J'adore la programmation</p>
</div>
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SampleCancellableAjax extends Component { | |
constructor(props) { | |
super(props); | |
/* Ajax handlers */ | |
this._cancelToken = CancelToken.source(); | |
} | |
componentDidUpdate() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let Component = {}; | |
_.flowRight([ | |
function helpers(extradata) { | |
return function (Component) { | |
console.log('helpers component', Component); | |
Component.helpers = 'passedHelpers'; | |
Component.extradata = extradata; | |
return Component; |
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:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* @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'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') { |