Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Stéphane Bachelier stephanebachelier

🎯
Focusing
Block or report user

Report or block stephanebachelier

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@stephanebachelier
stephanebachelier / config.json
Created Nov 29, 2017 — forked from anonymous/config.json
Bootstrap Customizer Config
View config.json
{
"vars": {
"@gray-base": "#000",
"@gray-darker": "lighten(@gray-base, 13.5%)",
"@gray-dark": "lighten(@gray-base, 20%)",
"@gray": "lighten(@gray-base, 33.5%)",
"@gray-light": "lighten(@gray-base, 46.7%)",
"@gray-lighter": "lighten(@gray-base, 93.5%)",
"@brand-primary": "darken(#428bca, 6.5%)",
"@brand-success": "#5cb85c",
@stephanebachelier
stephanebachelier / authors.json
Last active Mar 21, 2017 — forked from sarahverdier/authors.json
Metz sur les bancs
View authors.json
{
"authors": [
{
"id": 1,
"name": "Sophie Cherer",
"picture": "Photo Sophie Chérer © Droits réservés.JPG",
"bio": ""
},
{
"id": 2,
View authors.json
{
"authors": [
{
"id": 1,
"name": "Martin Page",
"picture": "",
"bio": ""
},
{
"id": 2,
@stephanebachelier
stephanebachelier / coins.json
Last active Oct 10, 2016
D3 geo experiments
View coins.json
[
{
"id": 62,
"loc": [
12.34,
55.4
],
"state": 2,
"gender": 0,
"coinType": "Lisbon",
@stephanebachelier
stephanebachelier / readme.md
Last active Dec 15, 2017 — forked from mikaelleven/readme.md
NodeJS SPI Dump for MCP3008 (and Raspberry Pi)
View readme.md

NodeJS SPI Dump for MCP3008

This is a simple script that reads all eight analog channels of an MCP3008 each second and outputs the result to the console.

I created this script to ease debugging of the MCP3008 ADC connected to my Raspberry Pi.

If you need to troubleshoot the SPI connection in itself you can check out my guide how to test SPI through the loopback "debug mode" https://mikaelleven.wordpress.com/2015/12/10/troubleshooting-spi-on-raspberry-pi-nodejs/.

Installation

View index.html
<nav id="navigation" data-role="navigation">
<ul>
<li><a href="#" class="link">HTML</a></li>
<li><a href="#" class="link">CSS</a></li>
<li><a href="#" class="link">Javascript</a></li>
</ul>
</nav>
<div id="#playground">
<ul>
View atom-0.157-update-crash.log
Process: Atom [44204]
Path: /Applications/Atom.app/Contents/MacOS/Atom
Identifier: com.github.atom
Version: 0.157.0 (0.157.0)
Code Type: X86-64 (Native)
Parent Process: launchd [231]
Responsible: Atom [44204]
User ID: 501
Date/Time: 2014-12-17 00:38:05.517 +0100
View foo.diff
diff --git a/src/layout-view.js b/src/layout-view.js
index 9c85195..9064053 100644
--- a/src/layout-view.js
+++ b/src/layout-view.js
@@ -16,6 +16,7 @@ Marionette.LayoutView = Marionette.ItemView.extend({
options = options || {};
this._firstRender = true;
+ this._ensureElement();
this._initializeRegions(options);
View README.md
View data.json
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.