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 / 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
@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
@jamespantalones
jamespantalones / GLSL-Noise.md
Created December 30, 2016 20:41 — forked from patriciogonzalezvivo/GLSL-Noise.md
GLSL Noise Algorithms

Generic 1,2,3 Noise

float rand(float n){return fract(sin(n) * 43758.5453123);}

float noise(float p){
	float fl = floor(p);
  float fc = fract(p);
	return mix(rand(fl), rand(fl + 1.0), fc);
}
const prefix = require('vendor-prefix')
import Tweezer from 'tweezer.js'
var transformPrefix = prefix('transform')
var linear = function (t, b, c, d) {
return c*t/d + b;
}
module.exports = function (el) {
@jamespantalones
jamespantalones / gulpfile.js
Last active September 20, 2015 09:30 — forked from mlouro/gulpfile.js
gulpfile.js with browserify, jshint, libsass, browserSync for livereload, image optimization and system notifications on errors
'use strict';
var gulp = require('gulp');
var gutil = require('gulp-util');
var del = require('del');
var uglify = require('gulp-uglify');
var gulpif = require('gulp-if');
var exec = require('child_process').exec;
var notify = require('gulp-notify');