Skip to content

Instantly share code, notes, and snippets.

Avatar

Jeffrey Warren jywarren

View GitHub Profile
View large-stage.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View gist:d1ab70c6fc17b7a752810b9a84b97541
Started POST "/images" for 72.92.236.166 at 2020-08-18 15:36:13 +0000
Processing by ImagesController#create as JSON
Parameters: {"authenticity_token"=>"wuflt1Wepizvywwhw+5crTD56SGhl0P4ZAt8IiBfrYv7zfGBMeDgq7xwIMhL9TWt+GW92Asz6rNO+rDuxDXroA==", "uid"=>"1", "image"=>{"photo"=>#<ActionDispatch::Http::UploadedFile:0x00007faa1096a020 @tempfile=#<Tempfile:/tmp/RackMultipart20200818-258-50admo.png>, @original_filename="muk.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"image[photo]\"; filename=\"muk.png\"\r\nContent-Type: image/png\r\n">}}
[paperclip] Trying to link /tmp/RackMultipart20200818-258-50admo.png to /tmp/b60fb7657926287713da4f2861d6db3520200818-258-x45r2h.png
[paperclip] Trying to link /tmp/b60fb7657926287713da4f2861d6db3520200818-258-x45r2h.png to /tmp/b60fb7657926287713da4f2861d6db3520200818-258-1fv4zqi.png
Command :: file -b --mime '/tmp/b60fb7657926287713da4f2861d6db3520200818-258-1fv4zqi.png'
Command :: identify -format '%wx%h,%[exif:orientation]' '/tmp/b60fb765792
@jywarren
jywarren / pixelate.js
Last active Aug 10, 2020
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.
View pixelate.js
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
View how-to-cry.md

INSTRUCTIONS ON HOW TO CRY

Putting the reasons for crying aside for the moment, we might concentrate on the correct way to cry, which, be it understood, means a weeping that doesn’t turn into a big commotion nor proves an affront to the smile with its parallel and dull similarity. The average, everyday weeping consists of a general contraction of the face and a spasmodic sound accompanied by tears and mucus, this last toward the end, since the cry ends at the point when one energetically blows one’s nose.

View nytimes-covid-cases-July 10.txt
https://www.nytimes.com/article/coronavirus-county-data-us.html
Marion Correctional Institution — Marion, Ohio 2,439
San Quentin State Prison — San Quentin, Calif. 1,842
Pickaway Correctional Institution — Scioto Township, Ohio 1,792
Harris County jail — Houston, Texas 1,558
Trousdale Turner Correctional Center — Hartsville, Tenn. 1,382
North County jail — Castaic, Calif. 1,368
Smithfield Foods pork processing facility — Sioux Falls, S.D. 1,098
Chuckawalla Valley State Prison — Blythe, Calif. 1,094
View thermal-fishing-tinkercad.ino
/*
* Thermal fishing
* https://www.circuitbasics.com/arduino-thermistor-temperature-sensor-tutorial/
*/
// Pins 3, 5, and 6 are the red, green and blue LEDs on the Arduino board.
// give them names:
int redPin = 3;
int greenPin = 5;
int bluePin = 6;
@jywarren
jywarren / index.html
Last active Apr 27, 2020
Certification mark generator/saver
View index.html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Cert generator</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
</head>
<body class="container">
<!--
https://yoksel.github.io/url-encoder/
@jywarren
jywarren / hazePedal.ino
Last active Mar 10, 2020
hazePedal.ino
View hazePedal.ino
/*
* Jeffrey Yoo Warren & Andy Lee
* https://learn.adafruit.com/pm25-air-quality-sensor/arduino-code
* digipot https://forum.arduino.cc/index.php?topic=430818.0
*/
#define chipselect 15
#define updown 14
#define inc 16
You can’t perform that action at this time.