This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==================================================================================================== | |
// In my codebase, all ships have their own instance of this that they use to apply physics with. | |
// I'm using a struct mostly because I want to maintain copy semantics. | |
// ==================================================================================================== | |
public struct FlightInput | |
{ | |
public float Pitch; | |
public float Yaw; | |
public float Roll; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
; Windows terminal | |
[-HKEY_CLASSES_ROOT\Directory\shell\MenuWindowsTerminal] | |
[-HKEY_CLASSES_ROOT\Directory\background\shell\MenuWindowsTerminal] | |
[-HKEY_CLASSES_ROOT\Directory\LibraryFolder\shell\MenuWindowsTerminal] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.AspNetCore.Builder; | |
using Microsoft.AspNetCore.Http; | |
using Microsoft.AspNetCore.Mvc.Infrastructure; | |
using Microsoft.AspNetCore.Mvc.Internal; | |
using Microsoft.AspNetCore.Routing; | |
using Microsoft.Extensions.DependencyInjection; | |
using Newtonsoft.Json; | |
using System; | |
using System.Linq; | |
using System.Threading.Tasks; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { get, post } = require('snekfetch'); | |
const express = require('express'); | |
const btoa = require('btoa'); | |
const app = express(); | |
const cfg = { | |
id: 'get_one', | |
secret: 'get_one' | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
/* ---------------------------------------------- /* | |
* Mouse animate icon | |
/* ---------------------------------------------- */ | |
.mouse-icon { | |
border: 2px solid #000; | |
border-radius: 16px; | |
height: 40px; | |
width: 24px; | |
display: block; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "Quaternion.h" | |
#include <cmath> | |
// http://content.gpwiki.org/index.php/OpenGL:Tutorials:Using_Quaternions_to_represent_rotation | |
// http://www.flipcode.com/documents/matrfaq.html | |
// http://db-in.com/blog/2011/04/cameras-on-opengl-es-2-x/ | |
// http://wiki.beyondunreal.com/Legacy:Quaternion | |
// http://clb.demon.fi/MathGeoLib/docs/float3x3.cpp_code.html#612 | |
// http://clb.demon.fi/MathGeoLib/docs/Quat_summary.php | |
// http://www.euclideanspace.com/maths/geometry/rotations/conversions/matrixToQuaternion/index.htm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en-GB"> | |
<head> | |
<title>Simple JavaScript pagination</title> | |
<meta charset="UTF-8"> | |
<style> | |
div{ | |
position: relative; | |
} | |
#stage{ |