Skip to content

Instantly share code, notes, and snippets.

View wiverson's full-sized avatar

Will Iverson wiverson

View GitHub Profile
---
import { Image } from "@astrojs/image/components";
import { findImage } from "~/utils/findImage";
import { getNormalizedPost } from "~/utils/getNormalizedPost";
const {} = Astro.props;
const posts = await Astro.glob("~/data/posts/*.md"); // returns an array of posts that live at ./src/pages/post/*.md
const images = new Map();
  • angel.co
  • remote.co
  • remoteok.io
  • remotive.io
  • flexjobs.com
  • justremote.co
  • remotefront.io
  • powertofly.com
  • skipthedrive.com
  • authenticjobs.com
@wiverson
wiverson / images-to-sqlite.py
Created January 11, 2022 21:48
Images to SQLite Python Script
#!/usr/bin/env python3
import sqlite3
import os.path
# Convert file to blob data
def convertToBinaryData(filename):
with open(filename, 'rb') as file:
blobData = file.read()
return blobData
@wiverson
wiverson / Screenshotter.cs
Last active November 7, 2021 20:55
Capturing High-resolution Screenshots in Unity. Tested on my iMac and was able to generate 8192x8192 resolution captures, no problem.
using System.Collections;
using System.Collections.Generic;
using System.IO;
using UnityEngine;
// From https://twodee.org/blog/16691
public class Screenshotter : MonoBehaviour
{
public RenderTexture renderTexture;