Skip to content

Instantly share code, notes, and snippets.

View jamespantalones's full-sized avatar

James Singleton jamespantalones

View GitHub Profile
"use strict";
import type { LexicalEditor, LexicalNode } from "Lexical";
import type { Binding, Provider } from "LexicalYjs";
import {
createBinding,
syncLexicalUpdateToYjs,
syncYjsChangesToLexical,
} from "LexicalYjs";
@jamespantalones
jamespantalones / Header.tsx
Created September 16, 2022 18:40 — forked from pedronauck/Header.tsx
Tailwind, PostCSS, Styled-JSX and NextJS
import React from 'react'
import { Link } from 'systems/Core/Link'
import css from 'styled-jsx/css'
export const Header = () => {
return (
<header className="Root">
<img src="/logo.svg" width={100} />
<div className="MainMenu">
<ul className="MenuList">
@jamespantalones
jamespantalones / index.html
Created July 2, 2020 01:07
Audio processing
<!--https://stackoverflow.com/questions/51687308/how-to-use-web-audio-api-to-get-raw-pcm-audio/54213814#54213814-->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>capture microphone then show time & frequency domain output</title>
<script type="text/javascript">
var webaudio_tooling_obj = function () {
var audioContext = new AudioContext();
@jamespantalones
jamespantalones / index.js
Created June 21, 2020 17:39
Tiny DOM tool
// ------------------------------------------------
// Tool
// ------------------------------------------------
const T_ = document.createTextNode.bind(document);
function E_(t = 'div', p = {}, c = []) {
let el = document.createElement(t);
Object.assign(el, p);
el.append(...c);
return el;
@jamespantalones
jamespantalones / encode.sh
Created April 3, 2020 18:20 — forked from jeffpamer/encode.sh
Smooth Scrubbing Web Video FFMPEG Mega Command
ffmpeg -i input.mp4 -vcodec libx264 -pix_fmt yuv420p -profile:v baseline -level 3 -an -vf "scale=-1:1440, reverse" -preset veryslow -g 2 output.mp4
// -vcodec libx264 -pix_fmt yuv420p -profile:v baseline -level 3
// Encode for web with a good balance of browser compatibility and compression ratio
// -an
// Strip audio tracks
// -vf "scale=-1:1440, reverse"
// Scale video to 1440px wide, maintaining aspect ratio

Keybase proof

I hereby claim:

  • I am jamespantalones on github.
  • I am jamespants (https://keybase.io/jamespants) on keybase.
  • I have a public key ASBZIiLT2MqCWqwAmPYO_wafDYfW-XqhSvfbZXU5syt3tAo

To claim this, I am signing this object:

@jamespantalones
jamespantalones / .gitconfig
Created October 25, 2017 20:43 — forked from brittharr/.gitconfig
gitconfig
[core]
pager = diff-highlight | diff-so-fancy | less -r
[alias]
st = status
ci = commit
br = branch
co = checkout
unstage = reset HEAD --
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
amend = commit --amend --no-edit
sudo chown -R $USER ~/.blabla
node_modules
@jamespantalones
jamespantalones / .babelrc
Created July 21, 2017 21:53
Monkey Shader
{
"presets": ["es2015"]
}