Skip to content

Instantly share code, notes, and snippets.

@sophacles
sophacles / gist:c17ce33a14d582dfa268
Created August 20, 2014 17:03
Functions for making entry points with invoke
import invoke
import invoke.cli
from invoke import run, ctask as task, Collection
import sys
def redo_args(coll, baseargs=[]):
import our_tasks
root = our_tasks.__path__[0]
print "root is:", root
args = sys.argv[1:]
@LeCoupa
LeCoupa / bash-cheatsheet.sh
Last active July 26, 2025 15:17
Bash CheatSheet for UNIX Systems --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
@fredrikaverpil
fredrikaverpil / custom_ui_docked.py
Last active December 1, 2022 16:29
Create custom PySide GUI and dock it into Nuke UI
import PySide.QtCore as QtCore
import PySide.QtGui as QtGui
from nukescripts import panels
class PanelTest(QtGui.QWidget):
def __init__(self, parent=None):
QtGui.QWidget.__init__(self, parent)
self.setLayout(QtGui.QVBoxLayout())
self.myTable = QtGui.QTableWidget()
self.myTable.header = ['Date', 'Files', 'Size', 'Path' ]
"""
RGB to XYZ gamut-remapping matrix calculation.
Main function is rgb_to_xyz_matrix.
"""
class MatrixError(Exception):
pass
class NonInvertableMatrix(MatrixError):
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pedrocr
pedrocr / gist:6fd7db0d9035c6b48d10
Last active November 22, 2017 19:41
cam_mul instrumented dcraw
/*
dcraw.c -- Dave Coffin's raw photo decoder
Copyright 1997-2014 by Dave Coffin, dcoffin a cybercom o net
This is a command-line ANSI C program to convert raw photos from
any digital camera on any computer running any operating system.
No license is required to download and use dcraw.c. However,
to lawfully redistribute dcraw, you must either (a) offer, at
no extra charge, full source code* for all executable files
# Hello, and welcome to makefile basics.
#
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
#
# Once you're done here, go to
# http://www.gnu.org/software/make/manual/make.html
# to learn SOOOO much more.
@drgarcia1986
drgarcia1986 / bottle_hello.py
Last active January 20, 2025 21:50
Python HelloWorld (WebFrameworks) Collection
# -*- coding: utf-8 -*-
from bottle import route, run
@route('/')
def index():
return '<h1>Hello World/h1>'
run(host='localhost', port=8000)
@KelSolaar
KelSolaar / filmic_tonemapping_operator.nkp
Last active June 17, 2017 09:25
Filmic Tonemapping Operator - John Habble - HP Duiker
set cut_paste_input [stack 0]
version 8.0 v1
push $cut_paste_input
Group {
name Filmic_Tonemapping_Operator
selected true
xpos -158
ypos -20
addUserKnob {20 filmic_tonemapping_operator_Tab l "Filmic Tonemapping Operator"}
addUserKnob {20 tone_parameters_Group l "Tone Parameters" n 1}
@KelSolaar
KelSolaar / whitepoint_change.nkp
Last active June 22, 2017 22:18
Whitepoint Change
set cut_paste_input [stack 0]
version 8.0 v1
CheckerBoard2 {
inputs 0
name CheckerBoard
selected true
xpos 70
ypos -81
}
set N1ef0a2e0 [stack 0]