Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
const { readdir, readFile, writeFile } = require('node:fs/promises'); | |
const { spawn } = require('node:child_process'); | |
const path = require('path'); | |
const frontmatter = require('frontmatter'); | |
let notedir = process.env.PWD; | |
if (process.argv.length > 2) { | |
notedir = path.resolve(process.env.PWD, process.argv[2]); | |
} | |
const notesmap = {}; |
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 asyncio | |
import threading | |
from evdev import InputDevice, categorize, ecodes | |
dev = InputDevice('/dev/input/event1') | |
clicks = 0 | |
timer = None | |
def count_clicks(): | |
global clicks, timer |
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
const fbpManifest = require('fbp-manifest'); | |
const fbpGraph = require('fbp-graph'); | |
const path = require('path'); | |
const showError = (err) => { | |
console.error(err); | |
process.exit(1); | |
}; | |
const baseDir = process.cwd(); |
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
const noflo = require('noflo'); | |
function getFlowhubStats() { | |
return fetch('https://api.flowhub.io/stats') | |
.then((result) => result.json()); | |
} | |
exports.getComponent = () => noflo.asComponent(getFlowhubStats); |
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
noflo = require 'noflo' | |
window.bsyncs = [] | |
class Bsync | |
constructor: (@request,@waitfor,@block,@callback) -> | |
exports.getComponent = -> | |
c = new noflo.Component | |
c.description = 'bsync' |
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
{ | |
"properties": { | |
"name": "face", | |
"environment": { | |
"type": "noflo-browser", | |
"content": "<video id=\"vid\" width=\"640\" height=\"480\" style=\"position:absolute; top:0px; left:0px\" autoplay></video>\n<canvas id=\"can\" width=\"640\" height=\"480\" style=\"position:absolute; top:0px; left:0px\"></canvas>\n<div id=\"start\" style=\"position:absolute; top:0px; left:0px;\"><button id=\"start\">start camera</button><br/>\ncolor start <input id=\"colorstart\" type=\"range\" min=\"0\" max=\"360\" value=\"0\"></input><br/>\ncolor end<input id=\"colorend\" type=\"range\" min=\"0\" max=\"360\" value=\"360\"></input><br />\ncolor count<input id=\"colorcount\" type=\"range\" min=\"1\" max=\"100\" value=\"50\"></input><br/>\n" | |
} | |
}, | |
"inports": {}, | |
"outports": {}, |
NewerOlder