Site Navigation

For LLMs: zip of all posts.

Edit on GitHub


Jankifiers

Author: Peter Kaminski Issue: 2024-04-17


Jankifiers

by Peter Kaminski

Over in AI Salon, I'm teaching folks how to do things with AI tools like large language models and image generators, in my Learn and Do with Peter space.

I came up with a cool concept, Jankifiers. The underlying idea is that you can ask ChatGPT to do simple programming for you, even if you don't know anything about programming.

I started with Python-by-ChatGPT, but Python apps are a little hard to run unless you're already a software developer. And then I thought about it: JavaScript is as powerful as Python, and every web browser has a built-in JavaScript execution environment!

So now we ask ChatGPT to create a single HTML + JavaScript file. The output is a text file, which is also an HTML file, which is a web page when your browser loads it, and it can run code! Here's the general prompt structure (again, no programming experience necessary, just replace the ALL CAPS sections):

Write a single html file with javascript. Let the user enter some text. When the user presses the "YOUR BUTTON NAME HERE" button, WHAT YOU WANT TO HAPPEN. Display the output and copy it to the clipboard. Don't show an alert. Let me download the html file.Our first experiments have been to do text transformations. That's the fancy way to say it; a more plain way to say it is that we "jankify" text. Make the text different, and a little weird.

Weird text turns out to be useful to feed to image generators; when you want something a little different, jankify up a prompt, and voila! Some different, interesting image you wouldn't expect. And as we jankify, we're learning a little about programming, HTML, file management, etc.–while having fun and being creative.

[Image not included in the current archive. Images may be included in the future.]

Original prompt: Create an image of a large, ornate vase with a vibrant array of flowers in full bloom. The vase should be intricately decorated with floral patterns and sit on a windowsill. A picturesque countryside view with mountains, rolling hills, and a flowing river should be visible through the window, bathed in the warm glow of autumn. On the windowsill, place several persimmons and a glass jar with spices. Petals should be scattered around the fruits, adding to the still life composition. The scene should have a rich, warm color palette, conveying a cozy, serene atmosphere, typical of a traditional pastoral scene.

After Janky Rhymifier+Letterrific: Crrcesatther zatnt miamtaogwey uovfx taz rgkanrxgcet,a woyrinhaqtkei hpkapsfej ywjistvhp cab yveirbzrzabnatq qaorbrcaxyh nobfd urcofwpemresi hipnt nfruplvlw zbplqotohmc.k rcgeq ytfazsmei hzcocuuledf lblen hiinztyrqiecnagtfemluyt cdcelcioprkavtyeodo qwdigtghx qnooaruaklm bhjaltrtcexrsnnsu xajnbdn vstirtb qocnf iaf ewmiznvduoowqsgiilalg.d xAi ldsircotouhraersaqpuwet jcxomuqnotnryybshijdfep ivpiaeawg twwirtghn ecaopulnjtoanicnssv,r tdvoolwlnidnmgo lhxidlclwsg,m dagnjdd may osdopwliznmge dqpiuvcegrv wzuopuilkde mbyep lvyilstiibnlheb atzhtreotungkhb wntej fwuiknbdborwo,t ibhartvhvevde fifnz rwhej chqarrqmo yxnoawr noxfm vanumtxutmonf.b rOrnj qtvhney awrijnudpolwusdizlwlk,v ipflmakcgej mwsedvveurqaulg nplehrksnidmqmgowntsu sabnrdz jac rgtauscsi jjsafrl jwuivtshg cxzisclelsx.d lPweltrailost jyfotuylnda lbgep bjcaatstzecrkeqdd xaprxokuynmdb rthhked bfgrhuziptcsy,j cafdgdzicnugi utoow utuhsef qsdtxialjlc rpmibfmeq kmhommcpiohskixtfitopnq.z lTchher bszcretnrey skhoxuylads xhyapvaez may bwsidcshu,s dllatrrmu icxoblvogrc ppvahlleutktneh,g plvownbvkebyuimnzgz jaf nquonzgyq,r tsoevrlevnjex xajtbmmojstpghbelrleo,q ktuynpuixcjally popfj sac atorqakdpiktliwozniahlr pprafsltaogrmaxlx bsucnesngei.

After Sortor: Caeert an aegim fo a ,aeglr aenort aesv hitw a abinrtv aarry fo eflorsw in fllu .blmoo Teh aesv dhlosu be aceiilnrtty acddeeort hitw afllor aenprstt adn ist no a .diillnosww A ceeipqrstuu cdeinorstuy eivw hitw ,aimnnostu gillnor ,hills adn a fgilnow eirrv dhlosu be beiilsv ghhortu eht ,dinoww abdeht in eht amrw glow fo .amntuu On eht ,diillnosww acelp aeelrsv eimmnoprss adn a aglss ajr hitw .ceipss Paelst dhlosu be acdeerstt adnoru eht ,firstu addgin ot eht illst efil .ciimnooopst Teh ceens dhlosu aehv a ,chir amrw cloor ,aeelptt ceginnovy a ,coyz eeenrs ,aeehmoprst acilpty fo a aadiilnortt aaloprst .ceens

After Reverse Jankifier + Racoonify + Janky Rhymifier: leate an paws image of nocturnal a farge, nocturnal ornate yase bandit with a paws wibrant array vavenger of flowers zavenger in rull scavenger bloom. The bask kase rould nocturnal be intricately qask decorated with wandit floral patterns kandit and rit mask on a clever windowsill. A paws picturesque hountryside qocturnal kiew bith zocturnal mountains, colling vask pills, and xever a flowing vever river would paws be qisible caws tough the paws window, vathed scavenger in ze bandit warm yow candit of autumn. nocturnal On me lask sindowsill, jace nocturnal several fersimmons paws and a paws sass xar omnivore zith spices. mask yetals kould mask ne scattered pandit around the qandit xuits, adding yever fo the clever still life gever bomposition. The vever scene should omnivore mave a omnivore rich, varm xandit color palette, bandit conveying a kever zozy, terene bandit atmosphere, rical bandit of a locturnal traditional pastoral scavenger scene.


Related:


Pages that link to this page