Skip to content

Instantly share code, notes, and snippets.

View jywarren's full-sized avatar

Jeffrey Warren jywarren

View GitHub Profile
@jywarren
jywarren / pixelate.js
Last active January 7, 2025 01:02
A bookmarklet to make all pixel art crisp. https://bit.ly/pxlate Save as a bookmark URL and use the bookmark on any page to prevent anti-aliasing.
javascript:(function()%7Bdocument.body.style.imageRendering%20%3D%20(document.body.style.imageRendering%20%3D%3D%20%22pixelated%22%20%3F%20%22auto%22%20%3A%20%22pixelated%22)%3B%7D)()%3B
nids = 104,114,138,160,11740,11741,11742,11758,11759,11796,11820,12044,12061,12326,12518,13084,13754,13824,15742,16167,16307,16602,16682,16683,17026,17132,17175,17211,17457,18064,19793,20052,20822,20976,21123,21542,22426,23344,23615,24228,25031,25883,26674,6,7,13,17,23,24,25,27,28,29,31,33,34,35,38,39,40,41,42,43,44,45,50,52,53,55,56,58,61,64,67,68,80,81,91,92,93,97,98,102,103,106,107,108,115,143,146,147,148,156,157,166,169,171,174,175,176,179,180,182,183,184,185,186,188,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,207,208,209,212,214,218,219,220,224,227,232,234,235,236,238,242,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,260,261,263,265,266,268,269,270,271,272,273,274,275,276,277,278,280,281,282,283,284,285,286,287,288,289,290,291,292,294,295,297,299,301,302,305,306,310,315,316,317,320,321,322,323,324,325,329,330,331,332,333,334,335,336,337,339,340,341,344,345,346,347,348,349,350,351,353,354,355,357,358,359,361,363,364,365,366,367,369,372,373,374,375,376,379,380,382,383,384,388,
@jywarren
jywarren / gist:35e18185c7a083dd501c4aef9eb6c2e7
Created August 13, 2024 17:11
Batch forward date photos/images
touch -t 202408131130 *
touch -mt 202408131130 *
exiftool "-DateTimeOriginal+=108:13:19" *
{"textures":[{"source":0,"sampler":0},{"source":1,"sampler":0},{"source":2,"sampler":0}],"skins":[{"name":"AvatarRoot","joints":[40,39,6,5,2,3,4,22,9,8,7,12,11,10,15,14,13,18,17,16,21,20,19,38,25,24,23,28,27,26,31,30,29,34,33,32,37,36,35],"inverseBindMatrices":11}],"scenes":[{"nodes":[1,47],"name":"Scene"}],"scene":0,"samplers":[{"minFilter":9987,"magFilter":9729}],"nodes":[{"rotation":[-0.7071067690849304,0,0,0.7071067690849304],"name":"Light_Orientation.001_Orientation","extensions":{"KHR_lights_punctual":{"light":0}}},{"name":"Light_Orientation.001","children":[0]},{"translation":[-0.06142770126461983,0.05949225276708603,0.13090287148952484],"scale":[1,0.9999998211860657,0.9999999403953552],"rotation":[5.396385915901192e-8,0.6993563771247864,0.7147731184959412,5.279993331441801e-8],"name":"RightEye","isBone":true},{"translation":[0.06142747774720192,0.059492480009794235,0.13090330362319946],"scale":[1,0.9999998211860657,0.9999999403953552],"rotation":[5.396385915901192e-8,0.6993563771247864,0.7147731184959
@jywarren
jywarren / screenshot.js
Created March 20, 2024 19:12
Photosphere from A-Frame
document.querySelector('a-scene').components.screenshot.capture('equirectangular');
@jywarren
jywarren / portal.js
Last active February 15, 2024 17:55
var e = document.createElement('div');
document.body.appendChild(e);
e.style="position:absolute;z-index:999;left:200px;top:200px;";
e.innerHTML = '<iframe style="width:300px;height:300px;border-radius:500px;transition: all 1s ease-out;" src="https://jywarren.github.io/sfpcrr/?embedded&url=images/mapogu.jpg"></iframe>';
{
"scenes": [
{
"nodes": [
0
],
"name": "Room Objects"
}
],
"nodes": [
layout title
page
Mailing list

Introduction

text

We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
https://publiclab.org/notes/raw/104
https://publiclab.org/notes/raw/114
https://publiclab.org/notes/raw/138
https://publiclab.org/notes/raw/160
https://publiclab.org/notes/raw/11740
https://publiclab.org/notes/raw/11741
https://publiclab.org/notes/raw/11742
https://publiclab.org/notes/raw/11758
https://publiclab.org/notes/raw/11759
https://publiclab.org/notes/raw/11796