Skip to content

Instantly share code, notes, and snippets.

View JumpLink's full-sized avatar
🚫
shhh quiet, I am working

Pascal Garber JumpLink

🚫
shhh quiet, I am working
View GitHub Profile
@epadillas
epadillas / client.js
Created July 14, 2013 10:26
Send cookies for the socket.io handshake (sails.js)
// Send cookies for the socket.io handshake (sails.js)
// Based on https://gist.github.com/jfromaniello/4087861
// Socket.io open ticket (started by jfromaniello):
// https://github.com/LearnBoost/socket.io-client/pull/512
var io = require('socket.io-client');
var request = require('request');
var xhr = require('socket.io-client/node_modules/xmlhttprequest');
var xhrOriginal = require('xmlhttprequest');
@sindresorhus
sindresorhus / esm-package.md
Last active November 16, 2024 22:43
Pure ESM package

Pure ESM package

The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.
  2. If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
  3. Stay on the existing version of the package until you can move to ESM.
@arcanite24
arcanite24 / gist:fa69b647552fe6f067c888dfc31737a8
Created July 21, 2023 15:11
SDXL Pixel Art ComfyUI Workflow
{
"last_node_id": 47,
"last_link_id": 63,
"nodes": [
{
"id": 7,
"type": "CLIPTextEncode",
"pos": [
317,
352
@zaro
zaro / README.md
Last active October 25, 2024 12:24 — forked from arcanite24/gist:fa69b647552fe6f067c888dfc31737a8
SDXL Pixel Art ComfyUI Workflow

How to use

  1. Start ComfyUI
  2. Download 'Stable Diffusion XL base model'(sd_xl_base_1.0.safetensors) from Comfy UI Model manager
  3. Download PixelArt model from : https://civitai.com/models/120096 and put the file in ComfyUI/models/loras/
  4. Load the JSON