Skip to content

Instantly share code, notes, and snippets.

@ShrimpCryptid
ShrimpCryptid / patching_magic_box_guide.md
Last active May 14, 2024 03:09
How to fix the "Design number X exceeds maximum dimensions" error in OESD Magic Box software

How to fix the "Design number X exceeds maximum dimensions" error in OESD Magic Box software

This guide teaches you how to patch the Design number X exceeds maximum dimensions... error message in the OESD Magic Box embroidery converter software, and has been tested on the Pfaff Creative 2144 embroidery machine.

DISCLAIMER: This guide includes instructions on how to modify a binary executable, which for some softwares may violate the Terms and Conditions of use. This guide only exists because the original manufacturer of the Magic Box, OESD, no longer provides support. I received written permission from OESD to post these instructions.

While this fix worked for me and my machine, please note that I am not responsible for any outcomes on your machine and computer! Please exercise good judgement and BE CAREFUL.

I am NOT distributing the patched executable because downloading compromised program files from the internet is generally a BAD IDEA.

@staltz
staltz / introrx.md
Last active May 14, 2024 03:08
The introduction to Reactive Programming you've been missing
@nehayward
nehayward / ScanViewController.swift
Created November 18, 2019 23:26
A simple QR code scanner using Vision for iOS (Swift)
import UIKit
import Vision
import AVFoundation
import Foundation
class ScanViewController: UIViewController {
private lazy var cameraPreviewLayer: AVCaptureVideoPreviewLayer = {
let l = AVCaptureVideoPreviewLayer(session: captureSession)
l.videoGravity = .resizeAspectFill
l.connection?.videoOrientation = .portrait
@nikbabchenko
nikbabchenko / counter.js
Created September 7, 2021 07:41
Counter
const counter = createCounter(); // { increment: Function, decrement: Function, value: Number }
counter.increment();
counter.value
@nikbabchenko
nikbabchenko / async.js
Created September 7, 2021 08:16
async execution task
console.log('start')
setTimeout(() => {
console.log('setTimeout')
})
Promise.resolve().then(() => {
console.log('resolve')
})
console.log('end')
@nikbabchenko
nikbabchenko / get-news.js
Last active May 14, 2024 03:04
Promises task
const news = [
"https://jsonplaceholder.typicode.com/posts/1",
"https://jsonplaceholder.typicode.com/posts/2",
"https://jsonplaceholder.typicode.com/posts/3",
"https://jsonplaceholder.typicode.com/posts/4",
"https://jsonplaceholder.typicode.com/posts/5",
"https://jsonplaceholder.typicode.com/posts/6",
"https://jsonplaceholder.typicode.com/posts/7",
"https://jsonplaceholder.typicode.com/posts/8",
"https://jsonplaceholder.typicode.com/posts/9",
@nikbabchenko
nikbabchenko / duck-typing.ts
Created October 11, 2021 11:37
Typescript duck typing
class Dog {
sound = "barking";
}
class Lion {
sound = "roaring";
}
const b: Lion = new Dog();

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

@nikbabchenko
nikbabchenko / polling-fix.ts
Created September 6, 2022 10:16
Fix polling
public poll$<T>(
request$: () => Observable<T>,
delayTime: number = this.getPollingInterval()
): Observable<T> {
return interval(delayTime).pipe(
switchMap(() => request$())
);
}