Skip to content

Instantly share code, notes, and snippets.

View halide.nim
import nimline
import os
halideDist = getenv("HALIDE_DIST")
assert halideDist != "" , "HALIDE_DIST environment variables not set!"
when defined windows:
ethanaeris /
Last active Mar 26, 2021
Pie Workspaced Addon for Blender 2.8. A quick way to switch between workspaces
# -*- coding: utf-8 -*-
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
# This program is distributed in the hope that it will be useful,
sokuhatiku / config.yaml
Last active Nov 14, 2020
Verdaccio for Unitypackage
View config.yaml
# This is the default config file. It allows all users to do anything,
# so don't use it on production systems.
# Look here for more config file examples:
# path to a directory with all packages
storage: ./storage
Axel-Erfurt /
Last active Jan 26, 2021
Python Editor (created with PyQt5)
# -- coding: utf-8 --
from __future__ import print_function
from PyQt5.QtWidgets import (QPlainTextEdit, QWidget, QVBoxLayout, QApplication, QFileDialog, QMessageBox, QLabel, QCompleter,
QHBoxLayout, QTextEdit, QToolBar, QComboBox, QAction, QLineEdit, QDialog, QPushButton,
QToolButton, QMenu, QMainWindow, QInputDialog, QColorDialog, QStatusBar, QSystemTrayIcon)
from PyQt5.QtGui import (QIcon, QPainter, QTextFormat, QColor, QTextCursor, QKeySequence, QClipboard, QTextDocument,
QPixmap, QStandardItemModel, QStandardItem, QCursor)
from PyQt5.QtCore import (Qt, QVariant, QRect, QDir, QFile, QFileInfo, QTextStream, QSettings, QTranslator, QLocale,
tokejepsen /
Last active Jul 2, 2018
AfterEffects Python Communication
import os
import socket
import traceback
def send(cmd, port):
host = ''
# we expect a result no matter if it errors, so we keep trying until we
fredrikaverpil /
Last active Sep 10, 2020
Store function on Nuke NoOp (or on nuke.root()) node and have it made available upon loading of script
"""Store function on node
Usage example:
.. code-block::
# Control node
ctrl_node_name = 'MY_SCRIPT_NODE' # if None, store on nuke.root()
# Define your functions and add them to the dictionary
zacharycarter /
Last active Apr 12, 2021
Binding to C Libraries with Nim
brew install Qt4
brew install openssl
brew install cmake
git clone --recurse-submodules
cd pyside-setup
# The following must be executed in a bash shell
python bdist_wheel --ignore-git --qmake=/usr/local/Cellar/qt/4.8.7_2/bin/qmake --openssl=/usr/local/Cellar/openssl/1.0.2h_1/bin/openssl --cmake=/usr/local/Cellar/cmake/3.5.2/bin/cmake