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
#include <SoftwareSerial.h> | |
// Pins | |
#define BT_PIN_TX 7 | |
#define BT_PIN_RX 6 | |
#define BT_PIN_KEY 5 | |
#define BT_CMD_RETRIES 3 | |
boolean btErrorFlag = true; |
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
#include <SoftwareSerial.h> | |
// Pins | |
#define BT_PIN_TX 7 | |
#define BT_PIN_RX 6 | |
#define BT_PIN_KEY 5 | |
SoftwareSerial BTSerial(BT_PIN_RX, BT_PIN_TX); | |
void setup() |
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
### Keybase proof | |
I hereby claim: | |
* I am mathieulesniak on github. | |
* I am mathieulesniak (https://keybase.io/mathieulesniak) on keybase. | |
* I have a public key whose fingerprint is 905B 6756 00F4 74C7 C2F8 D58C 71D3 56FF 324C 7A38 | |
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
<?php | |
function postToSlack($message, $room, $fromName = null, $icon = null) | |
{ | |
$data = json_encode(array( | |
"username" => $fromName, | |
"channel" => "#{$room}", | |
"text" => $message, | |
"icon_emoji" => $icon | |
) | |
); |
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
import React from 'react'; | |
class HelloWorld extends React.Component { | |
render() { | |
return <h1>Hello World !</h1>; | |
} | |
} | |
export default HelloWorld; |
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
import React from 'react'; | |
class ReactIsGreat extends React.Component { | |
render() { | |
return <h2>React is great !</h2>; | |
} | |
} | |
export default ReactIsGreat; |
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
import React from 'react'; | |
import HelloWorld from './HelloWorld'; | |
import ReactIsGreat from './ReactIsGreat'; | |
class ComposedView extends React.Component { | |
render() { | |
return <div> | |
<HelloWorld /> | |
<ReactIsGreat /> | |
</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
import React from 'react'; | |
class HelloWorld extends React.Component { | |
render() { | |
return <h1>Hello {this.props.name} !</h1>; | |
} | |
} | |
export default HelloWorld; |
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
import React from 'react'; | |
import HelloWorld from './HelloWorld'; | |
class ComposedView extends React.Component { | |
render() { | |
return <div> | |
<HelloWorld name="Dan" /> | |
</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
import React from 'react'; | |
class Timer extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state = {secondsElapsed: 0}; | |
} | |
tick: function() { | |
this.setState({secondsElapsed: this.state.secondsElapsed + 1}); | |
} |
OlderNewer