NeurFlow is a revolutionary new programming language for building complex, dynamic, and reactive user interfaces. Inspired by the structure and function of neural networks, NeurFlow allows you to define your application as a network of interconnected "neurons".
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
#!/bin/bash | |
echo "On-Call Report - $(date '+%Y-%m-%d %H:%M:%S')" | |
echo "================================================" | |
echo -e "\n## Recently Updated PRs" | |
echo "------------------------" | |
gh pr list --limit 10 --json number,url,title,updatedAt --jq 'sort_by(.updatedAt) | reverse | .[] | "[\(.updatedAt)] \(.url): \(.title)"' | sed 's/T/ /; s/Z//' | |
echo -e "\n## Issues Needing Author Response" |
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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Debug Current File", | |
"type": "node", | |
"request": "launch", | |
"program": "${workspaceFolder}/.vscode/utils/run-test.js", | |
"args": ["${file}"], | |
"console": "integratedTerminal", |
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
Please analyze the following GitHub issue data, which is provided as a JSON object: | |
{ | |
"title": "🐛 BUG: WebSocket typing doesn't work in apps that also pull in DOM types", | |
"body": "Which Cloudflare product(s) does this pertain to?", | |
} | |
Provide a response with the following structure: | |
<json> |
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 * as fs from "fs"; | |
import * as path from "path"; | |
function readFileContents(filePath: string): string { | |
return fs.readFileSync(filePath, "utf-8"); | |
} | |
function processDirectory(dirPath: string, outputString: string): string { | |
const files = fs.readdirSync(dirPath); |
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
Between the <list> and </list> markers are a list of files in this repo. However, in order to make them shorter, they have been compressed in the following way: | |
- each file path token (excluding final filename) has been swapped with a short version, and then added to a map. | |
- the shortened version is inserted into the file path instead of the original token. | |
For example: | |
this/is/the/file/path/for/test.ts | |
this/is/another/path/for/another.ts |
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 { Hono } from 'hono'; | |
import { jwt } from 'hono/jwt'; | |
import { D1 } from '@cloudflare/workers-types'; | |
import { hash, compare } from 'bcrypt'; | |
import { v4 as uuidv4 } from 'uuid'; | |
import { sendEmail } from './email'; | |
import { isEmail, sanitize } from 'validator'; | |
import { createHash } from 'crypto'; | |
type Env = { |
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
type RandomizedSet struct { | |
Entries map[int]bool | |
Values []int | |
Indexes map[int]int | |
} | |
func Constructor() *RandomizedSet { | |
return &RandomizedSet{Entries: make(map[int]bool), Indexes: make(map[int]int)} | |
} |
Create a web component following best practices for architectural and stylistic elements. The component should be implemented using the lit
library, with particular attention to accessibility, customisability, and reusability.
- The component must be fully functional, encapsulating all logic and styles necessary for its operation.
- Implement
static styles
usingcss
imported fromlit
, ensuring all CSS properties are exposed as custom properties on the host element for easy styling customisation. - Define slots and CSS parts to allow users to customise the content and style of different component parts.
- Ensure the component is accessible, including proper ARIA attributes and roles where necessary.
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 { css, html, LitElement } from 'lit'; | |
import { customElement, property, state } from 'lit/decorators.js'; | |
import { RouteEvent, Router } from './Router'; | |
@customElement('router-link') | |
export class RouterLink extends LitElement { | |
static router: Router | null = null; | |
@property({ type: String }) to = ''; |