- Reported on - [Date]
- Last updated on - [Date]
- Environment - [All/Staging/Prod/QA/Dev]
- Investigators
- Person 1
- Person 2
| function reduxHelper (actionName, fn) { | |
| if (typeof actionName !== 'string') { | |
| throw new Error('actionName must be a string') | |
| } | |
| if (typeof fn !== 'function') { | |
| throw new Error('fn must be a function') | |
| } | |
| const actionNameUpper = actionName.toUpperCase() | |
| const actionRequest = actionNameUpper + '_REQUEST' | |
| const actionSuccess = actionNameUpper + '_SUCCESS' |
| #version 330 | |
| in VertexData{ | |
| vec4 mColor; | |
| } VertexIn; | |
| void main(void) | |
| { | |
| gl_FragColor = VertexIn.mColor; | |
| } |
| #include <SPI.h> | |
| #include <nRF24L01.h> | |
| #include <RF24.h> | |
| #define DEVICE_ID 2 | |
| #define CHANNEL 1 //MAX 127 | |
| RF24 radio(15, 15); // Set up nRF24L01 radio on SPI bus plus pins 7 & 8 | |
| // Topology | |
| const uint64_t pipes[2] = { 0xFFFFFFFFFFLL, 0xCCCCCCCCCCLL }; |
While the following structure is not an absolute requirement or enforced by the tools, it is a recommendation based on what the JavaScript and in particular Node community at large have been following by convention.
Beyond a suggested structure, no tooling recommendations, or sub-module structure is outlined here.
lib/is intended for code that can run as-issrc/is intended for code that needs to be manipulated before it can be used
| [url "https://github.com/"] | |
| insteadOf = git://github.com/ | |
| insteadOf = [email protected]: | |
| insteadOf = gh: | |
| insteadOf = github: | |
| [url "https://github.com/standard-analytics/"] | |
| insteadOf = sa: | |
| [url "https://git.apache.org/repos/asf/"] | |
| insteadOf = apache: | |
| [url "https://github.com/strmpnk/"] |
These are my notes basically. At first i created this gist just as a reminder for myself. But feel free to use this for your project as a starting point. If you have questions you can find me on twitter @thomasf https://twitter.com/thomasf This is how i used it on a Debian Wheezy testing (https://www.debian.org/releases/testing/)
Discuss, ask questions, etc. here https://news.ycombinator.com/item?id=7445545
When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:
const Article = require('../../../../app/models/article');Those suck for maintenance and they're ugly.
| # -*- coding: utf-8 -*- | |
| """ | |
| Created on Sat May 3 10:21:21 2014 | |
| @author: umb | |
| """ | |
| import numpy as np | |
| class GMM: |
| # Use git and git+ssh instead of https | |
| [url "git://github.com/"] | |
| insteadOf = https://github.com/ | |
| [url "[email protected]:"] | |
| pushInsteadOf = "git://github.com/" | |
| [url "[email protected]:"] | |
| pushInsteadOf = "https://github.com/" |