Skip to content

Instantly share code, notes, and snippets.

@Masterxilo
Masterxilo / permfunction
Last active August 30, 2023 14:46
permfunction
#!/bin/bash
# This script adds a program/script/command called 'permfunction' to you PATH
# permfunction allows you to write system-wide, on-PATH instantly available, persisted scripts, i.e. improved shell functions/aliases/abbreviations/short programs.
#
# TODO also persist these functions as gists for the user
# inspired by
# https://askubuntu.com/questions/1414/how-to-create-a-permanent-alias
# https://askubuntu.com/a/80290/521770
@gunderson
gunderson / FlyCamera.cs
Last active May 10, 2024 12:53
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
@christopherscott
christopherscott / ExcelToJsDate.js
Created May 24, 2012 16:40
Convert Excel date values to JavaScript date objects
// Convert Excel dates into JS date objects
//
// @param excelDate {Number}
// @return {Date}
function getJsDateFromExcel(excelDate) {
// JavaScript dates can be constructed by passing milliseconds
// since the Unix epoch (January 1, 1970) example: new Date(12312512312);