This file contains hidden or 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
/* | |
// USAGE: | |
const { describe, it, run, assert } = require('./stupid-test-runner.js'); | |
describe('Philosophers and Their Unlikely Assertions', () => { | |
describe('Socrates', () => { | |
it('should know that he knows nothing', async () => { | |
const url = 'https://socratic.com/paradox/knowledge'; |
This file contains hidden or 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
export class ArrayPool<T> { | |
private _array: T[]; | |
private _length: number; | |
private _capacity: number; | |
private _factory: () => T; | |
constructor(initialCapacity: number = 10, factory: () => T) { | |
this._array = new Array<T>(initialCapacity); | |
this._length = 0; | |
this._capacity = initialCapacity; |
This file contains hidden or 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
#!/bin/bash | |
# Credits: https://pastebin.com/NJxfe8Ex | |
PROTON_VERSION="5.0" | |
PROTON_DIR=$HOME/.steam/steam/steamapps/common/Proton\ $PROTON_VERSION | |
RUNNING="$1" | |
if [ ! -f "$PROTON_DIR/proton" ] ; then | |
echo "Proton version $PROTON_VERSION not found!"; |
This file has been truncated, but you can view the full file.
This file contains hidden or 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
/* | |
Hack to disable color picker and inlay hints. | |
~/.vscode/extensions/raczzalan.webgl-glsl-editor-1.3.3-darwin-arm64/dist/extension.js | |
*/ | |
/*! For license information please see extension.js.LICENSE.txt */ | |
(() => { | |
"use strict"; | |
var e = { |
This file contains hidden or 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
import bpy | |
import random | |
import colorsys | |
import math | |
RANDOM_COLORMAP = False | |
VERTEX_COLOR_LAYERNAME = "_IDMAP_" | |
NO_MATERIAL_COLOR = (0,0,0,1) |
This file contains hidden or 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
# version: 1.0.1 | |
# latest source: https://gist.github.com/bitinn/22f6fefe026d8d9e83468864edb8f835 | |
import bpy | |
import os | |
def kmi_props_setattr(kmi_props, attr, value): | |
try: | |
setattr(kmi_props, attr, value) |
This file contains hidden or 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 UnityEngine; | |
/// <summary> | |
/// Keeps the editor scene view active when entering play mode. | |
/// Place this component on any game object. | |
/// </summary> | |
public class KeepSceneViewActive : MonoBehaviour | |
{ | |
[Tooltip("Keep the editor scene view active")] | |
public bool KeepActive = true; |
This file contains hidden or 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
import bpy | |
import os | |
def kmi_props_setattr(kmi_props, attr, value): | |
try: | |
setattr(kmi_props, attr, value) | |
except AttributeError: | |
print("Warning: property '%s' not found in keymap item '%s'" % | |
(attr, kmi_props.__class__.__name__)) | |
except Exception as e: |
This file contains hidden or 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
<template> | |
<object type="image/svg+xml" id="svgId" | |
data="e-3.svg" height="50" width="50" viewBox="0 0 50 50" | |
mouseover.delegate="domouseover()" mouseout.delegate="domouseout()" | |
click.delegate="doClickSVG()"> | |
</object> | |
<div> | |
<img src="e-3.svg" click.delegate="doClickSVG()"/> |
This file contains hidden or 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
var gulp = require('gulp'), | |
babel = require('gulp-babel'), | |
livereload = require('gulp-livereload'), | |
http = require('http'), | |
st = require('st'), | |
transform = require('vinyl-transform'), | |
browserify = require('browserify'); | |
gulp.task('js', ["es6"],function() { |
NewerOlder