Skip to content

Instantly share code, notes, and snippets.

@TomByrne
TomByrne / MultiExporter.jsx
Last active March 19, 2024 10:12
An Illustrator script for exporting layers and/or artboards into separate files (PNG8 / PNG24 / EPS / PDF / SVG / JPG / FXG).See http://www.tbyrne.org/export-illustrator-layers-to-svg-files
// MultiExporter.jsx
// Version 0.1
// Version 0.2 Adds PNG and EPS exports
// Version 0.3 Adds support for exporting at different resolutions
// Version 0.4 Adds support for SVG, changed EPS behaviour to minimise output filesize
// Version 0.5 Fixed cropping issues
// Version 0.6 Added inner padding mode to prevent circular bounds clipping
//
// Copyright 2013 Tom Byrne
// Comments or suggestions to tom@tbyrne.org
@TomByrne
TomByrne / Readme.md
Created May 9, 2022 23:57
Zoom Electron / Ionic Meeting SDK v5.9.1.3550

Zoom Electron Meeting SDK v5.9.1.3550

These are TS definitions for the Zoom Electron/Ionic Meeting SDK, available on Zoom's Developer Portal.

There are several omittions due to time constrains:

  • ZoomSDK.RawData
  • ZoomSDK.SMSHelper
  • ZoomSettings.GetGeneralSetting
  • ZoomSettings.GetRecordingSetting
  • ZoomSettings.GetSettingUICtrl
@TomByrne
TomByrne / Haxe NPM Dependencies.md
Last active February 1, 2021 05:57
Packaging NPM dependencies into a JS/Haxe Application

When using NPM Dependencies in Haxe, the referenced JS doesn't get automatically pulled into your Haxe-compiled JS file. One way to include this JS is using webpack. These dependencies will only be resolved by webpack if you use the @:jsRequire metadata.

Firstly install webpack: npm i -g webpack.

After Haxe generates it's JS output, it will contain un-resolved require() calls. To resolve these dependencies (and any deeper dependencies), run webpack like this: webpack --config webpack.config.js

@TomByrne
TomByrne / JsonViewer.vue
Last active January 21, 2021 03:30
A JSON Viewer component for Vue 3.x (using Typescript class-style components)
<template>
<div
class="json-viewer"
:class="[
'type-' + type,
reallyOpen ? 'open' : 'closed',
simple ? 'simple' : null
]"
>
<span class="name" v-if="hasName && !isNameIndex">"{{ name }}"</span>
@TomByrne
TomByrne / Haxe Wix Ubuntu Dockerfile
Last active February 6, 2019 00:47
Haxe / Wix / Ubuntu Dockerfile
FROM syedhassaanahmed/wix-node
USER root
RUN mkdir /home/wix/src
WORKDIR /home/wix/src
# Haxe environment variables
ENV HAXEURL https://github.com/HaxeFoundation/haxe/releases/download/4.0.0-rc.1/haxe-4.0.0-rc.1-linux64.tar.gz
ENV HAXEPATH /root/haxe
ENV HAXE_STD_PATH $HAXEPATH/std/
@TomByrne
TomByrne / ChromaKeyFilter.hx
Last active April 27, 2018 01:40
Chroma Key Filter for the Haxe version of Starling 2
// =================================================================================================
//
// Starling Framework
// Copyright Gamua GmbH. All Rights Reserved.
//
// This program is free software. You can redistribute and/or modify it
// in accordance with the terms of the accompanying license agreement.
//
// =================================================================================================