- Read DataLoader Source
- Check out Keechma's Dataloader and Graphql Builder... (video)
- Check out this example with GraphQL + Express + Dataloader
| var Redis = require('ioredis'); | |
| var redis = new Redis({ | |
| host: "nodesydney.wiftycloud.com", | |
| password: "7884b8baaa49fbcb48f17ad2a146" | |
| }); | |
| async function main() { | |
| // write an event to stream 'events', setting 'key1' to 'value1' | |
| await redis.sendCommand( |
| from sentence_transformers import SentenceTransformer, util | |
| from torch import Tensor | |
| from sklearn.metrics.pairwise import cosine_similarity | |
| from scipy.signal import argrelextrema | |
| import numpy as np | |
| import math | |
| import constants as C | |
| import openai | |
| import os | |
| import json |
- Open VSCode,
cmd+shift+p - Search for
Preferences : Configure Runtime Arguments - This will open the
argv.jsonfile with startup setting for VSCode.
This guide is written for fellow newbies to the BBB as an aid to understanding how to talk to the onboard PRU's. As a newbie some of my terminology and understanding may not be quite correct, however it's hopefully enough to give you an idea what is going on. The whole subject is a bit of a minefield for the beginner; a lot of things have changed over the last few years and most of the guides you come across are only partially correct, you have to pick through the bones to find the nuggets!. If you're using a modern stock debian image then blindly following them will lead to nothing but frustration. This guide will surely become irrelevant with time too but hopefully as of Oct 2017 it will be of some use.
I'm using the stock debian 9.1 IOT image from Beagleboard.org on an old 2GB Beaglebone Black.
In the beginning there was the Linux Userspace I/O interface (UIO) for commu
| // See documentation: https://requirejs.org/docs/api.html#webworker | |
| // working example: https://jsfiddle.net/yojaar80/2/ | |
| // from SO: https://stackoverflow.com/questions/36840329/whats-the-right-way-to-use-require-js-with-web-workers | |
| importScripts("require.js"); | |
| requirejs.config({ | |
| //Lib path | |
| baseUrl: '.', |
| const jsdom = require("jsdom"); | |
| const { JSDOM } = jsdom; | |
| const path = require('path') | |
| const fetch = require('node-fetch') | |
| const finalhandler = require('finalhandler') | |
| const http = require('http') | |
| const serveStatic = require('serve-static') | |
| function createServer (port, root = path.join(__dirname, 'dist')) { | |
| const serve = serveStatic(root) |
- Support Standard Markdown / CommonMark and GFM(GitHub Flavored Markdown);
- Full-featured: Real-time Preview, Image (cross-domain) upload, Preformatted text/Code blocks/Tables insert, Code fold, Search replace, Read only, Themes, Multi-languages, L18n, HTML entities, Code syntax highlighting...;
- Markdown Extras : Support ToC (Table of Contents), Emoji, Task lists, @Links...;
- Compatible with all major browsers (IE8+), compatible Zepto.js and iPad;
- Support identification, interpretation, fliter of the HTML tags;
- Support TeX (LaTeX expressions, Based on KaTeX), Flowchart and Sequence Diagram of Markdown extended syntax;
- Support AMD/CMD (Require.js & Sea.js) Module Loader, and Custom/define editor plugins;
| // from: https://github.com/styled-components/styled-components/issues/416#issuecomment-276230181 | |
| import React from 'react'; | |
| import classnames from 'classnames'; | |
| import styled from 'styled-components'; | |
| import { ContainerQuery } from 'react-container-query'; | |
| const query = { | |
| 'box1': { | |
| minWidth: 250, |