Forked from here
A complete cookies reader/writer framework with full unicode support.
This framework is released under the GNU Public License, version 3 or later.
const fileRegex = /\.(frag|vert|fs|vs|glsl)$/ | |
import fs from "fs"; | |
import path from "path"; | |
function processShader(src, id) { | |
const lines = src.split("\n"); | |
let result = ""; | |
for (const line of lines) { | |
if (line.startsWith("#include ")) { | |
const relativeFile = line.split(" ")[1]; |
import numpy as np | |
def get_tf_mat(i, dh): | |
a = dh[i][0] | |
d = dh[i][1] | |
alpha = dh[i][2] | |
theta = dh[i][3] | |
q = theta |
import { Mesh } from "../mesh"; | |
export async function loadOBJ(url) { | |
const res = await fetch(url); | |
if (res.status == 200) { | |
const text = await res.text(); | |
const vertices = []; | |
const uv = []; |
<canvas id="c"></canvas> | |
<script src="https://threejsfundamentals.org/threejs/resources/threejs/r105/three.min.js"></script> | |
<script src="https://threejsfundamentals.org/threejs/resources/threejs/r105/js/controls/OrbitControls.js"></script> | |
<script src="https://threejsfundamentals.org/threejs/resources/threejs/r105/js/loaders/LoaderSupport.js"></script> | |
<script src="https://threejsfundamentals.org/threejs/resources/threejs/r105/js/loaders/OBJLoader2.js"></script> | |
<script src="https://threejsfundamentals.org/threejs/resources/threejs/r105/js/loaders/MTLLoader.js"></script> |
import { forEach as _forEach } from 'lodash/collection'; | |
import { | |
isObject as _isObject, | |
isString as _isString, | |
isInteger as _isInteger | |
} from 'lodash/lang'; | |
function _reduce(collection, keypath, accumulator) { | |
_forEach(collection, (value, key) => { | |
if (_isObject(value)) { |
A complete cookies reader/writer framework with full unicode support.
This framework is released under the GNU Public License, version 3 or later.
Element.prototype.hasClass = function (className) { | |
return new RegExp(' ' + className + ' ').test(' ' + this.className + ' '); | |
}; | |
Element.prototype.addClass = function (className) { | |
if (!this.hasClass(className)) { | |
this.className += ' ' + className; | |
} | |
}; |
HRESULT hot_init(hot_ctx **out) | |
{ | |
*out = nullptr; | |
std::unique_ptr<hot_ctx> ctx(new hot_ctx); | |
// Obtain base address of main executable | |
// 1. Module info | |
//MODULEINFO mod_info; | |
//GetModuleInformation(GetCurrentProcess(), hmod, &mod_info, sizeof(mod_info)); | |
//void *baseaddr = mod_info.lpBaseOfDll; |
# move selected mesh into the middle, export as fbx or obj, and bring it back to original location | |
from maya import cmds | |
import pymel.core as pm | |
pm.loadPlugin("fbxmaya") # LOAD PLUGIN | |
#UI Function | |
def main(): | |
#before adding window |
This is a compiled list of falsehoods programmers tend to believe about working with time.
Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.