Iosevka Build
- Configuration: https://typeof.net/Iosevka/customizer
- Instructions: https://github.com/be5invis/Iosevka/blob/master/doc/custom-build.md
class Sampler { | |
static modeMap = new Map() | |
constructor( options ) { | |
this.samples = new Array( options?.size || 10 ) | |
this.index = -1 | |
} | |
get mean() { |
// Based on the Unity Wiki FloatingOrigin script by Peter Stirling | |
// URL: http://wiki.unity3d.com/index.php/Floating_Origin | |
using UnityEngine; | |
using UnityEngine.SceneManagement; | |
public class FloatingOrigin : MonoBehaviour | |
{ | |
[Tooltip("Point of reference from which to check the distance to origin.")] | |
public Transform ReferenceObject = null; |
const CRLF = '\r\n' | |
const SP = ' ' | |
/** | |
* Parse XYZ file | |
* @param {String} value | |
* @returns {Array<Vec3>} | |
*/ | |
function parseXYZ( value ) { |
//MIT License | |
//Copyright (c) 2021 Felix Westin | |
//Source: https://github.com/Fewes/MinimalAtmosphere | |
//Ported to GLSL by Marcin Ignac | |
#ifndef ATMOSPHERE_INCLUDED | |
#define ATMOSPHERE_INCLUDED | |
// ------------------------------------- |
%GetOptimizationStatus
return a set of bitwise flags instead of a single value,
to access the value, you need to take the binary representation of the returned value.
Now, for example, if 65
is returned, the binary representation is the following:
(65).toString(2).padStart(12, '0');
// 000001000001
Each binary digit acts as a boolean with the following meaning:
See https://bonina.eu/web/disable-service-workers-chromium-browsers/
TLDR: Add following rule to "My filters"
||$csp=worker-src 'none'
class Dict extends Map { | |
constructor( keyEncoding ) { | |
super() | |
keyEncoding = keyEncoding || 'base64' | |
if( !Buffer.isEncoding( keyEncoding ) ) { | |
throw new Error( `Invalid key encoding "${keyEncoding}"` ) |
/play | |
/*.png | |
/*.bmp | |
/solitaire |
> dism /online /cleanup-image /restoreHealth