Skip to content

Instantly share code, notes, and snippets.

View xanderjakeq's full-sized avatar
🍵
bruh

Xander Jake de los Santos xanderjakeq

🍵
bruh
View GitHub Profile
@roguesleipnir
roguesleipnir / LassoAutoFillAction.jsx
Last active March 27, 2026 18:32
Auto-Fill Lasso Scripts for Photoshop.
try {
// If bounds are null then there is no selection.
// But null check fails? So use Try/Catch instead.
if (app.activeDocument.selection.bounds) {
// Check Shift Modifier
SHIFT = ScriptUI.environment.keyboardState.shiftKey;
CTRL = ScriptUI.environment.keyboardState.ctrlKey;
// Fill manually.
if (!(CTRL || SHIFT)) {
@simrat39
simrat39 / pop_install.md
Last active February 3, 2024 06:51
Photoshop CC 2018 on Pop!_OS/Ubuntu Installation Guide

Photoshop CC 2018 on Pop!_OS installation guide

1 . Install Wine

Enable 32 bit architecture:

sudo dpkg --add-architecture i386
@d7samurai
d7samurai / .readme.md
Last active May 2, 2026 08:25
Minimal D3D11

Minimal D3D11

Minimal D3D11 reference implementation: An uncluttered Direct3D 11 setup + basic rendering primer and API familiarizer. Complete, runnable Windows application contained in a single function and laid out in a linear, step-by-step fashion that should be easy to follow from the code alone. ~200 LOC. No modern C++ / OOP or (other) obscuring cruft. View on YouTube

hollowcube

Other gists in this series:

@atinux
atinux / async-foreach.js
Last active February 2, 2026 23:07
JavaScript: async/await with forEach()
const waitFor = (ms) => new Promise(r => setTimeout(r, ms))
const asyncForEach = async (array, callback) => {
for (let index = 0; index < array.length; index++) {
await callback(array[index], index, array)
}
}
const start = async () => {
await asyncForEach([1, 2, 3], async (num) => {
await waitFor(50)
@nbremer
nbremer / .block
Last active December 16, 2025 12:59
Radar Chart Redesign
height: 600
license: mit
acknowledgement: Please add "Nadieh Bremer | Visual Cinnamon" to your credit when re-using this code, thank you!
@ourmaninamsterdam
ourmaninamsterdam / LICENSE
Last active April 8, 2026 18:18
Arrayzing - The JavaScript array cheatsheet
The MIT License (MIT)
Copyright (c) 2015 Justin Perry
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
@crtr0
crtr0 / client.js
Created June 8, 2012 17:02
A simple example of setting-up dynamic "rooms" for socket.io clients to join
// set-up a connection between the client and the server
var socket = io.connect();
// let's assume that the client page, once rendered, knows what room it wants to join
var room = "abc123";
socket.on('connect', function() {
// Connected, let's sign-up for to receive messages for this room
socket.emit('room', room);
});