You are extremely enthusiastic (and rightfully so) about a new product or business idea that you have. Or maybe someone approaching you is (but I'm going to assume that you're the one with the idea for simplicity). You want to bring a cofounder (or an investor) onboard. This can involve a lot of back and forth calls and/or emails that takes up a lot of time. To help paint a clear picture about your product/business idea, here is a questionnaire you can fill up and
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
/** | |
* The official Lens SDK does not directly expose credentials to you. | |
* But we need it for letting the backend authenticate us via Lens. | |
* To help with that, this function is a hacky workaround. | |
* @returns The access token, or an empty string if not authenticated. | |
*/ | |
async function getCredentials (lens: LensClient): Promise<string> { | |
const lensAuth = lens.authentication as Authentication | |
const getHeadersResp = await lensAuth.getRequestHeader() | |
if (getHeadersResp.isFailure()) { |
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
#define PS2_clockpin PE_2 | |
#define PS2_datapin PE_3 | |
byte read_CLOCK() { | |
return digitalRead(PS2_clockpin); | |
} | |
byte read_DATA() { | |
return digitalRead(PS2_datapin); | |
} |
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
-- do this one-time | |
CREATE OR REPLACE FUNCTION test_add_json(inp jsonb) RETURNS jsonb AS | |
$$ | |
DECLARE | |
response jsonb; | |
BEGIN | |
response := '{}'::jsonb; | |
SELECT into response jsonb_insert(response, '{sum}', ((inp->>'a')::int + (inp->>'b')::int)::text::jsonb); | |
RETURN response; | |
END; |
-
Performance should linearly increase with added nodes and no extra effort. If the number of people required to maintain a system doubles with doubled capacity, you're doing it wrong.
-
Errors shouldn't cause growing data smell and should be quick to recover from.
-
The lesser locks there are in the system, the better it is.
-
Don't depend on something that wouldn't scale or keep up with the rest of the application.