Skip to content

Instantly share code, notes, and snippets.

@Extraltodeus
Extraltodeus / Cutwallpaper - Read me
Last active January 22, 2016 01:02
This script was made for triple monitor users, to automatically cut a picture in 3 equal parts, with good proportions
As far as I know you can put the .desktop file in ~/.local/share/kservices5/ServiceMenus/ if you're on Plasma 5
Don't forget to edit the commented lines if you want it to work as you wish.
The right-click function does not seem to work when there is a space in the path. Yet.
@thestonefox
thestonefox / ViveCursor.cs
Last active June 5, 2019 20:54
A basic implementation of a laser pointer for the HTC Vive controllers in Unity3D
using UnityEngine;
using System.Collections;
public class ViveCursor : MonoBehaviour {
public enum AxisType
{
XAxis,
ZAxis
}
@gunderson
gunderson / FlyCamera.cs
Last active May 18, 2026 13:14
Unity Script to give camera WASD + mouse control
using UnityEngine;
using System.Collections;
public class FlyCamera : MonoBehaviour {
/*
Writen by Windexglow 11-13-10. Use it, edit it, steal it I don't care.
Converted to C# 27-02-13 - no credit wanted.
Simple flycam I made, since I couldn't find any others made public.
Made simple to use (drag and drop, done) for regular keyboard layout
import matplotlib.pyplot as plt
from PyQt5 import QtCore
import numpy as np
import time
import math
class VisualiseFrequency(QtCore.QThread):
def __init__(self, song, canvas, player):
@FayDoom
FayDoom / cartesianProduct.js
Last active July 15, 2026 23:33
Javascript - Very fast cartesian product algorithm
/*
Just a cartesian product algorithm I made. The fastest I've seen.
Not limited to 250 arguments (almost every other use the spread operator in the function's arguments)
Enjoy ! (If you want to thank me, a ferrari would be nice)
- Christophe Jochum
*/