Skip to content

Instantly share code, notes, and snippets.

View duzenko's full-sized avatar
💭
"Do you remember bluer screens, happy days and simpler times?" (C)

duzenko

💭
"Do you remember bluer screens, happy days and simpler times?" (C)
View GitHub Profile
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <vector>
#include <iostream>
#include <Windows.h>
void framebuffer_size_callback( GLFWwindow* window, int width, int height );
void processInput( GLFWwindow* window );
@duzenko
duzenko / gist:9e71c5595b05a07f0d0294d49c03e8fb
Created May 29, 2020 15:37
Web Mercator projection (e.g. ImageMapTypeOptions.getTitleUrl)
const project = ( latLng: google.maps.LatLng, zoom: number ) => {
const scale = Math.pow( 2, zoom );
const lambda = latLng.lng() / 180 * Math.PI;
const phi = latLng.lat() / 180 * Math.PI;
return new google.maps.Point(
256 / 2 / Math.PI * scale * ( lambda + Math.PI ),
256 / 2 / Math.PI * scale * ( Math.PI - Math.log( Math.tan( Math.PI / 4 + phi / 2 ) ) )
);
}
@duzenko
duzenko / gnome-shell.css
Last active April 9, 2024 08:15
Gnome 42 light theme (ubuntu 22)
/* based on https://gitlab.gnome.org/eeshugerman/gnome-shell-theme-default-light with dock tweaks */
/* save as ~/.themes/Default-light/gnome-shell/gnome-shell.css and enable with gnome-tweaks */
/* This stylesheet is generated, DO NOT EDIT */
/* Copyright 2009, 2015 Red Hat, Inc.
*
* Portions adapted from Mx's data/style/default.css
* Copyright 2009 Intel Corporation
*
* This program is free software; you can redistribute it and/or modify it
#!/bin/bash
set -x
id; pwd
cd httpdocs
TEST_BIN=tests/_output/report.bin
TEST_RESULT=0
if [ -f $TEST_BIN ]; then # require user action after a failure
TEST_RESULT=$(cat $TEST_BIN)