Skip to content

Instantly share code, notes, and snippets.

Andrea G Muffo

Block or report user

Report or block Muffo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Muffo
Muffo / rendering.py
Last active Aug 29, 2015
Blender scene manipulation and rendering with Python
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
@Muffo
Muffo / web_cpu.py
Last active Aug 29, 2015
CPU usage with bottle.py and psutil
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
@Muffo
Muffo / codingstyle.md
Last active Aug 29, 2015
OpenSSL coding style - standard
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.

@Muffo
Muffo / 0_reuse_code.js
Created Dec 9, 2015
Here are some things you can do with Gists in GistBox.
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
You can’t perform that action at this time.