Skip to content

Instantly share code, notes, and snippets.

@nevernotsean
nevernotsean / pyenv-wsl-ubuntu_22.04.md
Created May 8, 2024 16:22 — forked from iambryancs/pyenv-wsl-ubuntu_22.04.md
Using Pyenv in WSL Ubuntu 22.04 LTS to install Python 3.8

Using Pyenv in WSL Ubuntu 22.04 LTS to install Python 3.8

Env

  • Windows 10
  • Ubuntu 22.04 WSL
  • zsh

Requirements

  • git
@nevernotsean
nevernotsean / TinyTween.cs
Created March 18, 2019 21:15
A single file tween library in C# with support built in for XNA and Unity data types. MIT License.
// TinyTween.cs
//
// Copyright (c) 2013 Nick Gravelyn
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software
// and associated documentation files (the "Software"), to deal in the Software without restriction,
// including without limitation the rights to use, copy, modify, merge, publish, distribute,
// sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
@nevernotsean
nevernotsean / linearmap.js
Last active March 8, 2019 16:39 — forked from remy/map.js
function linearmap(x, in_min, in_max, out_min, out_max) {
return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min;
}
@nevernotsean
nevernotsean / EditPrefab.cs
Created March 9, 2018 07:01 — forked from ulrikdamm/EditPrefab.cs
Unity editor script for better editing of prefabs. Put in Assets/Editor.
using UnityEngine;
using UnityEditor;
using UnityEditor.SceneManagement;
// Adds a "Edit Prefab" option in the Assets menu (or right clicking an asset in the project browser).
// This opens an empty scene with your prefab where you can edit it.
// Put this script in your project as Assets/Editor/EditPrefab.cs
public class EditPrefab {
static Object getPrefab(Object selection) {
@nevernotsean
nevernotsean / gulpfile.js
Last active August 9, 2017 01:38 — forked from dverbovyi/gulpfile.js
ES6 project with Gulp, Sass, Babel & Browserify
// An awesome and slightly modified gulp, babel, sass workflow via https://gist.github.com/dverbovyi/7f71879bec8a16847dee
var browserify = require('browserify'),
gulp = require('gulp'),
sourcemaps = require('gulp-sourcemaps'),
sass = require('gulp-sass'),
autoprefixer = require('gulp-autoprefixer'),
source = require('vinyl-source-stream'),
buffer = require('vinyl-buffer'),
browserSync = require('browser-sync')