Skip to content

Instantly share code, notes, and snippets.

View kalebpace's full-sized avatar
✈️
*keyboard noises*

Kaleb Pace kalebpace

✈️
*keyboard noises*
View GitHub Profile
@kalebpace
kalebpace / ECharts.svelte
Created May 2, 2023 20:03
Rough implementation of SSR/CSR ECharts support in Svelte
<script lang="ts" context="module">
// ECharts does not export init options type, so we mirror
// https://echarts.apache.org/en/api.html#echarts.init
export type ContainerOpts =
| {
devicePixelRatio?: number;
renderer?: 'svg' | 'canvas';
useDirtyRect?: boolean;
useCoarsePointer?: boolean;
pointerSize?: number;
@kalebpace
kalebpace / screenshot.sh
Created April 13, 2018 06:42
Screenshot script that can be mapped to a shortcut. Rectangle select and copies straight to clipboard.
#!/bin/bash
PIC=~/Pictures/temp.png
sleep 0.2; scrot -s $PIC
xclip -selection clipboard -t image/png -i < $PIC
rm $PIC