Skip to content

Instantly share code, notes, and snippets.

View SiggyF's full-sized avatar

Fedor Baart SiggyF

View GitHub Profile
@SiggyF
SiggyF / .block
Created September 16, 2023 13:00 — forked from sjengle/.block
Flight Paths Edge Bundling
license: gpl-3.0
height: 500
border: no
import bpy
scene = bpy.context.scene
for key, val in bpy.data.collections.items():
if key == 'Collection':
continue
# remove all others
bpy.data.collections.remove(val)
# http://editorconfig.org
root = true
[*]
indent_style = space
indent_size = 4
trim_trailing_whitespace = true
insert_final_newline = true
charset = utf-8
'''
/*
* Copyright 2010-2017 Amazon.com, 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
*
* http://aws.amazon.com/apache2.0
*
import jsonrpc
dispatcher = jsonrpc.Dispatcher()
def calculate(a):
return a + 2
dispatcher.add_method(calculate)
@SiggyF
SiggyF / test.html
Created February 26, 2015 21:47
WebGL test
<head>
<script>
// 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
SiggyF / index.html
Last active August 29, 2015 14:13 — forked from mbostock/.block
Update
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no"/>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" />
<script src="http://code.jquery.com/jquery-2.1.3.min.js"></script>
<script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script>
<script src="http://smeijer.github.io/GeoSearch/js/l.control.geosearch.js"></script>
@SiggyF
SiggyF / gentoo-mount
Last active December 23, 2015 00:19
Setup of gentoo system
# 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