Skip to content

Instantly share code, notes, and snippets.

ME:

What is the distance between the sun and earth?

ChatGPT:

The average distance between the Sun and the Earth is about 93 million miles (149.6 million kilometers). This distance is also known as an astronomical unit (AU), which is used to measure distances within our solar system. However, it's important to note that the distance between the Sun and Earth can vary slightly depending on the positions of the two bodies in their elliptical orbits.

ME:

Are you able to have an opinion?

ChatGPT:

@KonTrax
KonTrax / How_Require_Extensions_Work.md
Created March 3, 2018 18:54 — forked from jamestalmage/How_Require_Extensions_Work.md
Breakdown of How Require Extensions Work

Why

Doing require extensions correctly is essential, because:

  1. Users should be able to install multiple extensions in succession, and have them work together.
  2. Coverage tools like nyc need it to reliably supply coverage information that takes into account sourcemaps from upstream transforms.
  3. Because non-standard, un-predictable behavior causes hard to solve bugs, and major headaches for project maintainers.

What is a require extension anyways?

const n_path = require('path')
//==============================================================================
const CONFIG = {
root: {
src: n_path.resolve('./src'),
dist: n_path.resolve('./dist'),
},
index: 'index.ts',
@KonTrax
KonTrax / pseudo-elements.md
Last active April 13, 2016 00:28 — forked from p3t3r67x0/pseudo_elements.md
A CSS pseudo-element is used to style specified parts of an element. In some cases you can style native HTML controls with vendor specific pseudo-elements. Here you will find an list of cross browser specific pseudo-element selectors.

Styling native elements

Native HTML controls are a challenge to style. You can style any element in the web platform that uses Shadow DOM with a pseudo element ::pseudo-element or the /deep/ path selector.

video::webkit-media-controls-timeline {
  background-color: lime;
}

video /deep/ input[type=range] {
using UnityEditor;
[InitializeOnLoad]
public class ExecutionOrderManager : Editor
{
static ExecutionOrderManager()
{
// Get the name of the script we want to change it's execution order
string scriptName = typeof(MyMonoBehaviourClass).Name;
@KonTrax
KonTrax / Events.cs
Last active August 29, 2015 14:09 — forked from wmiller/Events.cs
using System.Collections;
using System.Collections.Generic;
public class GameEvent
{
}
public class Events
{
static Events instanceInternal = null;
@KonTrax
KonTrax / KonTraBox_UnityAnswers.css
Last active August 29, 2015 14:04
KonTraBox_UnityAnswersTweaks for the Unity3D community support pages
@namespace url(http://www.w3.org/1999/xhtml);
/*
* KonTraBox_UnityAnswers
*
* FireFox :
* Use as is
*
* Chrome & others :
* 1. Apply to : "URLs on the domain" "answers.unity3d.com"
@KonTrax
KonTrax / KonTraBox_UnityForums.css
Created July 31, 2014 07:11
KonTraBox_UnityForums Tweaks for the Unity3D community forums
@namespace url(http://www.w3.org/1999/xhtml);
/*
* KonTraBox_UnityForums
*
* FireFox :
* Use as is
*
* Chrome & others :
* 1. Apply to : "URLs on the domain" "forum.unity3d.com"
@KonTrax
KonTrax / ShareTV_Fixes.js
Created July 30, 2014 22:24
Fixes some lazy issues in the sharetv code
// ==UserScript==
// @id STVF
// @name ShareTV Fixes
// @version 0.1
// @namespace KonTraBox
// @author KonTrax
// @description Fixes some lazy issues in the sharetv code
// @match
// @include http://sharetv.com/*
// @copyright 1960-1961, SantaClaus
/*--- waitForKeyElements(): A utility function, for Greasemonkey scripts,
that detects and handles AJAXed content.
Usage example:
waitForKeyElements (
"div.comments"
, commentCallbackFunction
);