Skip to content

Instantly share code, notes, and snippets.

View kariae's full-sized avatar

Zakariae Filali kariae

View GitHub Profile
@emiliodallatorre
emiliodallatorre / cleanser.py
Created May 27, 2021 10:57
Simple utility to put all <wp:author> tag child on the same line of a WordPress WXR/XML export
import os
def main():
export_file_names: list = [
f for f in os.listdir(".") if f.endswith(".xml") and not f.endswith(".correct.xml")]
for export_file_name in export_file_names:
print(f"Going with: {export_file_name}")
@yoavniran
yoavniran / ultimate-ut-cheat-sheet.md
Last active May 16, 2024 13:16
The Ultimate Unit Testing Cheat-sheet For Mocha, Chai, Sinon, and Jest
@hilukasz
hilukasz / Selected_layers-PS.jsx
Last active July 12, 2023 15:52
get array of selected layers in photoshop via extendscript
var docRef = app.activeDocument;
cTID = function(s) { return app.charIDToTypeID(s); };
sTID = function(s) { return app.stringIDToTypeID(s); };
function newGroupFromLayers(doc) {
var desc = new ActionDescriptor();
var ref = new ActionReference();
ref.putClass( sTID('layerSection') );