Skip to content

Instantly share code, notes, and snippets.

View sambatlim's full-sized avatar
🧮
CODING

Sambat Lim sambatlim

🧮
CODING
View GitHub Profile
@sambatlim
sambatlim / script_six_group.js
Last active December 7, 2021 14:15
script for 6 groups
function Main() {
var num = 1;
for (var j = 0; j < app.activeDocument.layerSets[0].layers.length; j++) {
for (var k = 0; k < app.activeDocument.layerSets[1].layers.length; k++) {
for (var l = 0; l < app.activeDocument.layerSets[2].layers.length; l++) {
for (var m = 0; m < app.activeDocument.layerSets[3].layers.length; m++) {
for (var n = 0; n < app.activeDocument.layerSets[4].layers.length; n++) {
for (var x = 0; x < app.activeDocument.layerSets[5].layers.length; x++) {
@sambatlim
sambatlim / ps_script.js
Created January 10, 2022 05:17
script for 11 group photoshop
function Main() {
var num = 1;
for (var j = 0; j < app.activeDocument.layerSets[0].layers.length; j++) {
for (var k = 0; k < app.activeDocument.layerSets[1].layers.length; k++) {
for (var l = 0; l < app.activeDocument.layerSets[2].layers.length; l++) {
for (var m = 0; m < app.activeDocument.layerSets[3].layers.length; m++) {
for (var n = 0; n < app.activeDocument.layerSets[4].layers.length; n++) {
for (var x = 0; x < app.activeDocument.layerSets[5].layers.length; x++) {
@sambatlim
sambatlim / kuaishou_downloader.js
Created January 12, 2023 11:05
kuaishou downloader
// ==UserScript==
// @name kuaishou_easy_download
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author Sambat
// @match https://www.kuaishou.com/short-video/*
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant GM_download
// ==/UserScript==
@sambatlim
sambatlim / fix-brew.txt
Created February 9, 2023 15:07
fix brew command not found.
cd /opt/homebrew/bin/
PATH=$PATH:/opt/homebrew/bin
cd
touch .zshrc
echo export PATH=$PATH:/opt/homebrew/bin >> .zshrc
@sambatlim
sambatlim / main.py
Created March 18, 2024 07:10
This gist shows you various ways to implement bullmq in python
import asyncio
from bullmq import Worker
async def process(job, job_token):
# job.data will include the data added to the queue
print(job.data)
return job.data
# return doSomethingAsync(job)
async def main():