Skip to content

Instantly share code, notes, and snippets.

@octoberrust
octoberrust / setup.md
Created March 16, 2023 07:11 — forked from akella/setup.md
My Setup
@octoberrust
octoberrust / interceptor.ts
Last active September 29, 2021 05:09
interceptor
/** @format */
import {
HttpErrorResponse,
HttpEvent,
HttpHandler,
HttpInterceptor,
HttpRequest,
} from "@angular/common/http";
import { Injectable } from "@angular/core";
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"cwd": "${workspaceRoot}",
"program": "${workspaceRoot}/node_modules/protractor/bin/protractor",
"stopOnEntry": false,
"args": [
"${workspaceRoot}/config/config.js"
@octoberrust
octoberrust / HashTable.js
Created March 1, 2020 12:47
hash table and linked list
//https://medium.com/everything-javascript/implementing-a-hash-table-in-javascript-29aca1edfe2b
import { LinkedList } from "./LinkedList";
//function to turn a key into a "unique identifier";
export class HashTable {
size: number;
private table = [];
constructor(size: number) {
@octoberrust
octoberrust / WebGL-frameworks-libraries.md
Created September 19, 2019 05:24 — forked from dmnsgn/WebGL-WebGPU-frameworks-libraries.md
A collection of WebGL frameworks and libraries

A non-exhaustive list of WebGL frameworks and libraries. It is mostly for learning purposes as some of the libraries listed are outdated/not maintained anymore.

Engines and libraries

  • three.js: JavaScript 3D library
  • stack.gl: an open software ecosystem for WebGL, built on top of browserify and npm.
  • PixiJS: Super fast HTML 5 2D rendering engine that uses webGL with canvas fallback
  • Pex: Pex is a javascript 3d library / engine allowing for seamless development between Plask and WebGL in the browser.
  • Babylon.js: a complete JavaScript framework for building 3D games with HTML 5 and WebGL
  • Filament: Filament is a real-time physically based rendering engine for Android, iOS, Windows, Linux, macOS and WASM/WebGL
  • ClayGL: A WebGL graphic library helping you to
@octoberrust
octoberrust / Guid.ts
Created September 12, 2019 05:42 — forked from emptyother/Guid.ts
GUID class for Typescript
class Guid {
public static newGuid(): Guid {
return new Guid('xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, c => {
const r = Math.random() * 16 | 0;
const v = (c == 'x') ? r : (r & 0x3 | 0x8);
return v.toString(16);
}));
}
public static get empty(): string {
return '00000000-0000-0000-0000-000000000000';