Instantly share code, notes, and snippets.

View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View codingstyle.md

This document describes the coding style for the OpenSSL project. It is is derived from the Linux kernel coding style, which can be found at: https://www.kernel.org/doc/Documentation/CodingStyle This guide is not distributed as part of OpenSSL itself. Since it is derived from the Linux Kernel Coding Style, it is distributed under the terms of the kernel license, available here: https://www.kernel.org/pub/linux/kernel/COPYING

Coding style is all about readability and maintainability using commonly available tools. OpenSSL coding style is simple. Avoid tricky expressions.

View web_cpu.py
__author__ = 'muffo'
from bottle import route, response, run
from time import sleep
from psutil import cpu_percent
from json import dumps
import thread
cpu = None
View rendering.py
import math
import bpy
# Replace with the correct object name
object = bpy.data.objects["Surface"]
scene = bpy.data.scenes['Scene']
# Set the resolution of the output image (this does not work)
# scene.render.resolution_x = 1920