poetry new <project-name>poetry add <library>| ## BUILD GO BINARY | |
| FROM golang:1.24-alpine AS builder | |
| ## Set the working directory | |
| WORKDIR /go/backend | |
| ## Copy necessary directories and files | |
| COPY . . | |
| ## Download dependencies |
| import * as Haptics from 'expo-haptics'; | |
| type CustomMilliseconds = number; | |
| type HapticSequence = 'o' | '0'|''|''|'-'|'=' | CustomMilliseconds; | |
| /** | |
| * Haptic sequence element types: | |
| * - 'o': Medium impact haptic feedback | |
| * - '0': Heavy impact haptic feedback | |
| * - '.': Light impact haptic feedback |
| Option Explicit | |
| Sub AddElements() | |
| Dim shp As Shape | |
| Dim i As Integer, n As Integer | |
| n = ActivePresentation.Slides.Count | |
| For i = 1 To n | |
| Dim s As Slide | |
| Set s = ActivePresentation.Slides(i) |
| import os | |
| import nuke | |
| def get_padding(seqNumbers): | |
| ''' | |
| Get correct number of padding for image sequence | |
| ''' | |
| size = len(seqNumbers) | |
| padding = '' |
FWIW: I'm not the author of the content presented here (which is an outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.
| from PyQt5 import QtWidgets | |
| from PyQt5 import QtCore | |
| from PyQt5 import QtGui | |
| from maya import OpenMayaUI | |
| from sip import wrapinstance | |
| class Test_UI(QtWidgets.QWidget): | |
| def __init__(self, *args, **kwargs): |
| from functools import wraps | |
| def my_decorator(f): | |
| @wraps(f) | |
| def inner_dec(*args, **kws): | |
| try: | |
| ## turn state on | |
| f(*args, **kws) | |
| print('test') | |
| finally: |
| import os, re, stat, sys, shutil | |
| from PyQt5 import QtWidgets, QtCore | |
| qtWidgets_modules = dir(QtWidgets) | |
| qtCore_modules = dir(QtCore) | |
| def fixFile(line_list): | |
| line_generator = iter(line_list) | |
| changed = False |