Skip to content

Instantly share code, notes, and snippets.

@thebiltheory
thebiltheory / ChoasLinesShader.metal
Created January 8, 2024 13:55 — forked from realvjy/ChoasLinesShader.metal
Choas Lines - Metal Shader
// Lines
float hash( float n ) {
return fract(sin(n)*753.5453123);
}
// Slight modification of iq's noise function.
float noise(vector_float2 x )
{
vector_float2 p = floor(x);
vector_float2 f = fract(x);
@thebiltheory
thebiltheory / timezones.json
Last active April 18, 2020 17:11 — forked from erdem/timezone_locations.py
Center location coordinates for timezones
{
"Africa/Abidjan": [8, -5],
"Africa/Accra": [8, -2],
"Africa/Addis_Ababa": [8, 38],
"Africa/Algiers": [28, 3],
"Africa/Asmara": [15, 39],
"Africa/Bamako": [17, -4],
"Africa/Bangui": [7, 21],
"Africa/Banjul": [13.46666666, -16.56666666],
"Africa/Bissau": [12, -15],

FORMAT:

<type>[optional scope]: <description>

[optional body]

[optional footer]
@thebiltheory
thebiltheory / README-Template.md
Created December 4, 2017 05:24 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@thebiltheory
thebiltheory / simple_method.js
Created June 11, 2016 09:13 — forked from rponte/simple_method.js
Delaying actions on keypress with jQuery
$('#mySearch').keyup(function() {
clearTimeout($.data(this, 'timer'));
var wait = setTimeout(search, 500);
$(this).data('timer', wait);
});
function search() {
$.post("stuff.php", {nStr: "" + $('#mySearch').val() + ""}, function(data){
if(data.length > 0) {
$('#suggestions').show();