Skip to content

Instantly share code, notes, and snippets.

View halide.nim
import nimline
import os
static:
let
halideDist = getenv("HALIDE_DIST")
assert halideDist != "" , "HALIDE_DIST environment variables not set!"
when defined windows:
@ethanaeris
ethanaeris / Pie_workspaces.py
Last active Mar 26, 2021
Pie Workspaced Addon for Blender 2.8. A quick way to switch between workspaces
View Pie_workspaces.py
# -*- coding: utf-8 -*-
# ##### BEGIN GPL LICENSE BLOCK #####
#
# 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
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:
# https://github.com/verdaccio/verdaccio/tree/master/conf
#
# path to a directory with all packages
storage: ./storage
@Axel-Erfurt
Axel-Erfurt / PyEdit2.py
Last active Jan 26, 2021
Python Editor (created with PyQt5)
View PyEdit2.py
#!/usr/bin/python3
# -- 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
tokejepsen / acp.py
Last active Jul 2, 2018
AfterEffects Python Communication
View acp.py
import os
import socket
import traceback
def send(cmd, port):
host = '127.0.0.1'
# we expect a result no matter if it errors, so we keep trying until we
@fredrikaverpil
fredrikaverpil / storefunc.py
Last active Sep 10, 2020
Store function on Nuke NoOp (or on nuke.root()) node and have it made available upon loading of script
View storefunc.py
"""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
zacharycarter / wclwn.md
Last active Apr 12, 2021
Binding to C Libraries with Nim
View wclwn.md
View macOS_compile_PySide.sh
brew install Qt4
brew install openssl
brew install cmake
git clone https://github.com/PySide/pyside-setup.git --recurse-submodules
cd pyside-setup
# The following must be executed in a bash shell
python setup.py 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