Skip to content

Instantly share code, notes, and snippets.

import bpy
scene = bpy.context.scene
for key, val in
if key == 'Collection':
# remove all others
View .editorconfig
root = true
indent_style = space
indent_size = 4
trim_trailing_whitespace = true
insert_final_newline = true
charset = utf-8
* Copyright 2010-2017, Inc. or its affiliates. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
View gist:523e461e2d3b329d2a2b99c439a192ec
import jsonrpc
dispatcher = jsonrpc.Dispatcher()
def calculate(a):
return a + 2
View test.html
// Get A WebGL context
var canvas = document.getElementById("canvas");
var gl = canvas.getContext("experimental-webgl");
// setup a GLSL program
var vertexShader = createShaderFromScriptElement(gl, "2d-vertex-shader");
var fragmentShader = createShaderFromScriptElement(gl, "2d-fragment-shader");
SiggyF / index.html
Last active Aug 29, 2015 — forked from mbostock/.block
View index.html
<!DOCTYPE html>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no"/>
<script type="text/javascript" src=""></script>
<link rel="stylesheet" href="" />
<script src=""></script>
<script src=""></script>
<script type="text/javascript" src=""></script>
<script src=""></script>
SiggyF / gentoo-mount
Last active Dec 23, 2015
Setup of gentoo system
View gentoo-mount
# mount
mount /dev/sda3 /mnt/gentoo
mkdir /mnt/gentoo/boot
mount /dev/sda1 /mnt/gentoo/boot
# mount
mount -t proc none /mnt/gentoo/proc
mount --rbind /sys /mnt/gentoo/sys
mount --rbind /dev /mnt/gentoo/dev