Skip to content

Instantly share code, notes, and snippets.

View Phalanxia's full-sized avatar
🍕
Developing Games

Madison Phalanxia

🍕
Developing Games
View GitHub Profile
@banksean
banksean / perlin-noise-classical.js
Created February 15, 2010 10:00
two Perlin noise generators in javascript. The simplex version is about 10% faster (in Chrome at least, haven't tried other browsers)
// Ported from Stefan Gustavson's java implementation
// http://staffwww.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf
// Read Stefan's excellent paper for details on how this code works.
//
// Sean McCullough [email protected]
/**
* You can pass in a random number generator object if you like.
* It is assumed to have a random() method.
*/
@begla
begla / gist:1019993
Created June 10, 2011 23:13
Linear, bilinear and trilinear interpolation
public static float lerp(float x, float x1, float x2, float q00, float q01) {
return ((x2 - x) / (x2 - x1)) * q00 + ((x - x1) / (x2 - x1)) * q01;
}
public static float biLerp(float x, float y, float q11, float q12, float q21, float q22, float x1, float x2, float y1, float y2) {
float r1 = lerp(x, x1, x2, q11, q21);
float r2 = lerp(x, x1, x2, q12, q22);
return lerp(y, y1, y2, r1, r2);
}
@RobertSzkutak
RobertSzkutak / ircecho.py
Created October 30, 2011 21:15
Echo, a simple IRC bot written in Python 3
#!/usr/bin/env python3
# ircecho.py
# Copyright (C) 2011 : Robert L Szkutak II - http://robertszkutak.com
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
@jakeonrails
jakeonrails / Ruby Notepad Bookmarklet
Created January 29, 2013 18:08
This bookmarklet gives you a code editor in your browser with a single click.
data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div id="e"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/ruby");</script>
/// <reference path="phaser.d.ts" />
declare var require;
var game:Phaser.Game;
var cursors:Phaser.CursorKeys;
var flipperLeft:endice.Flipper;
var flipperRight:endice.Flipper;
var ball:endice.Ball;
@KdotJPG
KdotJPG / OpenSimplexNoiseTileable3D.java
Created December 25, 2014 13:18
Tileable 3D OpenSimplex Noise
/*
* OpenSimplex Noise in Java.
* by Kurt Spencer
*
* Tileable 3D version, preliminary release.
* Could probably use further optimization.
*
* w6, h6, and d6 are each 1/6 of the repeating period.
* for x, y, z respectively. If w6 = 2, h6 = 2, d6 = 2,
* then the noise repeats in blocks of (0,0,0)->(12,12,12)
@zeux
zeux / fbm-generator.lua
Last active December 12, 2020 22:02
Generate ROBLOX Smooth Terrain using fBm
local noise = math.noise
local sizeX = 32
local sizeY = 32
local sizeZ = 32
local air = Enum.Material.Air
local grass = Enum.Material.Grass
local sand = Enum.Material.Sand
@weotch
weotch / blah.md
Last active September 18, 2017 22:02
Slack "material" theme
#263238,#295154,#294547,#80CBC4,#326063,#AEBDC4,#80CBC4,#80CBC4

@astamicu
astamicu / Remove videos from Youtube Watch Later playlist.md
Last active April 28, 2025 07:58
Script to remove all videos from Youtube Watch Later playlist

UPDATED 22.11.2022

It's been two years since the last update, so here's the updated working script as per the comments below.

Thanks to BryanHaley for this.

setInterval(function () {
    video = document.getElementsByTagName('ytd-playlist-video-renderer')[0];

 video.querySelector('#primary button[aria-label="Action menu"]').click();
@Twipped
Twipped / Trans-feminine HRT Changes.md
Last active June 3, 2022 15:15
My collective research and experiences with trans-feminine (male to female) hormone therapy

UPDATE: This gist is now deprecated, please visit The Gender Dysphoria Bible for the latest version of this document.

This is a compilation of report medical transition changes, collected from testimonials of trans women from various discussion forums and chat rooms, backed up by my own experiences.

Note that this is a list of possible changes. There is no guarentee that a person on HRT will experience all of these. As always, your milage may vary.

Changes connected to reduction of Testosterone:

  • Reduction in general body odor and change in the smell of ones sweat. Many report gaining a sweet smell.
  • Skin softens and becomes thinner.