Skip to content

Instantly share code, notes, and snippets.

View unframework's full-sized avatar

Nick Matantsev unframework

View GitHub Profile
@unframework
unframework / index.slim
Created November 17, 2018 20:28
Logo sketch in SVG
svg viewBox="-186 -46 374 48" width='374' height='48'
defs
clipPath id="lines"
- for i in (0 .. 10)
rect x=-300 y=(-47 + i * 5) width=600 height=4
text.main x=0 y=0 text-anchor='middle' font-family='Days One' font-size='64px' letter-spacing='-3.5px'
'<tspan clip-path='url(#lines)'>Beam</tspan>works
@unframework
unframework / XtermCanvas.tsx
Last active February 22, 2024 21:14
Snapshot of a Xterm.js + Ink component in React and cross-compilation settings to bundle Ink for the browser environment
import React, { useEffect, useRef } from 'react';
import ReactDOM from 'react-dom';
import { EventEmitter } from 'events';
import { Terminal } from 'xterm';
import { render } from 'ink';
/// <reference types="node" />
import 'xterm/css/xterm.css';
// this spins up Xterm.js, initializes Ink inside it and sets up