Skip to content

Instantly share code, notes, and snippets.

View mortocks's full-sized avatar

Andrew Morton mortocks

View GitHub Profile
@kidroca
kidroca / Chart.jsx
Last active June 6, 2024 00:01
Render recharts svg chart inside a PDF document created with react-pdf/renderer
import React from 'react';
import { Global } from 'recharts';
import { htmlSvgToPdfSvg } from '../imageFromSvg';
export const ChartSvg = ({ debug, style, children, width, height }) => {
return chartToPdfSvg(children, width, height, debug, style);
};
const chartToPdfSvg = (children, width, height, debug, style) => {
@Code47X
Code47X / pipeline.rb
Last active December 28, 2021 06:47
A pipeline script to expedite my react-three-fiber workflow. Blender -> Draco Compression -> GLTFJSX -> Component
#!/home/tanner/.rvm/rubies/ruby-2.7.2/bin/ruby
# frozen_string_literal: false
require 'pathname'
require 'colorize'
# rubocop:disable Style/Documentation, Style/ClassVars, Style/GuardClause, Metrics/AbcSize
class Pipeline
@@project_dir = Dir.new("#{Dir.home}/Development/tanman.dev")