Skip to content

Instantly share code, notes, and snippets.

View xenjee's full-sized avatar

Stefan xenjee

  • MakeMake - a52 - Elastic
  • Los Angeles
View GitHub Profile
@xenjee
xenjee / qtabwidget.css
Created May 4, 2022 07:32 — forked from espdev/qtabwidget.css
A QTabWidget Custom Stylesheet Example
QTabWidget::pane {
border: 1px solid black;
background: white;
}
QTabWidget::tab-bar:top {
top: 1px;
}
QTabWidget::tab-bar:bottom {
@xenjee
xenjee / pep8_cheatsheet.py
Created October 30, 2019 17:43 — forked from RichardBronosky/pep8_cheatsheet.py
PEP-8 cheatsheet
#! /usr/bin/env python
# -*- coding: utf-8 -*-
"""This module's docstring summary line.
This is a multi-line docstring. Paragraphs are separated with blank lines.
Lines conform to 79-column limit.
Module and packages names should be short, lower_case_with_underscores.
Notice that this in not PEP8-cheatsheet.py
@xenjee
xenjee / colorTempToRGB.js
Created January 30, 2018 03:16 — forked from paulkaplan/colorTempToRGB.js
Color Temperature to RGB
// From http://www.tannerhelland.com/4435/convert-temperature-rgb-algorithm-code/
// Start with a temperature, in Kelvin, somewhere between 1000 and 40000. (Other values may work,
// but I can't make any promises about the quality of the algorithm's estimates above 40000 K.)
function colorTemperatureToRGB(kelvin){
var temp = kelvin / 100;
@xenjee
xenjee / hook.py
Created April 20, 2017 03:04 — forked from lcrs/hook.py
Initial hook.py including right click/copy clip path thing
#!/bin/env python
#******************************************************************************
#
# Filename: hook.py
#
# Copyright (c) 2008 Autodesk Canada Co.
# All rights reserved.
#
# Use of this software is subject to the terms of the Autodesk license
# agreement provided at the time of installation or download, or which