Skip to content

Instantly share code, notes, and snippets.

View ichoake's full-sized avatar

steven chaplinski ichoake

View GitHub Profile
@ichoake
ichoake / 2x300
Created June 19, 2024 04:35
upscale300dpi
import os
from PIL import Image
# Function to convert WebP images to PNG and upscale by 200% with 300 DPI
def convert_and_upscale_images(source_directory, destination_directory):
# Create the destination directory if it doesn't exist
os.makedirs(destination_directory, exist_ok=True)
for filename in os.listdir(source_directory):
if filename.endswith(".webp"):
@ichoake
ichoake / fancy.html
Last active December 3, 2023 02:13
Font
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
@ichoake
ichoake / replace_smartobject_image.js
Created December 1, 2023 10:46 — forked from laryn/replace_smartobject_image.js
Photoshop script to replace a smart object within a PSD with selected image(s) and save result as a JPG. (Transformations to the smart object will be applied to new images).
// Replace SmartObject’s Content and Save as JPG
// 2017, use it at your own risk
// Via @Circle B: https://graphicdesign.stackexchange.com/questions/92796/replacing-a-smart-object-in-bulk-with-photoshops-variable-data-or-scripts/93359
// JPG code from here: https://forums.adobe.com/thread/737789
#target photoshop
if (app.documents.length > 0) {
var myDocument = app.activeDocument;
var theName = myDocument.name.match(/(.*)\.[^\.]+$/)[1];
var thePath = myDocument.path;
@ichoake
ichoake / css-grid-card-example-responsive.markdown
Created October 25, 2023 15:36
CSS Grid Card Example Responsive

CSS Grid Card Example Responsive

This example use the align-items value of stretch which results in all cards stretching to the maximum height. This is the initial value anyway. Auto-fill wll fit as many cards in each row, Each card has a minimum width of 250 pixels.

A Pen by Steven on CodePen.

License.

@ichoake
ichoake / README.md
Created May 16, 2023 06:10 — forked from sebastienbarre/README.md
Midjourney Greasemonkey User Script

Installation

  1. make sure to have Greasemonkey/Tampermonkey/Violentmonkey installed
  2. click here to install the midjourney.user.js userscript below.
  3. confirm your intention to install the userscript.
  4. the "Open in discord" links should now open in your Discord app.
@ichoake
ichoake / midjourney-batch-download.md
Created May 16, 2023 06:07 — forked from JustOurStyle/midjourney-batch-download.md
MidJourney batch image download solution (works with Chrome on desktop)

MidJourney batch image download solution that works with Chrome on desktop.

  1. Add this extension to Chrome: https://www.imageye.net/
  2. Then, go to discord.com and choose Open Discord in Your Browser.
  3. Navigate to where all your image generations are (for me that's the Midjourney Bot but it might be a channel, whatever)
  4. Scroll backward so all the images you want to download are in the browser (usually it shows just the most recent, so just scroll back until all the ones you want are loaded).
  5. Click the extension. It will say Searching Images.
  6. If the URL filter is not visible in the extension popup, click Tools to show it.
  7. Click "URL" in the extension popup and enter your username, then press Enter to filter for only images containing your username (so you only get your images).
  8. It will show a list of images that it found.
  9. Choose some other filters if you just want Large images or whatever.
@ichoake
ichoake / froogaloop-vimeo-api.markdown
Created January 3, 2023 07:11
Froogaloop Vimeo API
@ichoake
ichoake / index.html
Created January 3, 2023 07:08
Responsive Video Gallery
<div class="row clearfix">
<div class="col span_6 fwImage">
<div id="video-gallery" class="royalSlider videoGallery rsDefault">
<a class="rsImg" data-rsVideo="https://vimeo.com/45830194" href="https://b.vimeocdn.com/ts/319/715/319715493_640.jpg">
<div class="rsTmb">
<h5>Stanley Piano</h5>
<span>by Digital Kitchen</span>
</div>
</a>
@ichoake
ichoake / index.html
Created January 3, 2023 07:08
VIDEO GALLERY
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="favicon.ico">
<title>Responsive Video Gallery</title>
<link rel="stylesheet" href="css/main.css">
<link href='https://fonts.googleapis.com/css?family=Noto+Sans:400,700' rel='stylesheet' type='text/css'>