Skip to content

Instantly share code, notes, and snippets.

#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <AK/Assertions.h>
#include <signal.h>
#include <string.h>
int main()
use std::rc::Rc;
use std::cell::{RefCell, Ref, RefMut};
use std::any::Any;
// Fake UI
pub struct UI {
children: Vec<Box<dyn Node>>,
}
impl UI {
pub fn new() -> Self {

Commit: (the commit the release was done with) Release Date: (date the release was made)

Features

  • #705/#711: Changed UI
    • The left activity bar has been moved to above the file explorer, giving more horizontal space by default
    • The bottom panel now has the terminal/search/problems buttons attached to it, rather than at the very bottom
    • Panels can now be dragged to the left/bottom/right as you wish
      • example moved panels
    • Buttons on tab bar to move between tabs
  • #706: File icons for CSS, HTML, JavaScript, Lua, Python, TypeScript and ZIP files.
@MinusGix
MinusGix / nai.mjs
Created October 18, 2022 13:42
NovelAI image gen request script
// Requires node-fetch. Just do `npm install node-fetch`
import fetch from 'node-fetch';
import fs from 'fs';
// This expects a 'key.txt' file with your nai api key in it. You can get that by peeking at a network request
const API_KEY = fs.readFileSync("./key.txt").toString();
const API_HEADER = "Bearer " + API_KEY;
// This is the default preset I think? I forget if I modified this slightly
@MinusGix
MinusGix / api.md
Last active October 18, 2022 14:19
Nai imagegen api

The basic request isn't complicated, so you can grab some library in your favorite language and just do it.
Obviously, making requests cost Anlas based on your subscription (so, the below will generate within the free Anlas for Opus subscriptions, but if you make the image large or increase steps a lot then it won't!)
It is basically just: A POST request to https://api.novelai.net/ai/generate-image The body of the request should be JSON, in the form of:

{
    // The input to the prompt.
    // Note that this doesn't automatically include the 'masterpiece, best quality' that the website prepends! You have to add that yourself.
    "input": "toaster, rgb, gaming, neon, realistic",